Delete a Member From a Team – DELETE /Teams/{teamId}/users/{userId}



Delete a user from a 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. DELETE /Teams/{teamId}/users/{userId} and delete a member from a team

URL

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

Method:

DELETE

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

Sample Response:

no content

Notes:

Delete a user from 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!