Change a wish list item
curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/fundraising/wishlist/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "closed",
"closed_reason": "The vet clinic donated a case."
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'closed', closed_reason: 'The vet clinic donated a case.'})
};
fetch('https://{organization}.rescueconsole.com/api/fundraising/wishlist/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/fundraising/wishlist/{id}"
payload = {
"status": "closed",
"closed_reason": "The vet clinic donated a case."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"item": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"category": "food",
"quantity_needed": 123,
"quantity_fulfilled": 123,
"quantity_remaining": 123,
"is_fulfilled": true,
"unit": "<string>",
"animal_id": "<string>",
"animal_name": "<string>",
"campaign_id": "<string>",
"campaign_name": "<string>",
"priority": "low",
"status": "open",
"closed_reason": "<string>",
"closed_at": "2023-11-07T05:31:56Z",
"estimated_unit_cost_cents": 123,
"estimated_remaining_cents": 123,
"external_url": "<string>",
"fulfillment_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"fulfillments": [
{
"id": "<string>",
"quantity": 123,
"donor_person_id": "<string>",
"donor_name": "<string>",
"donation_id": "<string>",
"received_on": "2023-12-25",
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Wish list
Change a wish list item
Send only what changes. To stop asking for something, send status: closed with a closed_reason; status: open asks again and clears the reason. The animal and the campaign cannot be changed after the item is added. Needs write on Fundraising.
PATCH
/
api
/
fundraising
/
wishlist
/
{id}
Change a wish list item
curl --request PATCH \
--url https://{organization}.rescueconsole.com/api/fundraising/wishlist/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"status": "closed",
"closed_reason": "The vet clinic donated a case."
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 'closed', closed_reason: 'The vet clinic donated a case.'})
};
fetch('https://{organization}.rescueconsole.com/api/fundraising/wishlist/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/fundraising/wishlist/{id}"
payload = {
"status": "closed",
"closed_reason": "The vet clinic donated a case."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"item": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"category": "food",
"quantity_needed": 123,
"quantity_fulfilled": 123,
"quantity_remaining": 123,
"is_fulfilled": true,
"unit": "<string>",
"animal_id": "<string>",
"animal_name": "<string>",
"campaign_id": "<string>",
"campaign_name": "<string>",
"priority": "low",
"status": "open",
"closed_reason": "<string>",
"closed_at": "2023-11-07T05:31:56Z",
"estimated_unit_cost_cents": 123,
"estimated_remaining_cents": 123,
"external_url": "<string>",
"fulfillment_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"fulfillments": [
{
"id": "<string>",
"quantity": 123,
"donor_person_id": "<string>",
"donor_name": "<string>",
"donation_id": "<string>",
"received_on": "2023-12-25",
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Path Parameters
The wish list item's ID.
Body
application/json
Cannot be empty.
Available options:
food, medical, supplies, equipment, enrichment, other Required range:
x >= 1Available options:
low, normal, urgent What one costs, in whole cents. Null clears it.
Required range:
x >= 0closed means you have stopped asking, which is not the same as enough having arrived: see is_fulfilled.
Available options:
open, closed Why you stopped asking. Required when status is closed.