Custom Roles

Create a custom role

Creates a new custom role for the team with the specified name, description, and permission statements.

post/teams/{team_id}/create_custom_role

Path parameters

team_idinteger required

Team ID

Request body

namestring required
descriptionstring nullable

Example request

{
  "statements": [
    {
      "resource": "project:*"
    }
  ]
}

Response

idinteger required
teamIdinteger required
namestring required
descriptionstring nullable
creatorinteger
createTimeinteger required

Example response

{
  "statements": [
    {
      "resource": "project:*"
    }
  ]
}

Changes

Changed in 3 of the 5 revisions of this API.78

  • 005e83eb28f066See the full diff
    • added the new deployment:aiGateway:use enum value to the statements/items/actions/oneOf[subschema #2]/items/ response property for the response status 201

      response-property-enum-value-added

    • added the new directorySync:deleteGroupMapping enum value to the statements/items/actions/oneOf[subschema #2]/items/ response property for the response status 201

      response-property-enum-value-added

    • added the new directorySync:disable enum value to the statements/items/actions/oneOf[subschema #2]/items/ response property for the response status 201

      response-property-enum-value-added

    • added the new directorySync:enable enum value to the statements/items/actions/oneOf[subschema #2]/items/ response property for the response status 201

      response-property-enum-value-added

    • added the new directorySync:updateGroupMapping enum value to the statements/items/actions/oneOf[subschema #2]/items/ response property for the response status 201

      response-property-enum-value-added

    • added the new directorySync:view enum value to the statements/items/actions/oneOf[subschema #2]/items/ response property for the response status 201

      response-property-enum-value-added

    • added the new deployment:aiGateway:use enum value to the request property statements/items/actions/oneOf[subschema #2]/items/

      request-property-enum-value-added

    • added the new directorySync:deleteGroupMapping enum value to the request property statements/items/actions/oneOf[subschema #2]/items/

      request-property-enum-value-added

    • added the new directorySync:disable enum value to the request property statements/items/actions/oneOf[subschema #2]/items/

      request-property-enum-value-added

    • added the new directorySync:enable enum value to the request property statements/items/actions/oneOf[subschema #2]/items/

      request-property-enum-value-added

    • added the new directorySync:updateGroupMapping enum value to the request property statements/items/actions/oneOf[subschema #2]/items/

      request-property-enum-value-added

    • added the new directorySync:view enum value to the request property statements/items/actions/oneOf[subschema #2]/items/

      request-property-enum-value-added

    • the endpoint scheme security OAuth Team Token was removed from the API

      api-security-removed

  • cfe35d359fba11See the full diff
    • added the new deployment:usage:view enum value to the statements/items/actions/oneOf[subschema #2]/items/ response property for the response status 201

      response-property-enum-value-added

    • added the new deployment:usage:view enum value to the request property statements/items/actions/oneOf[subschema #2]/items/

      request-property-enum-value-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog