curl --request DELETE \
--url 'https://api.computer.stateset.app/api/v1/approval-policies/{policy_id}' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
Delete Approval Policy V1
Delete an approval policy. In-flight ApprovalRequest rows that referenced the policy are NOT cascaded — they retain policy_id for audit but lose the linked…
DELETE
/
api
/
v1
/
approval-policies
/
{policy_id}
curl --request DELETE \
--url 'https://api.computer.stateset.app/api/v1/approval-policies/{policy_id}' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
Delete an approval policy. In-flight
ApprovalRequest rows
that referenced the policy are NOT cascaded — they retain
policy_id for audit but lose the linked policy row. To
suspend without losing audit trail, PATCH is_active=false.
Path parameters
string (uuid)
required
Response
No response body. Successful Response.Status codes
| Code | Meaning |
|---|---|
204 | Successful Response |
422 | Validation Error |
curl --request DELETE \
--url 'https://api.computer.stateset.app/api/v1/approval-policies/{policy_id}' \
--header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
Last modified on August 31, 2026