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
id
integer

The ID of the program

Example:

3541

client_id
string

The ID of the client

Example:

"207"

hysform_id
integer

The ID of the hysform

Example:

638

donor_hysform_id
integer
Example:

null

setting_id
integer

The ID of the setting

Example:

410

emailset_id
integer
Example:

1567

entity_submit
string

The entity submit

Example:

null

donor_submit
string

The donor submit

Example:

null

The ID of the link

Example:

null

name
string

The name of the program

Example:

"adfdfs"

prefix
string

The prefix of the program

Example:

"fd"

counter
string

The counter of the program

Example:

"0"

lft
integer

The lft of the program

Example:

2

rgt
integer

The rgt of the program

Example:

5

tree
integer

The tree of the program

Example:

207

box_folder_id
integer
Example:

null

deleted_at
string
Example:

null

created_at
string
Example:

"2023-11-23T17:14:06.000000Z"

updated_at
string
Example:

"2023-11-23T17:21:37.000000Z"

children
integer[]
Example:

"[]"

user_id
integer

The ID of the user

Example:

542

program_id
integer

The ID of the program

Example:

3541

Response

200
application/json
Successful operation
message
string
Example:

"Program info successfully updated."