Edit Approval Rule

PATCH https://api.sfox.com/v1/approval-rules/:rule_id

Change an existing approval rule in your account.

If you have an approval rule for altering SAFE settings, the change submitted may not be immediately processed as it may require approval from other users in your account.

Path Parameters

ParameterTypeDescription

rule_id required

int

ID of the approval rule generated by sFOX you wish to edit

Body Parameters

ParameterDescription

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

200
{
  id: 1,
  rule_type: "WITHDRAW",
  date_added: "2021-03-17T16:19:47.000Z",
  status: "Pending",
  available_approver_count: 2,
  required_approvals: 2,
  threshold: 100,
}

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