Remove a policy from an Autonomy Zone (removed)
DELETE/api/public/v1/zones/{zone_id}/policy-attachments/{public_id}
Removed: an AIP cannot leave its Autonomy Zone. Always answers 410 OPERATION_REMOVED and writes nothing, whatever the Idempotency-Key. An intent policy cannot leave its Autonomy Zone: delete it with DELETE /policies/{public_id}, or copy it to another zone with POST /policies/{public_id}/copy.
No example yet. Build the request from the parameters and request body below.
Authorization
Section titled “Authorization”| Role in the organization | This endpoint |
|---|---|
owner | Allowed |
admin | Allowed |
editor | Allowed |
viewer | Not allowed |
A key carries the role its owner holds in the organization. See Authentication.
API key scope: policies:write
Path parameters
Section titled “Path parameters”| Parameter | Type | Description |
|---|---|---|
zone_id | string (uuid) | Required. |
public_id | string | Required. |
Response
Section titled “Response”- 401 Unauthorized —
UNAUTHORIZED - 402 Payment Required —
license_expired - 403 Forbidden —
FEATURE_DISABLED,FORBIDDEN,INSUFFICIENT_SCOPE - 404 Not Found —
NOT_FOUND - 410 —
OPERATION_REMOVED - 422 Unprocessable Content —
INVALID_ID,VALIDATION_ERROR - 429 Too Many Requests —
TOO_MANY_REQUESTS - 500 Internal Server Error —
INTERNAL_SERVER_ERROR,tenant_isolation_violation - 503 Service Unavailable —
FEATURE_STATE_UNAVAILABLE,SERVICE_UNAVAILABLE