Wiki
Clone wikiNumera.LibrisAPI / identity.update_role
Home > API Reference Documentation > identity.update_role
identity.update_role
The identity.update_role
action is used to update the role of an existing identity. This operation can only be performed by Agent Supervisors or above.
Input Parameters
Property | Required | Description |
---|---|---|
email | no | The email of the identity to update |
account_id | no | The account_id of the identity to update |
role | yes | The integer value for the new role |
Output
The identity will be placed into the result object with the following properties (documented here) if the identity was updated properly.
Possible Status Codes
Status Code | Reason | Description |
---|---|---|
1000 | IDENTITY_NOT_FOUND | Could not find the identity to update |
1001 | ROLE_OUT_OF_BOUNDS | The user tried to update the identity's role to a role higher in priveleges than their own |
1002 | INVALID_ROLE | An invalid role value was passed in |
Updated