PUT
/
organizations
/
{organization}
/
members
/
roles
curl --request PUT \
  --url https://cloud.local.wirtual.dev/api/v2/organizations/{organization}/members/roles \
  --header 'Content-Type: application/json' \
  --header 'Wirtual-Session-Token: <api-key>' \
  --data '{
  "display_name": "<string>",
  "name": "<string>",
  "organization_permissions": [
    {
      "action": "application_connect",
      "negate": true,
      "resource_type": "*"
    }
  ],
  "site_permissions": [
    {
      "action": "application_connect",
      "negate": true,
      "resource_type": "*"
    }
  ],
  "user_permissions": [
    {
      "action": "application_connect",
      "negate": true,
      "resource_type": "*"
    }
  ]
}'
[
  {
    "display_name": "<string>",
    "name": "<string>",
    "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organization_permissions": [
      {
        "action": "application_connect",
        "negate": true,
        "resource_type": "*"
      }
    ],
    "site_permissions": [
      {
        "action": "application_connect",
        "negate": true,
        "resource_type": "*"
      }
    ],
    "user_permissions": [
      {
        "action": "application_connect",
        "negate": true,
        "resource_type": "*"
      }
    ]
  }
]

Authorizations

Wirtual-Session-Token
string
header
required

Path Parameters

organization
string
required

Organization ID

Body

application/json
Upsert role request
display_name
string
name
string
organization_permissions
object[]

OrganizationPermissions are specific to the organization the role belongs to.

site_permissions
object[]
user_permissions
object[]

Response

200 - application/json
OK
display_name
string
name
string
organization_id
string
organization_permissions
object[]

OrganizationPermissions are specific for the organization in the field 'OrganizationID' above.

site_permissions
object[]
user_permissions
object[]