Skip to content
Navigation

getRepoDiff

A page of the records that differ between base and head, in record id order across models. Pass next_cursor back as cursor with the same base, head, and model. A branch side reads its working state as of each page's request, so to read a diff that holds still across pages, diff two commits.

GET
/repos/{repo_id}/diffs

Path parameters

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

Query parameters

  • base_branch
    optional
    string
    minLength: 1
  • base_commit_id
    optional
    string
    pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • head_branch
    optional
    string
    minLength: 1
  • head_commit_id
    optional
    string
    pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • cursor
    optional
    string
    minLength: 1
  • limit
    optional
    string
    pattern: ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$
  • model
    optional
    string
    minLength: 1

Returns

200

Success

JSON
  • data
    array of
    object
    required
    • model
      string
      required
      minLength: 1
    • record_id
      string
      required
      pattern: ^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • change
      added
      or
      modified
      or
      removed
      required
    • previous
      required

      One of the following:

      • object
      • null
    • current
      required

      One of the following:

      • object
      • null
    • changed_fields
      array of
      string
      required
      minLength: 1
  • next_cursor
    required

    One of the following:

    • PageCursor
    • null

400

InvalidCursor | InvalidRequest
JSON

One of the following:

  • InvalidCursorEncoded
    • _tag
      InvalidCursor
      required
    • reason
      string
      required
      minLength: 1
  • 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

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

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

RepoFailure
JSON
  • _tag
    RepoFailure
    required
  • reason
    string
    required

503

SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close