Add a role to a user

Prev Next
Get
/AddUserToRole

Allows you to add a user to a role

Security
API Key
Header parameter nameapi_key
Query parameters
userId
integer (int32) Required

The user's ID

roleId
integer (int32) Required

The role ID

Responses
200

OK Response

object
status
integer (int32)

Indicates the status of the API request.

  • 0 = Success
  • 10 = Error
  • 20 = Not found
  • 30 = Invalid integration key
Example10
error
string | null

Error details. This will only have a value if an error was encountered. The status property will also be set to Error (10).