POST
/
admin
/
program
/
sub_program
curl --request POST \
  --url https://api.helpyousponsor.com/v1/admin/program/sub_program \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "link_id": 123,
  "client_id": "<string>",
  "user_id": 123
}'
{
  "message": "Successfully created sub program"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Data to create a sub program
name
string

The name of the sub program

The ID of the parent program

client_id
string

The ID of the client

user_id
integer

The ID of the user

Response

200
application/json
Successfully created sub program
message
string
Example:

"Successfully created sub program"