Campaign

Replaces the campaign's stream program.

Changed on

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

Request

  • Base URL
    https://api.rapidata.ai
  • URL
    https://api.rapidata.ai/campaign/{campaignId}/program
  • Auth
    OpenID Connect (https://auth.rapidata.ai/.well-known/openid-configuration, scopes: openid, profile, email, offline_access, api)

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

Changes

    • breaking

      removed from the ///////// request property oneOf list

    • info

      added CountryPredicate LanguagePredicate discriminator mapping keys to the ///////// request property

    • info

      removed UserAttributePredicate discriminator mapping keys from the ///////// request property

    • info

      added to the ///////// request property oneOf list

    • info

      the security scope api was added to the endpoint's security scheme OpenIdConnect