Orishare
API reference
GET
/autonomy_policy

Authorization

AuthorizationBearer <token>

Secret API key bound to an environment.

In: header

Header Parameters

X-Orishare-Environment?string

Required for selected-environment authorization branches; API keys use their bound environment.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/autonomy_policy"
{  "environment_id": "string",  "runtime_class": "sandbox",  "mode": "auto",  "effective_mode": "auto",  "limits": {    "max_award_per_grant": "string",    "max_liability_per_currency": "string",    "max_issuances": "string",    "max_customers_affected": "string",    "max_stock_units": "string",    "max_codes": "string"  },  "default_limits": {    "max_award_per_grant": "string",    "max_liability_per_currency": "string",    "max_issuances": "string",    "max_customers_affected": "string",    "max_stock_units": "string",    "max_codes": "string"  },  "configurable": true,  "version": -9007199254740991,  "updated_at": "string",  "updated_by": "string",  "confirmation": {    "csrf_token": "string"  }}
PATCH
/autonomy_policy
__Secure-orishare.session_token<token>

Browser session; local and staging use their configured runtime cookie prefix.

In: cookie

Header Parameters

Idempotency-Key*string

Required. Official clients generate a UUID when omitted by the caller.

Length1 <= length <= 255
X-Orishare-Environment*string

Required for selected-environment authorization branches; API keys use their bound environment.

Length1 <= length
If-Match*string

Required revision, checked in the owning transaction.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/autonomy_policy" \  -H "Idempotency-Key: string" \  -H "X-Orishare-Environment: string" \  -H "If-Match: string" \  -H "Content-Type: application/json" \  -d '{    "mode": "limits"  }'
{  "environment_id": "string",  "runtime_class": "sandbox",  "mode": "auto",  "effective_mode": "auto",  "limits": {    "max_award_per_grant": "string",    "max_liability_per_currency": "string",    "max_issuances": "string",    "max_customers_affected": "string",    "max_stock_units": "string",    "max_codes": "string"  },  "default_limits": {    "max_award_per_grant": "string",    "max_liability_per_currency": "string",    "max_issuances": "string",    "max_customers_affected": "string",    "max_stock_units": "string",    "max_codes": "string"  },  "configurable": true,  "version": -9007199254740991,  "updated_at": "string",  "updated_by": "string"}