Delete organization user by composite key
DELETE/api/v1/orgs/{orgId}/users/{userId}
Delete an organization user by specifying both OrgId and UserId.
Usage
DELETE /orgs/{orgId}/users/{userId}
Parameters
orgId(Guid, required): the ID of the organization.userId(string, required): the Desk user ID of the user to remove from the organization.
Responses
204 No Content: user successfully removed from organization. Sub-organizations will also have the user removed.403 Forbidden: caller is not an admin of the organization, or caller is attempting to remove themselves.404 Not Found: organization or user not found.409 Conflict: cannot delete the last admin in the organization.
Security
This API requires authentication. Only admins of the target organization can remove members. An admin cannot remove their own membership.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 409
- 500
- 501
No Content
Bad Request
Unauthorized
Forbidden: caller is not admin in the organization, or attempted self-removal.
Not Found: organization or user not found.
Conflict: Cannot delete the last admin in the organization.
Internal Server Error
Not Implemented