Manual
CLI
API
Log in Get started free

Give a team access to a project

Gives the team a role in a project, or changes the role it has.

Gives the team a role in a project, or changes the role it has.

HTTP
PUT /teams/{teamId}/projects/{projectId}

Access: Session token only. API keys get 403 with insufficient_scope.

Role: Organisation owner or admin, or owner or admin of the team.

Path parameters #

ParameterDescription
teamIdThe id of the team.
projectIdThe id of a project of your organisation.

Request body #

JSON.

FieldTypeRequiredDescription
rolestringnomanager, reviewer or translator. Default translator.
JSON
{ "role": "reviewer" }

Response 200 #

The team after the change.

JSON
{
  "id": "0197a3c5-3c42-7f33-96ea-8a2d4b9f1c53",
  "name": "Core",
  "icon": "👥",
  "accent": null,
  "description": "Product translators",
  "allProjects": false,
  "languages": ["de-de", "fr-fr"],
  "members": [
    { "id": "0197a3c2-5b1e-7c4a-9d2f-3e8b6a1f0c55", "name": "Ada Lovelace", "email": "ada@example.com", "initials": "AL", "gradient": "...", "from": "#06b6d4", "to": "#7c3aed", "role": "owner" }
  ],
  "projects": [
    { "projectId": "0197a3c6-4d53-7a44-87fb-9b3e5c0a2d64", "role": "translator" }
  ]
}

Response fields #

FieldTypeDescription
idstringThe id of the team.
namestringThe name.
iconstringAn emoji. The app shows an abbreviation of the name instead.
accentstring or nullA colour.
descriptionstringA description.
allProjectsbooleanWhether the team has access to every project.
languageslist of stringLanguage codes the team works in.
memberslist of objectThe members: the fields of a person (id, name, email, initials, gradient, from, to) and their team role.
projectslist of objectThe projects the team has access to: projectId and the role the team has there.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe team does not exist in your organisation, or an id is not a UUID.
403forbiddenYou may not change this team.
422invalid_requestrole is not valid.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.