PUT
/
donor
/
{id}
/
edit
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

ID of the donor to be edited

Body

application/json

Response

200
application/json

Successful operation

The response is of type object.