Journeys

Publish a journey

Publishes the draft as the next immutable version; new runs start on it and existing runs stay on the version they entered. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing. A draft journey becomes active; a paused journey stays paused. A published version sends and updates tags as its publisher, so a draft with a send_email node requires a key that can send email and one with an update_tags node requires contacts:update; without them the request returns 403.

post/v1/journeys/{id}/publish

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/journeys/{id}/publish
  • Auth: API key in header x-api-key

Path parameters

idstring required

Request body

revisionstring required

Response

Journey

idstring required
namestring required
status'draft' | 'active' | 'paused' | 'archived' required
revisionstring required
publishedVersioninteger nullable required
publishedAtstring nullable required
createdAtstring required
updatedAtstring required

Changes

No recorded changes to this operation across all 1 revision of this API.