Update a Team's Attributes
PATCH /api/0/organizations/{organization_slug}/scim/v2/Groups/{team_id}
Update a team's attributes with a SCIM Group PATCH Request. Valid operations are:
- Renaming a team:
Copied
{
"Operations": [{
"op": "replace",
"value": {
"id": 23,
"displayName": "newName"
}
}]
}
- Adding a member to a team:
Copied
{
"Operations": [{
"op": "add",
"path": "members",
"value": [
{
"value": 23,
"display": "testexample@example.com"
}
]
}]
}
- Removing a member from a team:
Copied
{
"Operations": [{
"op": "remove",
"path": "members[value eq "23"]"
}]
}
- Replacing an entire member set of a team:
Copied
{
"Operations": [{
"op": "replace",
"path": "members",
"value": [
{
"value": 23,
"display": "testexample2@sentry.io"
},
{
"value": 24,
"display": "testexample3@sentry.io"
}
]
}]
}
Path Parameters
organization_slug
(string)REQUIREDThe slug of the organization the resource belongs to.
team_id
(integer)REQUIREDThe id of the team you'd like to query / update.
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:team:admin
team:write
curl https://sentry.io/api/0/organizations/{organization_slug}/scim/v2/Groups/{team_id} \ -H 'Authorization: Bearer <auth_token>' \ -H 'Content-Type: application/json'
RESPONSE
Success.