Skip to main content
PATCH
/
v1
/
team
/
members
/
{userId}
/
team
Assign or unassign a user to/from a team
curl --request PATCH \
  --url https://api.example.com/v1/team/members/{userId}/team \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "teamId": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

Body

application/json
teamId
string | null
required

Team ID to assign the user to, or null to remove from team

Response

200

Team assignment updated