palbaseDocs

Palbase Journeys · API

POST/journeys/{key}/publish

Publish a draft

Makes a draft live: from now people enter it (a members_of journey enters the audience's members at once), and it no longer changes. The Free plan runs 2 journeys at once (402 live_journeys_limit). Each person who enters a journey in a month counts toward the project's monthly journey people; once the Free plan's are used up, new entries wait for the next month while the people in journeys go on. Any project runs 50 journeys at once (409 too_many_live_journeys).

Called by your server, with the project's secret key.

Path

keystring · requiredThe journey's key
curl
curl -X POST "https://<your-ref>.palbase.studio/journeys/<key>/publish" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The live journey

401No valid credentials

402An environment without its paid rights (on Free, at its monthly limit, or held for its payment account's unpaid charge) runs 2 journeys at once (live_journeys_limit): stop one, raise its limit or move it to Pay as you go (Studio › Billing)

403Not the project's secret key (secret_key_required)

404The project has no journey of this key (journey_not_found)

409A journey of this key exists (journey_exists), a published journey does not change (journey_published), only a live journey stops (journey_not_live), a stopped journey is tried no more (journey_stopped), a project runs 50 journeys at once (too_many_live_journeys) and keeps 500 (too_many_journeys)

429Too many requests

503The service is unavailable for a moment; retry

defaultAn error

Operation PublishJourney of journeys's contract.