Create a Team for a Role

post

/api/v2/roles/{id}/teams/

Make a POST request to this resource with the following team fields to create a new team associated with this role.

  • name: Name of this team. (string, required)
  • description: Optional description of this team. (string, default="")
  • organization: (id, required)

Add Teams for a Role:

Make a POST request to this resource with only an id field to associate an existing team with this role.

Remove Teams from this Role:

Make a POST request to this resource with id and disassociate fields to remove the team from this role without deleting the team.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : schema
Example:
{
    "id":"1"
}
Back to Top

Response

Supported Media Types

201 Response

400 Response

Body
Example Response (application/json)
{
    "msg":"You cannot assign an Organization participation role as a child role for a Team."
}

403 Response

Body
Example Response (application/json)
{
    "detail":"You do not have permission to perform this action."
}
Back to Top