Skip to content
Navigation

listRepoCustomModelsAtCommit

List the custom models with their custom fields at the commit.

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

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}$

Returns

200

Success

JSON
  • name
    string
    required
    minLength: 1
  • api_name
    string
    required
    minLength: 1
  • extension_id
    required

    One of the following:

    • ExtensionId
    • null
  • extension_installation_id
    required

    One of the following:

    • ExtensionInstallationId
    • null
  • fields
    array of
    object
    required
    • id
      string
      required
      pattern: ^field_[0-7][0-9a-hjkmnp-tv-z]{25}$
    • name
      string
      required
      minLength: 1
    • api_name
      string
      required
      minLength: 1
    • type
      text
      or
      rich_text
      or
      integer
      or
      decimal
      or
      currency
      or
      percent
      +11 more
      required
    • options
      required

      One of the following:

      • array<string>
      • null
    • required
      boolean
      required
    • unique
      boolean
      required
    • target_repo_id
      required

      One of the following:

      • RepoId
      • null
    • target_model_id
      required

      One of the following:

      • TypeId
      • null
    • on_delete
      required

      One of the following:

      • string
      • null
    • default_value
      required

      One of the following:

      • Option 1
      • null
    • formula
      required

      One of the following:

      • string
      • null
    • target_model
      required

      One of the following:

      • string
      • null
    • filter
      object
      required

      How a search takes this field: the operators its type takes, whether sort takes it, and the form its values are written in.

      • operators
        array of
        eq
        or
        ne
        or
        gt
        or
        gte
        or
        lt
        or
        lte
        +13 more
        required
      • sortable
        boolean
        required
      • value_format
        string
        required
  • primary_field
    required

    One of the following:

    • string
    • null
  • id
    string
    required
    pattern: ^custom_model_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • id_prefix
    string
    required
    minLength: 1

400

InvalidRequest
JSON
  • _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 | RepoNotFound
JSON

One of the following:

  • 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