PUT
/
program
/
{program_id}
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."
}

Authorizations

Authorization
string
header
required

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

Path Parameters

program_id
integer
required

The ID of the program to update

Body

application/json

Data to update a program

The body is of type object.

Response

200
application/json

Successful operation

The response is of type object.