Associate Roles With This Team
post
/api/v2/teams/{id}/roles/
Make a POST request to this resource to add or remove a role from this team. The following fields may be modified:
id
: The Role ID to add to the team. (int, required)disassociate
: Provide if you want to remove the role. (any value, optional)
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : schema
Example:
{
"id":"4"
}
Response
Supported Media Types
- application/json
201 Response
400 Response
Example Response (application/json)
{
"msg":"You cannot assign an Organization participation role as a child role for a Team."
}
403 Response
Example Response (application/json)
{
"detail":"You do not have permission to perform this action."
}