Users

Add a user to a team

Adds a user to a team. If the user is already a member of the team, the operation is idempotent and returns the existing membership.

post/users/{id}/teams

Path parameters

idinteger required

User ID

Example:1

User ID

Request body

teamIdinteger required

ID of the team to add the user to

Example request

{
  "teamId": 1
}

Response

User added to team

userIdnumber required

User ID

teamIdnumber required

Team ID

Example response

{
  "userId": 1,
  "teamId": 1
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.