curl --request PATCH \
--url https://api.helpyousponsor.com/v1/admin/commitments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"donor_entity_ids": "[1, 2, 3]",
"values": {
"frequency": "1",
"until": "2022-12-31",
"method": "1",
"amount": "100.00",
"next": "2022-01-31"
}
}'
{
"message": "Successful"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Data needed to edit multiple commitments
The body is of type object
.
Successful
The response is of type object
.
curl --request PATCH \
--url https://api.helpyousponsor.com/v1/admin/commitments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"donor_entity_ids": "[1, 2, 3]",
"values": {
"frequency": "1",
"until": "2022-12-31",
"method": "1",
"amount": "100.00",
"next": "2022-01-31"
}
}'
{
"message": "Successful"
}