PUT
/
admin
/
donation
/
{donation_id}
curl --request PUT \
  --url https://api.helpyousponsor.com/v1/admin/donation/{donation_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --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"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

donation_id
integer
required

ID of the donation to be edited

Body

application/json
Donation data to be edited
amount
string
Example:

"20"

client_id
integer
Example:

1

created_at
string
Example:

"2022-01-01 00:00:00"

designation
integer
Example:

1

donation_id
integer
Example:

1

donor_id
integer
Example:

1

id
integer
Example:

1

method
integer
Example:

1

one_time
integer
Example:

1

result
string
Example:

"<p>Result note</p>"

type
integer
Example:

1

Response

200
application/json
Donation successfully edited.
message
string
Example:

"Successfull"