Archive an approval group
curl --request DELETE \
--url https://api.anchorage-staging.com/v4/approvers/approval-groups/{approvalGroupId} \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.anchorage-staging.com/v4/approvers/approval-groups/{approvalGroupId}"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>'
}
};
fetch('https://api.anchorage-staging.com/v4/approvers/approval-groups/{approvalGroupId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"approvalGroupId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"name": "<string>",
"status": "PENDING_APPROVAL",
"action": {
"id": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"reason": "<string>"
},
"createdAt": "2019-01-02T12:34:56.000Z"
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Archive an approval group
Archive an approval group and submit the change for approval. Archiving does not delete the group.
DELETE
/
approvers
/
approval-groups
/
{approvalGroupId}
Archive an approval group
curl --request DELETE \
--url https://api.anchorage-staging.com/v4/approvers/approval-groups/{approvalGroupId} \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Idempotency-Key: <idempotency-key>'import requests
url = "https://api.anchorage-staging.com/v4/approvers/approval-groups/{approvalGroupId}"
headers = {
"Idempotency-Key": "<idempotency-key>",
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
'Idempotency-Key': '<idempotency-key>',
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>'
}
};
fetch('https://api.anchorage-staging.com/v4/approvers/approval-groups/{approvalGroupId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"approvalGroupId": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"name": "<string>",
"status": "PENDING_APPROVAL",
"action": {
"id": "3486b413-93d3-4447-afce-2b9c9dc34a32",
"reason": "<string>"
},
"createdAt": "2019-01-02T12:34:56.000Z"
}
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Headers
Path Parameters
Was this page helpful?