Skip to content

Unprotect a resource

Method

DELETE https://papi.afi.ai/api/v1/tenants/{tenant_id}/resources/{resource_id}/protect

Description

Unassign given policy from the resource.

Path params
tenant_id string required

Tenant where the resource belongs to.

resource_id string required

ID of the resource to unprotect. External ID can NOT be used here.

Query params
policy_id string required

Policy ID to unassign from the resource.

curl -X DELETE \
    -H 'Authorization: {api-key}' \
    https://papi.afi.ai/api/v1/tenants/{tenant_id}/resources/{resource_id}/protect?policy_id={value}

Successful response (200) schema
object

Response example
{}