Skip to content
Navigation

createRepoExtensionInstallationUiShare

Share the UI of main's installation publicly. Anyone with the answer's address opens the UI without signing in, as a guest who acts as the extension: its context names no user, and its page may call only the installation's tools, through callRepoExtensionInstallationTool, and only those an org policy lets the extension's guests call (request.principal is "guest"). Its guests join the installation's rooms only where an org policy lets the extension's guests join them (the room action join); it has no stream. Each call makes a new share with its own address; revoke one with deleteRepoExtensionInstallationUiShare. It takes the share action on the installation, which the org's policies grant; without it, and from extension code, it answers Forbidden. A share answers 404 while main installs no version with a UI and serves again once main installs one; it ends when it is revoked or the installation is removed.

POST
/repos/{repo_id}/extension-installations/{name}/ui-shares

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

Returns

200

Success

JSON
  • slug
    string
    required
    maxLength: 53 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*-[2-9b-df-hjkmnp-tv-z]{16}$
  • address
    string
    required
  • created_by
    string
    required
    pattern: ^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • created_at
    string
    required

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

ExtensionInstallationNotFound | ExtensionUiNotFound | RepoNotFound
JSON

One of the following:

  • ExtensionInstallationNotFoundEncoded
    • _tag
      ExtensionInstallationNotFound
      required
    • extension_name
      string
      required
      minLength: 1
    • message
      string
      required
  • ExtensionUiNotFoundEncoded
    • _tag
      ExtensionUiNotFound
      required
    • extension_name
      string
      required
  • RepoNotFoundEncoded
    • _tag
      RepoNotFound
      required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

ControlPlaneFailure | RepoFailure | OrgFailure
JSON

One of the following:

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