Changes the role a team has in the project.
HTTP
PATCH /projects/{projectId}/teams/{teamId}Access: Session token only. API keys get 403 with insufficient_scope.
Role: Project manager (organisation owners and admins are managers of every project).
Path parameters #
| Parameter | Description |
|---|---|
projectId | The id of the project. |
teamId | The id of the team. |
Request body #
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
role | string | yes | manager, reviewer or translator. |
JSON
{ "role": "reviewer" }Response 200 #
The teams, as in List project teams.
Errors #
| Status | error | When |
|---|---|---|
| 401 | unauthenticated | The token is missing or not valid. |
| 404 | not_found | The project does not exist in your organisation, you have no access to it, or projectId is not a UUID. |
| 403 | forbidden | You are a member of the project, but not a manager. |
| 422 | invalid_request | role is not valid, or the team is not in your organisation. |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.