Skip to main content
POST
Set a user's roles in an organisation

Authorizations

Authorization
string
header
required

A personal API token from the platform's settings page, or an OAuth access token.

Path Parameters

id
integer
required

User ID

Body

application/json
organisation_id
integer
required

Organisation to set roles in

roles
string[]
required

Role keys from List assignable roles; replaces the user's roles there

Response

OK: Roles saved.

results
object
required
success
enum<boolean>
required

Always true

Available options:
true