Roles

Create a new role in an organization

post/v1/roles

Request

  • Base URL
    https://api.tetrascience.com
  • URL
    https://api.tetrascience.com/v1/roles
  • Auth
    API key in header ts-auth-token and API key in header x-org-slug

Request body

namestring required
descriptionstring
ssoGroupMappingsstring[]
policyScopesstring[]

Example request

{
  "ssoGroupMappings": [
    "idp-group-name"
  ],
  "policyScopes": [
    "developer"
  ],
  "permissions": [
    {
      "resource": "pipelines",
      "action": "edit"
    }
  ]
}

Response

Responding with created role

idId (unresolved $ref)
namestring
descriptionstring
organizationIdId (unresolved $ref)
organizationSlugSchema (unresolved $ref)
ssoGroupMappingsstring[]
enabledboolean
createdAtCreatedAt (unresolved $ref)
policyScopesstring[]

Changes

No recorded changes to this operation across all 1 revision of this API.