Update multiple app resource roles in a single transactional request. Either all updates succeed or all fail.
cURL
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>" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The roles to update.
Show child attributes
Success
The updated roles.
Was this page helpful?