v1
latestOpenAPI 3.0.02026-08-04891301.4 MBUpdate a team
Updates one or more attributes of the team identified by team. Only the fields you provide are changed; omitted fields are left as-is.
To replace the team's profile picture, supply the profile_picture object with base64-encoded image data. The previous picture is deleted after the new one is successfully uploaded. When app is present, the caller must hold the corresponding app scope. The caller must be a team owner or org admin.
patch/api/v1/teams/{team}
Path parameters
teamstring required
Team ID (team_...) of the team to update.
Request body
Example request
{
"acl": {
"add": [
{
"actions": [
"read",
"write"
],
"principal": "string",
"principal_type": "user"
}
],
"grants": [
{
"actions": [
"read",
"write"
],
"principal": "string",
"principal_type": "user"
}
],
"remove": [
{
"principal": "string",
"principal_type": "user"
}
]
},
"description": "An example description.",
"metadata": {
"key": "value"
},
"name": "Example Name",
"profile_picture": {
"data": "string",
"filename": "string",
"mime_type": "application/json"
}
}Response
Successful response
Example response
{
"acl": {
"add": [
{
"actions": [
"read",
"write"
],
"principal": "string",
"principal_type": "user"
}
],
"grants": [
{
"actions": [
"read",
"write"
],
"principal": "string",
"principal_type": "user"
}
],
"remove": [
{
"principal": "string",
"principal_type": "user"
}
]
},
"app": "dap_0aBcDeFgHiJkLmNoPqRsTu",
"badges": {},
"created_at": "2024-01-01T00:00:00Z",
"description": "An example description.",
"id": "tem_0aBcDeFgHiJkLmNoPqRsTu",
"membership_status": "member",
"metadata": {
"key": "value"
},
"name": "Example Name",
"org": "org_0aBcDeFgHiJkLmNoPqRsTu",
"sandbox": "dsb_0aBcDeFgHiJkLmNoPqRsTu",
"slug": "example-slug",
"updated_at": "2024-01-01T00:00:00Z"
}