action prss_post_api_v2_spotinsertions { label: "Creates a new spot insertion." provider: prss method: POST path: "/api/v2/spotinsertions" encoding: json input: { type: "object" description: "A spot insertion for playing a series of spots when a cue is received during a program." required: ["broadcastServiceId", "cue", "duration", "endDate", "programId", "spots", "startDate"] properties: { broadcastServiceId: { type: "integer" format: "int64" description: "The ID of the broadcast service for the spot insertion." } createdDate: { type: "string" format: "date-time" description: "The date and time the spot insertion was created. Generated at creation." } cue: { type: "string" description: "The cue that triggers the spot insertion." } customerId: { type: "integer" format: "int64" description: "The ID of the customer who owns the spot insertion. Set to the logged-in customer at creation." } duration: { type: "integer" format: "int32" description: "The duration of the spot insertion." } endDate: { type: "string" format: "date" description: "The date the spot insertion ends. The time will be set to midnight Eastern Time." } id: { type: "integer" format: "int64" description: "The unique ID of the spot insertion. Generated at creation." } programId: { type: "integer" format: "int64" description: "The ID of the program for the spot insertion." } spots: { type: "array" description: "The ordered list of spot IDs to play." items: { type: "integer" format: "int64" } } startDate: { type: "string" format: "date" description: "The date the spot insertion can start. The time will be set to midnight Eastern Time." } } } output: { type: "object" description: "A spot insertion for playing a series of spots when a cue is received during a program." required: ["broadcastServiceId", "cue", "duration", "endDate", "programId", "spots", "startDate"] properties: { broadcastServiceId: { type: "integer" format: "int64" description: "The ID of the broadcast service for the spot insertion." } createdDate: { type: "string" format: "date-time" description: "The date and time the spot insertion was created. Generated at creation." } cue: { type: "string" description: "The cue that triggers the spot insertion." } customerId: { type: "integer" format: "int64" description: "The ID of the customer who owns the spot insertion. Set to the logged-in customer at creation." } duration: { type: "integer" format: "int32" description: "The duration of the spot insertion." } endDate: { type: "string" format: "date" description: "The date the spot insertion ends. The time will be set to midnight Eastern Time." } id: { type: "integer" format: "int64" description: "The unique ID of the spot insertion. Generated at creation." } programId: { type: "integer" format: "int64" description: "The ID of the program for the spot insertion." } spots: { type: "array" description: "The ordered list of spot IDs to play." items: { type: "integer" format: "int64" } } startDate: { type: "string" format: "date" description: "The date the spot insertion can start. The time will be set to midnight Eastern Time." } } } }