Skip to content
Navigation

callRepoExtensionInstallationTool

Call a tool of main's installation with the JSON input, at the version main's head commit pins; the tool acts as you, on this repo.

POST
/repos/{repo_id}/extension-installations/{name}/tools/{tool}

Path parameters

  • repo_id
    string
    required
    pattern: ^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • name
    string
    required
    maxLength: 129 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$
  • tool
    string
    required
    maxLength: 128 · pattern: ^[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*$

Request body JSON required

Returns

200

Success

400

ExtensionToolInputInvalid | InvalidRequest | RequestBodyTooDeep
JSON

One of the following:

  • ExtensionToolInputInvalidEncoded
    • _tag
      ExtensionToolInputInvalid
      required
    • extension_name
      string
      required
      minLength: 1
    • tool
      string
      required
      minLength: 1
    • message
      string
      required
  • 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

402

ComputeLimitReached
JSON
  • _tag
    ComputeLimitReached
    required
  • plan
    free
    or
    pro
    or
    team
    required
  • included_runs
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • resets_at
    string
    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

ExtensionInstallationNotFound | ExtensionToolNotFound | RepoNotFound | OrgNotFound
JSON

One of the following:

  • ExtensionInstallationNotFoundEncoded
    • _tag
      ExtensionInstallationNotFound
      required
    • extension_name
      string
      required
      minLength: 1
    • message
      string
      required
  • ExtensionToolNotFoundEncoded
    • _tag
      ExtensionToolNotFound
      required
    • extension_name
      string
      required
      minLength: 1
    • tool
      string
      required
      minLength: 1
  • RepoNotFoundEncoded
    • _tag
      RepoNotFound
      required
  • OrgNotFoundEncoded
    • _tag
      OrgNotFound
      required

409

ConnectionRequired | OAuthReconnectRequired | RepoArchived
JSON

One of the following:

  • ConnectionRequiredEncoded
    • _tag
      ConnectionRequired
      required
    • extension_name
      string
      required
    • requirement
      string
      required
    • scope
      org
      or
      user
      required
    • repo_id
      string
      required
      pattern: ^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • OAuthReconnectRequiredEncoded
    • _tag
      OAuthReconnectRequired
      required
    • connection_id
      string
      required
  • 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

422

ExtensionToolFailed
JSON
  • _tag
    ExtensionToolFailed
    required
  • extension_name
    string
    required
    minLength: 1
  • tool
    string
    required
    minLength: 1
  • message
    string
    required
  • location
    optional
    object
    • path
      string
      required
      minLength: 1
    • line
      optional
      integer
      maximum: 9007199254740991 · minimum: -9007199254740991
    • column
      optional
      integer
      maximum: 9007199254740991 · minimum: -9007199254740991

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

RepoFailure | OrgFailure
JSON

One of the following:

  • RepoFailureEncoded
    • _tag
      RepoFailure
      required
    • reason
      string
      required
  • OrgFailureEncoded
    • _tag
      OrgFailure
      required
    • reason
      string
      required

503

OAuthRenewalFailed | RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • OAuthRenewalFailedEncoded
    • _tag
      OAuthRenewalFailed
      required
    • connection_id
      string
      required
  • RepoBusyEncoded
    • _tag
      RepoBusy
      required
    • message
      string
      required
  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close