v1

latestOpenAPI 3.0.42026-08-04342835917.6 KB
Campaign

Creates a program campaign from the given stream program.

The program is validated before the campaign is persisted; a malformed graph (missing root, dangling references, cycles, unreachable nodes) is rejected. The campaign starts in the Created status; move it to Active to start serving sessions.

post/campaign/program

Request body

namestring required

The name of the campaign.

priorityinteger required

The priority weight the campaign competes with for sessions.

rootNodeIdstring required

The node the program's evaluation enters at.

nodesobject required

The program's decision graph, keyed by node id.

maxRapidsinteger required

The session ends after this many counted responses.

maxDurationSecondsinteger required

The session ends after this many seconds.

Response

OK

campaignIdstring required

The id of the created campaign.