Skip to content

Detach a firewall policy

DELETE/v1/firewall-policies/{uid}/attachments/{attachment_uid}

Removes an attachment, so the policy no longer applies to that resource. A firewall.apply operation is queued for the resource, but its ID is not returned. If no other policy is attached, the resource is no longer filtered.

Find the attachment's uid in attached_resources from Get a firewall policy.

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The firewall policy's uid.

attachment_uidstringRequired

The attachment's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The policy was detached.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The policy, or the attachment on it, does not exist.

Errors use the standard error format.