DELETE rbac/roles/:role id/users/:user id
From Social ID Developers
Revision as of 00:51, 18 November 2022 by Gabriel.prado (Talk | contribs)
Contents |
Description
Removes a Role from a User.
Resource URL
DELETE https://api.socialidnow.com/v1/rbac/roles/:role_id/users/:user_id
Parameters
URL Parameters
role_id | required | role identifier. |
---|---|---|
user_id | required | user identifier. |
source_type | optional | type of the source that added the role to the user. Default: "custom". |
source_id | optional | source identifier. Default: "api". |
Authentication
This API requires Account authentication. See Authentication.
Response
Response Status
ok (200) | The role was successfully removed from the user. |
---|---|
unauthorized (401) | The authentication is wrong. See Authentication. |
forbidden (403) | The account does not have access to this role or user. |
internal_server_error (500) | An unknown error happened. |
Examples
Without parameters
Request
curl -iX DELETE 'https://api.socialidnow.com/v1/rbac/roles/1/users/10' \ --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf
Response
Response Headers
HTTP/1.1 200 OK Status: 200
With source parameters
Request
curl -iX DELETE 'https://api.socialidnow.com/v1/rbac/roles/1/users/10?source_type=group&source_id=5' \ --user 138:e8b9ca24f1b590af67e6271297d6e1f7226625d61c5b5daa1b2f215464e292cf
Response
Response Headers
HTTP/1.1 200 OK Status: 200