Update an advanced API access policy

View as Markdown
PATCH
/resources/api_resources/{api_id}/policies/advanced/{policy_id}

Applies a partial update to the specified advanced API access policy. Only fields included in the request are updated.

Authorization

API-Key
headerX-API-KEY<token>

MonoCloud APIs require authentication with an API key. Retrieve your key from the Tenant Settings section of the MonoCloud dashboard and include it in the request header as: X-API-Key: <your_api_key>

Path Parameters

api_id*string

The unique identifier of the API resource.

policy_id*string

The unique identifier of the API access policy.

Request Body

application/json

The request payload used to update the policy.

TypeScript Definitions

Use the request body type in TypeScript.

Patch Advanced API Access Policy Request: Used to partially update an advanced API access policy.

Response Body

200

application/json

The advanced API access policy was updated successfully

TypeScript Definitions

Use the response body type in TypeScript.

Advanced API Access Policy Response: Represents a stored advanced API access policy authored using Cedar.

Errors

401Unauthorized
403Forbidden

curl -X PATCH "https://your-domain.us.monocloud.com/api/resources/api_resources/EF12vwe266fUHM6dh5Gup/policies/advanced/GIbxRmxz2tIyQDVdGR4yE" \  -H "X-API-KEY: <token>" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "enabled": true,  "name": "string",  "description": null,  "type": "basic",  "is_permitted": true,  "cedar": "string",  "actions": {    "access_token_type": null,    "access_token_lifetime": null,    "allow_multi_audience": null,    "allow_user_info_access": null,    "bind_tokens_to_session": null  },  "creation_time": 0,  "last_updated": 0,  "revision": 0,  "error": null}
© 2026 MonoCloud. All rights reserved.