curl --request PUT \
--url https://api.helpyousponsor.com/v1/program/{program_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 3541,
"client_id": "207",
"hysform_id": 638,
"donor_hysform_id": null,
"setting_id": 410,
"emailset_id": 1567,
"entity_submit": null,
"donor_submit": null,
"link_id": null,
"name": "adfdfs",
"prefix": "fd",
"counter": "0",
"lft": 2,
"rgt": 5,
"tree": 207,
"box_folder_id": null,
"deleted_at": null,
"created_at": "2023-11-23T17:14:06.000000Z",
"updated_at": "2023-11-23T17:21:37.000000Z",
"children": "[]",
"user_id": 542,
"program_id": 3541
}'
{
"message": "Program info successfully updated."
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the program to update
Data to update a program
The body is of type object
.
Successful operation
The response is of type object
.
curl --request PUT \
--url https://api.helpyousponsor.com/v1/program/{program_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": 3541,
"client_id": "207",
"hysform_id": 638,
"donor_hysform_id": null,
"setting_id": 410,
"emailset_id": 1567,
"entity_submit": null,
"donor_submit": null,
"link_id": null,
"name": "adfdfs",
"prefix": "fd",
"counter": "0",
"lft": 2,
"rgt": 5,
"tree": 207,
"box_folder_id": null,
"deleted_at": null,
"created_at": "2023-11-23T17:14:06.000000Z",
"updated_at": "2023-11-23T17:21:37.000000Z",
"children": "[]",
"user_id": 542,
"program_id": 3541
}'
{
"message": "Program info successfully updated."
}