Update the priority of an approval policy by its ID
curl --request PATCH \
--url https://api.dots.dev/api/v2/accounts-payable/approval-policies/{approval_policy_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"priority": 123
}'
{
"active": true,
"api_app_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approval_conditions": [
{
"approver_list": [
{
"id": 123,
"name": "<string>"
}
],
"num_approvals_required": 123
}
],
"payable_conditions": [
{
"comparator": "<string>",
"type": "<any>",
"value": 123
}
],
"created": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 123
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The ID of the Approval Policy
OK
The response is of type object
.
Was this page helpful?
curl --request PATCH \
--url https://api.dots.dev/api/v2/accounts-payable/approval-policies/{approval_policy_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"priority": 123
}'
{
"active": true,
"api_app_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approval_conditions": [
{
"approver_list": [
{
"id": 123,
"name": "<string>"
}
],
"num_approvals_required": 123
}
],
"payable_conditions": [
{
"comparator": "<string>",
"type": "<any>",
"value": 123
}
],
"created": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 123
}
Update the priority of an approval policy by its ID
curl --request PATCH \
--url https://api.dots.dev/api/v2/accounts-payable/approval-policies/{approval_policy_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"priority": 123
}'
{
"active": true,
"api_app_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approval_conditions": [
{
"approver_list": [
{
"id": 123,
"name": "<string>"
}
],
"num_approvals_required": 123
}
],
"payable_conditions": [
{
"comparator": "<string>",
"type": "<any>",
"value": 123
}
],
"created": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 123
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The ID of the Approval Policy
OK
The response is of type object
.
Was this page helpful?
curl --request PATCH \
--url https://api.dots.dev/api/v2/accounts-payable/approval-policies/{approval_policy_id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"priority": 123
}'
{
"active": true,
"api_app_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"approval_conditions": [
{
"approver_list": [
{
"id": 123,
"name": "<string>"
}
],
"num_approvals_required": 123
}
],
"payable_conditions": [
{
"comparator": "<string>",
"type": "<any>",
"value": 123
}
],
"created": "2023-11-07T05:31:56Z",
"description": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priority": 123
}