Skip to content
Navigation

createRepoExtensionInstallationWorkflowRun

Start a run of a workflow of main's installation, at the version main's head commit pins, acting as the caller, and answer the run. The body is {"workflow": name, "input": …, "idempotency_key": key}: the input must fit the workflow's input schema, and a key that already names a run of the workflow answers that run instead of starting another.

POST
/repos/{repo_id}/extension-installations/{name}/workflow-runs

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]+)*$

Request body JSON required

  • workflow
    string
    required
    minLength: 1
  • input
    unknown
    required
  • idempotency_key
    optional
    string
    maxLength: 256 · minLength: 1

Returns

201

ExtensionWorkflowRun

JSON
  • id
    string
    required
    pattern: ^extension_workflow_run_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • extension_name
    string
    required
    maxLength: 129 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$
  • version
    required

    One of the following:

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

    One of the following:

    • string
    • null
  • status
    queued
    or
    running
    or
    waiting
    or
    complete
    or
    errored
    or
    terminated
    required
  • waiting_for_signal
    required

    One of the following:

    • string
    • null
  • signal_sequence
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • input
    unknown
    required
  • output
    required

    One of the following:

    • Option 1
    • null
  • failure
    required

    One of the following:

    • string
    • null
  • queued_at
    string
    required
  • started_at
    required

    One of the following:

    • string
    • null
  • finished_at
    required

    One of the following:

    • string
    • null

400

ExtensionWorkflowInputTooLarge | ExtensionWorkflowInputTooDeep | ExtensionWorkflowInputDoesNotFit | ExtensionWorkflowInputDoesNotFitAt | InvalidRequest | RequestBodyTooDeep
JSON

One of the following:

  • ExtensionWorkflowInputTooLargeEncoded
    • _tag
      ExtensionWorkflowInputTooLarge
      required
    • max_bytes
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • message
      string
      required
  • ExtensionWorkflowInputTooDeepEncoded
    • _tag
      ExtensionWorkflowInputTooDeep
      required
    • max_depth
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • message
      string
      required
  • ExtensionWorkflowInputDoesNotFitEncoded
    • _tag
      ExtensionWorkflowInputDoesNotFit
      required
    • extension_name
      string
      required
      minLength: 1
    • workflow
      string
      required
      minLength: 1
    • issue
      string
      required
    • issues
      array of
      object
      required
      • path
        array of
        required

        One of the following:

        • string
        • integer
      • message
        string
        required
    • message
      string
      required
  • ExtensionWorkflowInputDoesNotFitAtEncoded
    • _tag
      ExtensionWorkflowInputDoesNotFitAt
      required
    • extension_name
      string
      required
      minLength: 1
    • workflow
      string
      required
      minLength: 1
    • path
      string
      required
    • issue
      string
      required
    • issues
      array of
      object
      required
      • path
        array of
        required

        One of the following:

        • string
        • integer
      • message
        string
        required
    • 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

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 | ExtensionWorkflowNotFound | RepoNotFound
JSON

One of the following:

  • ExtensionInstallationNotFoundEncoded
    • _tag
      ExtensionInstallationNotFound
      required
    • extension_name
      string
      required
      minLength: 1
    • message
      string
      required
  • ExtensionWorkflowNotFoundEncoded
    • _tag
      ExtensionWorkflowNotFound
      required
    • extension_name
      string
      required
      minLength: 1
    • workflow
      string
      required
      minLength: 1
    • message
      string
      required
  • RepoNotFoundEncoded
    • _tag
      RepoNotFound
      required

409

RepoArchived
JSON
  • _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 | OrgFailure
JSON

One of the following:

  • RepoFailureEncoded
    • _tag
      RepoFailure
      required
    • reason
      string
      required
  • OrgFailureEncoded
    • _tag
      OrgFailure
      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