v1

latestOpenAPI 3.0.42026-08-04342835917.6 KB
Campaign

Replaces the campaign's stream program.

The program is validated before it is persisted; a malformed graph is rejected. The program's version is bumped and republished — running sessions pick up the new program on their next response.

put/campaign/{campaignId}/program

Path parameters

campaignIdstring required

The identifier of the program campaign.

Request body

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

No Content