PUT
/
organizations
/
{organization}
/
members
/
{user}
/
roles
curl --request PUT \
  --url https://cloud.local.wirtual.dev/api/v2/organizations/{organization}/members/{user}/roles \
  --header 'Content-Type: application/json' \
  --header 'Wirtual-Session-Token: <api-key>' \
  --data '{
  "roles": [
    "<string>"
  ]
}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "roles": [
    {
      "display_name": "<string>",
      "name": "<string>",
      "organization_id": "<string>"
    }
  ],
  "updated_at": "2023-11-07T05:31:56Z",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Wirtual-Session-Token
string
header
required

Path Parameters

organization
string
required

Organization ID

user
string
required

User ID, name, or me

Body

application/json
Update roles request
roles
string[]

Response

200 - application/json
OK
created_at
string
organization_id
string
roles
object[]
updated_at
string
user_id
string