List a bank rule's company exclusions
GET/api/v1/bank_rules/:bank_rule_id/exclusions
Returns the companies opted out of this workspace rule, lowest company id first. The same set is published as excluded_company_ids on the rule itself, which is usually enough - this endpoint is for when you need each exclusion's own id in order to remove it.
Request
Responses
- 200
- 400
- 401
- 403
- 404
The rule's exclusions.
page is past the last page of a non-empty set, or is not a positive integer. Stop at meta.total_pages: on a non-empty collection the page after the last one is this refusal, not an empty page. An EMPTY collection answers 200 with an empty data on every page instead.
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 does not hold the read scope this GET requires.
No rule with this id is reachable by the token's grants.