Edit Approval Rule
PATCH
https://api.sfox.com/v1
/approval-rules/:rule_id
Change an existing approval rule in your account.
Path Parameters
Parameter
Type
Description
rule_id
required
int
ID of the approval rule generated by sFOX you wish to edit
Body Parameters
Parameter
Description
required_approvals
int
Number of approvals needed for the action to be approved.
threshold
number
The withdrawal amount (USD) required for the action to require approvals.
Responses
Example Requests
curl -X PATCH \
-H 'Content-type: application/json' \
-H 'Authorization: Bearer <API_TOKEN>' \
--data '{ "required_approvals": 3 , "threshold": 500 }' \
'https://api.sfox.com/v1/approval-rules/1'
Last updated