Journeys

publishJourneyRevision

Changed on

Makes one revision the published version, the one customers receive, in a single transaction: the revision's configuration is copied onto the journey record, its datasource set onto the published datasources, and name, description, published_at and published_by are stamped onto the revision. Any revision can be published, old or new, so publishing an older revision is the rollback.

name is generated server-side when omitted, so every published revision carries one; an omitted name never replaces a name a previous publish already set. settings.isActive is never changed by a publish.

Only available for organizations with journey versioning enabled; returns 404 otherwise.

post/v1/journey/configuration/{id}/publish

Request

  • Base URL
    https://journey-config.sls.epilot.io
  • URL
    https://journey-config.sls.epilot.io/v1/journey/configuration/{id}/publish
  • Auth
    HTTP bearer

Path parameters

idstring uuid required
Example:509cdffe-424f-457a-95c2-9708c304ce77

Journey ID

Request body

revision_idstring required
namestring

Name stamped onto the revision being published. Optional: when omitted the server generates one, so every revision that has ever been published carries a name. An omitted name never replaces a name a previous publish already set; an explicit one does.

descriptionstring

Optional description stamped onto the revision at publish time

Example request

{
  "revision_id": "42",
  "name": "Summer campaign"
}

Response

Revision published

revision_idstring required
namestring required

The name now on the revision: the one sent in the request, the one a previous publish set when this request omitted name, or the server-generated default.

published_atstring date-time required
published_bystring
post_publish_warningsstring[] required

Names any best-effort side effect that failed after the publish itself succeeded, e.g. the journey entity sync, so a caller can say "published, but the entity did not update".

Example response

{
  "revision_id": "42",
  "name": "Summer campaign"
}

Changes