Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Query parameters
pageintegerOptional1Page number for pagination
pageSizeintegerOptional10Number of items per page
orderbystringOptionalThe properties to order by
filterbystringOptionalThe filter expression to filter by
Header parameters
aw-internal-requeststringRequired"true"Marks this request as an internal request. Only allowed by the awork app or internally.
Responses
200 OK
application/json
userIdstringRequiredThe id of the user to add to the role.
isDeactivatedbooleanOptionalWhether the user is deactivated in this role.
roleIdstringOptionalThe id of the role the user is assigned to.