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:
- GET /Teams/{id}/Users and get details of all team members
- 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.
Related content
Send Documentation Feedback - If you have comments about this documentation, you can contact the documentation team by sending your feedback to us. We appreciate your feedback!