Update donor
Changes the address, email or phone on a donor record.
PATCH https://cotlet.dev/api/v1/donorperfect/donors/{donor_id}
write Confirm
Saves the fields you pass on the donor record and leaves the others as they are. It changes demographic fields only: gifts, pledges and contacts are not touched. It returns the record as saved, so you can compare it with what you sent. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| donor_id integer required | integer | Donor ID from search_donors. |
| email string | string | New email address. |
| phone string | string | New phone number. |
| address string | string | New street address. |
| city string | string | New city. |
| state string | string | New state or province. |
| zip string | string | New ZIP or postal code. |
Request
curl -X PATCH https://cotlet.dev/api/v1/donorperfect/donors/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("donorperfect", "update_donor", {"donor_id":1}) const result = await cotlet.call('donorperfect', 'update_donor', {"donor_id":1}); cotlet call donorperfect update_donor --data '{"donor_id":1}' Example response
{
"donor_id": 48213,
"address": "45 Sample Avenue",
"city": "Portland",
"state": "OR",
"zip": "97205",
"status": "saved"
}