Skip to main content
PUT
/
v2
/
app-resource-roles
/
batch
Batch Update App Resource Roles
curl --request PUT \
  --url https://public.api.serval.com/v2/app-resource-roles/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "roles": [
    {
      "id": "<string>",
      "name": "<string>",
      "description": "<string>",
      "requestsEnabled": true,
      "accessPolicyId": "<string>",
      "provisioningMethod": {
        "builtinWorkflow": {}
      },
      "externalId": "<string>",
      "externalData": "<string>"
    }
  ]
}
'
{
  "data": [
    {
      "id": "<string>",
      "resourceId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "requestsEnabled": true,
      "accessPolicyId": "<string>",
      "provisioningMethod": {
        "builtinWorkflow": {}
      },
      "externalId": "<string>",
      "externalData": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
roles
UpdateAppResourceRoleInput · object[]

The roles to update.

Response

Success

data
Role · object[]

The updated roles.