Version 4.0.25.20 (latest)
Set roles of the user with a specific id.
Request
PUT
/users/{user_id}/roles
Datatype
Description
Request
HTTP Request
path
HTTP Path
Expand HTTP Path definition...
user_id
string
Id of user
body
HTTP Body
Expand HTTP Body definition...
body
string[]
query
HTTP Query
Expand HTTP Query definition...
fields
string
Requested fields.
Response
200: Roles of user.
Datatype
Description
(array)
Role
[]
can
lock
object
Operations the current user is able to perform on this object
id
lock
string
Unique Id
name
string
Name of Role
Expand PermissionSet definition...
can
lock
object
Operations the current user is able to perform on this object
all_access
lock
boolean
built_in
lock
boolean
id
lock
string
Unique Id
name
string
Name of PermissionSet
permissions
string[]
url
lock
string
Link to get this item
permission_set_id
string
(Write-Only) Id of permission set
Expand ModelSet definition...
can
lock
object
Operations the current user is able to perform on this object
all_access
lock
boolean
built_in
lock
boolean
id
lock
string
Unique Id
models
string[]
name
string
Name of ModelSet
url
lock
string
Link to get this item
model_set_id
string
(Write-Only) Id of model set
url
lock
string
Link to get this item
users_url
lock
string
Link to get list of users with this role
400: Bad Request
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
403: Permission Denied
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
Datatype
Description
(object)
message
lock
string
Error details
errors
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
string
Error details
documentation_url
lock
string
Documentation link

