Delete a user
delete
/swm/rs/v1/users/{userId}
Delete a specific user from the system, and remove ALL of the user's space memberships.
A user can only delete himself/herself, thus the specified userId has to be the same as that of the API user.
A user can only delete himself/herself, thus the specified userId has to be the same as that of the API user.
Request
Supported Media Types
- application/json
Path Parameters
-
userId: string
The ID of the user resource
Response
Supported Media Types
- application/json; charset=UTF-8
200 Response
user resource deleted
403 Response
user resource action forbidden
404 Response
user resource not found
Examples
Sample Request:
DELETE swm/rs/v1/users/nNGCePPATZMzzpCm
Sample Response:
{"response":{"code":"200.2","developerMessage":"user resource deleted" }, "userId":"nNGCePPATZMzzpCm" }
Possible Error Codes:
{ "code":"404.0","developerMessage":"user resource not found" }