Create Program
POST/program/api/v1/projects/:projectID/programs
Create a new program with default composition
Generate JWTRequest
Path Parameters
projectID stringrequired
ID of the project
- application/json
Body
required
Program to create
idstring
projectIDstring
programNamestring
programSlugstringrequired
clientReferrerstring
defaultCompositionstring
modestring
createdBystring
updatedBystring
createdOnstring
updatedOnstring
Responses
- 201
- 400
- 500
Program created
- application/json
- Schema
- Example (from schema)
Schema
idstring
projectIDstring
programNamestring
programSlugstringrequired
clientReferrerstring
defaultCompositionstring
modestring
createdBystring
updatedBystring
createdOnstring
updatedOnstring
{
"id": "string",
"projectID": "string",
"programName": "string",
"programSlug": "string",
"clientReferrer": "string",
"defaultComposition": "string",
"mode": "string",
"createdBy": "string",
"updatedBy": "string",
"createdOn": "string",
"updatedOn": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messagestringrequired
Error message for the end user
errorCodestring
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Specific error scoped to a field
namestringrequired
reasonstringrequired
errorCodestring
internalstring
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
messagestringrequired
Error message for the end user
errorCodestring
Code that can be set that supplies a specific reason for why a request failed
invalidFields
object[]
Specific error scoped to a field
namestringrequired
reasonstringrequired
errorCodestring
internalstring
Internal user only
{
"message": "string",
"errorCode": "string",
"invalidFields": [
{
"name": "string",
"reason": "string",
"errorCode": "string"
}
],
"internal": "string"
}