/api/v1/check-user-role-limitCheck an amount against a member's role limit
Tests whether a proposed amount fits within a role's spending limit for one member, returning true when it does and changing nothing either way.
MANAGE_ROLEThis answers the question "can this member move this much?". You name the role,
the workspace, the member, and the amount, and Success comes back true when
the amount fits within the role's limit for that member and false when it does
not. Pass the role the member actually holds in that workspace, which
GET /api/v1/get-users-from-workspace reports
as RoleId beside their UUID. For your own headroom, use
GET /api/v1/get-my-limits, which a member can call for
themselves with Initiate Payment.
A role limit is separate from the vault's limit, and both apply to a movement:
check the vault side with
GET /api/v1/check-vault-limit. Policies are enforced
before the signing stage, so a movement that breaches either limit is blocked and
never reaches signers. See Vault policies.
This is a pre-flight check against the member's usage at the moment you ask.
Nothing is held back for them, so their own next movement, or a cycle reset,
can change the answer. Treat true as "this would be accepted now", not as a
guarantee that a later proposal will pass.
role_idnumberrequiredworkspace_idnumberrequireduuidnumberrequiredamount_to_checkstringrequired