Create a basic API access policy
Creates a new basic API access policy for the specified API resource using structured conditions.
API-KeyX-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>
The unique identifier of the API resource.
Request Body
application/json
The request payload used to create the policy.
TypeScript Definitions
Use the request body type in TypeScript.
Create Basic API Access Policy Request: Creates a basic API access policy using structured conditions.
Response Body
application/json
The policy was created successfully
TypeScript Definitions
Use the response body type in TypeScript.
Basic API Access Policy Response: Represents a basic API access policy defined using structured conditions.
Errors
curl -X POST "https://your-domain.us.monocloud.com/api/resources/api_resources/EF12vwe266fUHM6dh5Gup/policies/basic" \ -H "X-API-KEY: <token>" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "client_id": "string" }'{ "id": "string", "enabled": true, "name": "string", "description": null, "type": "basic", "is_permitted": true, "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, "client_id": "string", "scopes": [ "string" ]}List API access policies GET
Retrieves a paginated list of API access policies (both basic and advanced) for the specified API resource. Optional query parameters allow sorting of the results.
Retrieve a basic API access policy GET
Retrieves detailed information for the specified basic API access policy.