Add a User to a Team – POST /Teams/{teamId}/Users/{userId}



Add user to team according to team Id and user Id.

The ‘Manage Users’ permission is required to execute this API.

Usage:

  1. GET /Teams/{id}/Users and get details of all team members
  2. POST /Teams/{teamId}/Users/{userId} and add user to team

URL

/cxrestapi/auth/Teams/{teamId}/Users/{userId}

Method:

POST

Media Type (header):

Authorization: Bearer <access token value>
Content-Type: application/json;v=1.0

Parameters

Required:

teamId=[integer] – Unique Id of the Team
userId=[integer] – Unique Id of the User

Success Response:

Code: 204 Success

Error Response:

Code: 400 Bad Request
Code: 401 Unauthorized
Code: 403 Forbidden
Code: 404 Not Found

Sample Response:

no content

Notes:

Adds a user to a team according to the defined parameters. Once the request is successful, it does not return any content. If the request fails, it returns an error response.




Send Documentation Feedback - If you have comments about this documentation, you can contact the documentation team by sending your feedback to usWe appreciate your feedback!