Delete a rules-of-engagement policy
Deletes a policy that no sequence uses. Returns { "deleted": true }.
Refused with 409 while the policy is the team default (make another policy the default first) or while any sequence still names it (point those sequences at another policy first, with PATCH /v2/sequencer/sequences/{id}). Only the team owner or an admin can delete policies. The body must carry user_id, so make sure your HTTP client sends a body with DELETE. Counts against the Sequencer writes rate limit.
Before you delete
A policy in use cannot be deleted, and the request returns 409:- If it is the team default, make another policy the default first with Make a policy the team default.
- If sequences name it, point them at another policy first by setting
policywith Update a sequence.
Good to know
- Only the team owner or an admin can delete policies.
- The JSON body with
user_idis required. Some HTTP clients drop the body of aDELETEunless you send it explicitly.
Authorizations
Team-scoped API key generated in the Salesfinity dashboard under Settings → Connections → API & Webhooks. A missing or invalid key returns HTTP 403.
Path Parameters
24-character policy id.
Body
The team member this call acts as. Must be an active member of the team the API key belongs to.
"507f1f77bcf86cd799439011"
Response
The policy was deleted.
Always true.
true