Reject a request
curl --request POST \
--url https://api.anchorage-staging.com/v2/atlas/requests/{requestId}/reject \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'import requests
url = "https://api.anchorage-staging.com/v2/atlas/requests/{requestId}/reject"
payload = { "reason": "<string>" }
headers = {
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({reason: '<string>'})
};
fetch('https://api.anchorage-staging.com/v2/atlas/requests/{requestId}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request": {
"agreementId": "<string>",
"approvalRequired": true,
"createdAt": "2023-11-07T05:31:56Z",
"initiatedBy": "pledgor",
"pledgorParticipantId": "<string>",
"requestId": "<string>",
"securedPartyParticipantId": "<string>",
"status": "proposed",
"type": "createOESAgreement",
"updatedAt": "2023-11-07T05:31:56Z",
"delegationChange": {
"delegationId": "<string>",
"items": [
{
"amount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"currentAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"resultingAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"walletId": "<string>"
}
],
"vaultId": "<string>"
},
"expiresAt": "2023-11-07T05:31:56Z",
"oesAgreement": {
"exchangeAccountId": "<string>",
"exchangeProfileId": "<string>"
}
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Reject a request
Permissions required: Authorize Agreement Operations or Propose and Accept settlements
The authorize permission must be granted with any vault allowed.
Reject a request that is waiting on you. A rejection is final and needs no other party: the request moves to rejected and nothing changes. A change you proposed yourself cannot be decided here yet; it is refused.
The decision is carried out asynchronously. Poll GET /atlas/requests/{requestId} to follow the request to rejected.
POST
/
atlas
/
requests
/
{requestId}
/
reject
Reject a request
curl --request POST \
--url https://api.anchorage-staging.com/v2/atlas/requests/{requestId}/reject \
--header 'Api-Access-Key: <api-key>' \
--header 'Api-Signature: <api-signature>' \
--header 'Api-Timestamp: <api-timestamp>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'import requests
url = "https://api.anchorage-staging.com/v2/atlas/requests/{requestId}/reject"
payload = { "reason": "<string>" }
headers = {
"Api-Signature": "<api-signature>",
"Api-Timestamp": "<api-timestamp>",
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Api-Signature': '<api-signature>',
'Api-Timestamp': '<api-timestamp>',
'Api-Access-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({reason: '<string>'})
};
fetch('https://api.anchorage-staging.com/v2/atlas/requests/{requestId}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request": {
"agreementId": "<string>",
"approvalRequired": true,
"createdAt": "2023-11-07T05:31:56Z",
"initiatedBy": "pledgor",
"pledgorParticipantId": "<string>",
"requestId": "<string>",
"securedPartyParticipantId": "<string>",
"status": "proposed",
"type": "createOESAgreement",
"updatedAt": "2023-11-07T05:31:56Z",
"delegationChange": {
"delegationId": "<string>",
"items": [
{
"amount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"currentAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"resultingAmount": {
"amount": "10.45234733",
"assetType": "ETH",
"tokenId": "123"
},
"walletId": "<string>"
}
],
"vaultId": "<string>"
},
"expiresAt": "2023-11-07T05:31:56Z",
"oesAgreement": {
"exchangeAccountId": "<string>",
"exchangeProfileId": "<string>"
}
}
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Headers
Body
application/json
Was this page helpful?