Associate Roles With This User
post
/api/v2/users/{id}/roles/
Make a POST request to this resource to add or remove a role from this user. The following fields may be modified:
id: The Role ID to add to the user. (int, required)disassociate: Provide if you want to remove the role. (any value, optional)
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : RoleSerializerWithParentAccess
Type:
Show Source
object-
description:
string
Title:
DescriptionRead Only:true -
id:
integer
Title:
IDRead Only:true -
name:
string
Title:
NameRead Only:true - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true
Response
Supported Media Types
- application/json
201 Response
Root Schema : RoleSerializerWithParentAccess
Type:
Show Source
object-
description:
string
Title:
DescriptionRead Only:true -
id:
integer
Title:
IDRead Only:true -
name:
string
Title:
NameRead Only:true - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true