Delete pledge
curl --request DELETE \
--url https://api.grainledger.com/api/v1/pledges/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'const options = {
method: 'DELETE',
headers: {'X-Organization-Id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.grainledger.com/api/v1/pledges/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.grainledger.com/api/v1/pledges/{id}"
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}Pledges
Delete pledge
DELETE
https://api.grainledger.com
/
api
/
v1
/
pledges
/
{id}
Delete pledge
curl --request DELETE \
--url https://api.grainledger.com/api/v1/pledges/{id} \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'const options = {
method: 'DELETE',
headers: {'X-Organization-Id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.grainledger.com/api/v1/pledges/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.grainledger.com/api/v1/pledges/{id}"
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}{
"message": "You do not have access to this organization."
}Authorizations
GrainOAuth2BearerAuth
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Organization ID for multi-tenant data access
Path Parameters
Resource ID
Response
Deleted
Example:
true
Last modified on July 8, 2026
⌘I