Skip to content
Navigation

getOrgPermissions

List the org actions you may do in this org, such as manageGroups or readMembers: the same decisions the org makes when you try them, and every action if you own the org. Any member may ask. Agents can call it to learn what they may do before trying.

GET
/orgs/{org_id}/permissions

Path parameters

  • org_id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$

Returns

200

OrgPermissions

JSON
  • actions
    array of
    read
    or
    update
    or
    delete
    or
    listRepos
    or
    createRepos
    or
    readMembers
    +13 more
    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

ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

  • ForbiddenOriginEncoded
    • _tag
      ForbiddenOrigin
      required
  • RequiresPersonalSessionEncoded
    • _tag
      RequiresPersonalSession
      required
  • RunBranchRequiredEncoded
    • _tag
      RunBranchRequired
      required
    • branch
      string
      required
      minLength: 1
    • message
      string
      required

404

OrgNotFound
JSON
  • _tag
    OrgNotFound
    required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

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