List a workspace's bank rules
GET/api/v1/workspaces/:workspace_id/bank_rules
Returns every imputation rule of the workspace - both the workspace-scoped ones and the company-scoped ones - in the order the engine walks them: priority ascending, then id ascending. Note that the LIST order is not the PRECEDENCE order: a company rule beats a workspace rule whatever its priority, so use scope to tell the two levels apart.
Request
Responses
- 200
- 400
- 401
- 403
The workspace's rules, lowest priority number first.
page is past the last page of a non-empty set, or is not a positive integer. STOP AT meta.total_pages rather than paging until data comes back empty: on a non-empty collection the page after the last one is THIS refusal, not an empty page. An EMPTY collection is the other case and behaves differently - it answers 200 with an empty data on every page, because it has no last page to be past.
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 no grant for this workspace, or no such workspace exists.