Remove a company exclusion
DELETE/api/v1/bank_rule_exclusions/:id
Puts the workspace rule back in force for that company, from the next classification on. It rewrites nothing already posted. The body is the exclusion as it stood when you asked for it to go.
Request
Responses
- 200
- 401
- 403
- 404
- 409
The exclusion that was removed.
The request carries no bearer token, or one that is invalid or expired. doorkeeper_authorize! is the first gate of the chain, so this is answered before the workspace, the company, the feature flag and the record are ever resolved - and before any Idempotency-Key is claimed.
The token holds neither the destroy nor the write scope this DELETE accepts.
No exclusion with this id is reachable by the token's grants. One belonging to another workspace answers the same way - this path carries neither the rule nor the company, so the exclusion's own workspace is what authorizes it.
You sent the optional Idempotency-Key and a call bearing it is still in flight - idempotency_request_in_progress. Nothing was written by THIS call. Once the first completes, the same key replays its stored response rather than conflicting.