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
client_id
string
Example:

"1"

dn_donor_name
string
Example:

"John Doe"

dn_payment_type
string
Example:

"CC Monthly"

dn_child_sponsored
string
Example:

"Tonny Green"

username
string
Example:

"new_username"

email
string
Example:

"email@gmail.com"

dn_address
string
Example:

"email@gmail.com"

password
string
Example:

"new_password"

id
string
Example:

"1"

hysform_id
string
Example:

"1"

Response

200
application/json
Successful operation
status
string
Example:

"success"

data
object