Skip to content
Navigation

listRepoCustomRecordsAtCommit

A page of a custom model's records at the commit, in id order. To filter or sort, or to count them, use searchRepoCustomRecordsAtCommit.

GET
/repos/{repo_id}/commits/{commit_id}/custom-models/{model_api_name}/records

Path parameters

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

Query parameters

  • cursor
    optional
    string
    minLength: 1
  • limit
    optional
    string
    pattern: ^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:[Ee][+-]?\d+)?$

Returns

200

CustomRecordPage

JSON
  • data
    array of
    object
    required
    • id
      string
      required
      pattern: ^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • fields
      map of
      any of
      required
    • formulas
      map of
      string
      required
  • next_cursor
    required

    One of the following:

    • PageCursor
    • null
  • references
    array of
    object
    required

    The records in this repo that the page's reference fields hold, at the revision the page reads. live holds a record's model and label, the value of its primary field, or its model's name and the end of its id when that is empty; live is null for a deleted record. A record the caller can't read has no entry. A reference to another repo's record has none either: ask that repo's searchRepoCustomRecordLabelsAtBranch.

    • record_id
      string
      required
      pattern: ^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • live
      required

      One of the following:

      • LiveReferencedRecord
        • model_api_name
          string
          required
          minLength: 1
        • label
          string
          required
          minLength: 1
      • null
  • users
    array of
    object
    required

    The users that the page's user fields name, with their display names.

    • id
      string
      required
      pattern: ^(?:user|extension)_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • display_name
      string
      required
      minLength: 1

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

CommitNotFound | CustomModelNotFound | RepoNotFound
JSON

One of the following:

  • CommitNotFoundEncoded
    • _tag
      CommitNotFound
      required
    • commit_id
      string
      required
      pattern: ^commit_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • CustomModelNotFoundEncoded
    • _tag
      CustomModelNotFound
      required
    • api_name
      string
      required
      minLength: 1
  • 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