Users

Remove Role from User

DEL
Removes a role from a user.

Path parameters

userIdstringRequired
The user id
actorRoleIdstringRequired
The actor role id

Response

This endpoint returns an object
data
objectOptional

Errors

DEL
1curl -X DELETE https://api.x.flatfile.com/v1/users/:userId/roles/:actorRoleId \
2 -H "X-Disable-Hooks: true" \
3 -H "Authorization: Bearer <token>"
1{
2 "data": {
3 "success": true
4 }
5}