curl --request PUT \
--url https://api.helpyousponsor.com/v1/admin/donation/{donation_id} \
--header 'Content-Type: application/json' \
--header 'X-HYS-API-Key: <api-key>' \
--data '
{
"amount": "20",
"client_id": 1,
"created_at": "2022-01-01 00:00:00",
"designation": 1,
"donation_id": 1,
"donor_id": 1,
"id": 1,
"method": 1,
"one_time": 1,
"result": "<p>Result note</p>",
"type": 1
}
'{
"message": "Successfull"
}API key generated from Developer Settings. Format: hys_...
ID of the donation to be edited
Donation data to be edited
"20"
1
"2022-01-01 00:00:00"
1
1
1
1
1
1
"<p>Result note</p>"
1
Donation successfully edited.
"Successfull"
curl --request PUT \
--url https://api.helpyousponsor.com/v1/admin/donation/{donation_id} \
--header 'Content-Type: application/json' \
--header 'X-HYS-API-Key: <api-key>' \
--data '
{
"amount": "20",
"client_id": 1,
"created_at": "2022-01-01 00:00:00",
"designation": 1,
"donation_id": 1,
"donor_id": 1,
"id": 1,
"method": 1,
"one_time": 1,
"result": "<p>Result note</p>",
"type": 1
}
'{
"message": "Successfull"
}