curl --request PUT \
--url https://api.helpyousponsor.com/v1/donor/{id}/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "1",
"dn_donor_name": "John Doe",
"dn_payment_type": "CC Monthly",
"dn_child_sponsored": "Tonny Green",
"username": "new_username",
"email": "email@gmail.com",
"dn_address": "email@gmail.com",
"password": "new_password",
"id": "1",
"hysform_id": "1"
}'
{
"status": "success",
"data": {
"message": "Profile saved"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the donor to be edited
Successful operation
The response is of type object
.
curl --request PUT \
--url https://api.helpyousponsor.com/v1/donor/{id}/edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": "1",
"dn_donor_name": "John Doe",
"dn_payment_type": "CC Monthly",
"dn_child_sponsored": "Tonny Green",
"username": "new_username",
"email": "email@gmail.com",
"dn_address": "email@gmail.com",
"password": "new_password",
"id": "1",
"hysform_id": "1"
}'
{
"status": "success",
"data": {
"message": "Profile saved"
}
}