Skip to content
Navigation

createRepoCheckpoint

Name a commit, or a branch's head commit without its uncommitted changes. A checkpoint never moves, and a name a live checkpoint holds is refused.

POST
/repos/{repo_id}/checkpoints

Path parameters

  • repo_id
    string
    required
    pattern: ^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$

Request body JSON required

One of the following:

  • CreateCheckpointAtBranchHead
    • name
      string
      required
      minLength: 1 · pattern: ^(?!\.\.?$)
    • branch
      string
      required
      minLength: 1
    • description
      optional

      One of the following:

      • string
      • null
    • commit_id
      optional
      unknown
  • CreateCheckpointAtCommit
    • name
      string
      required
      minLength: 1 · pattern: ^(?!\.\.?$)
    • commit_id
      string
      required
      pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • description
      optional

      One of the following:

      • string
      • null
    • branch
      optional
      unknown

Returns

201

Checkpoint

JSON
  • id
    string
    required
    pattern: ^checkpoint_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • name
    string
    required
    minLength: 1
  • commit_id
    string
    required
    pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • description
    required

    One of the following:

    • string
    • null
  • created_by_id
    string
    required
    minLength: 1
  • created_at
    string
    required

400

InvalidRequest | RequestBodyTooDeep
JSON

One of the following:

  • InvalidRequestEncoded
    • _tag
      InvalidRequest
      required
    • part
      path
      or
      query
      or
      headers
      or
      body
      required
    • issues
      array of
      object
      required
      • path
        array of
        required

        One of the following:

        • string
        • integer
      • message
        string
        required
  • RequestBodyTooDeepEncoded
    • _tag
      RequestBodyTooDeep
      required
    • max_depth
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991

401

InvalidCredentials
JSON
  • _tag
    InvalidCredentials
    required

403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

  • ForbiddenEncoded
    • _tag
      Forbidden
      required
    • message
      string
      required
  • ForbiddenOriginEncoded
    • _tag
      ForbiddenOrigin
      required
  • RequiresPersonalSessionEncoded
    • _tag
      RequiresPersonalSession
      required
  • RunBranchRequiredEncoded
    • _tag
      RunBranchRequired
      required
    • branch
      string
      required
      minLength: 1
    • message
      string
      required

404

BranchNotFound | CommitNotFound | RepoNotFound
JSON

One of the following:

  • BranchNotFoundEncoded
    • _tag
      BranchNotFound
      required
    • branch
      string
      required
      minLength: 1
  • CommitNotFoundEncoded
    • _tag
      CommitNotFound
      required
    • commit_id
      string
      required
      pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • RepoNotFoundEncoded
    • _tag
      RepoNotFound
      required

409

CheckpointExists | RepoArchived
JSON

One of the following:

  • CheckpointExistsEncoded
    • _tag
      CheckpointExists
      required
    • checkpoint
      string
      required
      minLength: 1
  • RepoArchivedEncoded
    • _tag
      RepoArchived
      required

413

WriteTooLarge | RequestBodyTooLarge
JSON

One of the following:

  • WriteTooLargeEncoded
    • _tag
      WriteTooLarge
      required
    • message
      string
      required
  • RequestBodyTooLargeEncoded
    • _tag
      RequestBodyTooLarge
      required
    • max_bytes
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

RepoFailure
JSON
  • _tag
    RepoFailure
    required
  • reason
    string
    required

503

RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • RepoBusyEncoded
    • _tag
      RepoBusy
      required
    • message
      string
      required
  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close