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

Request

  • Base URL
    https://api.modjo.ai/v2
  • URL
    https://api.modjo.ai/v2/users/{id}/teams
  • Auth
    HTTP bearer

Path parameters

idinteger required

User ID

Example:1

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 operation across all 8 revisions of this API.