Policies

Access policies and their attachments to principals.

GET
/ext/hindclaw/policies

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Response Body

application/json

curl -X GET "https://example.com/ext/hindclaw/policies"
[  {    "id": "string",    "display_name": "string",    "document": {},    "is_builtin": true  }]
POST
/ext/hindclaw/policies

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request to create an access policy.

Response Body

application/json

application/json

curl -X POST "https://example.com/ext/hindclaw/policies" \  -H "Content-Type: application/json" \  -d '{    "id": "string",    "display_name": "string",    "document": {}  }'
{  "id": "string",  "display_name": "string",  "document": {},  "is_builtin": true}
GET
/ext/hindclaw/policies/{policy_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

policy_id*Policy Id

Response Body

application/json

application/json

curl -X GET "https://example.com/ext/hindclaw/policies/string"
{  "id": "string",  "display_name": "string",  "document": {},  "is_builtin": true}
DELETE
/ext/hindclaw/policies/{policy_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

policy_id*Policy Id

Response Body

application/json

curl -X DELETE "https://example.com/ext/hindclaw/policies/string"
Empty
PUT
/ext/hindclaw/policies/{policy_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

policy_id*Policy Id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request to update an access policy.

Response Body

application/json

application/json

curl -X PUT "https://example.com/ext/hindclaw/policies/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "display_name": "string",  "document": {},  "is_builtin": true}
GET
/ext/hindclaw/policy-attachments

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

policy_id*Policy Id

Response Body

application/json

application/json

curl -X GET "https://example.com/ext/hindclaw/policy-attachments?policy_id=string"
[  {    "policy_id": "string",    "principal_type": "string",    "principal_id": "string",    "priority": 0  }]
PUT
/ext/hindclaw/policy-attachments

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Request to attach a policy to a principal.

Response Body

application/json

application/json

curl -X PUT "https://example.com/ext/hindclaw/policy-attachments" \  -H "Content-Type: application/json" \  -d '{    "policy_id": "string",    "principal_type": "string",    "principal_id": "string"  }'
{  "policy_id": "string",  "principal_type": "string",  "principal_id": "string",  "priority": 0}
DELETE
/ext/hindclaw/policy-attachments/{policy_id}/{principal_type}/{principal_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

policy_id*Policy Id
principal_type*Principal Type
principal_id*Principal Id

Response Body

application/json

curl -X DELETE "https://example.com/ext/hindclaw/policy-attachments/string/string/string"
Empty