Outcome
Freeze the current draft as the next immutable version and make it live: new trigger matches and manual enrollments use it from now on. Existing enrollments stay pinned to the version they entered on. Refused when the draft is invalid or unchanged since the last publish.
Before you start
- Verify identity and pin the intended organization and environment before discovering the action.
- Discover a granted Nurture workspace. The application permission is workspace:write; required workspace access is read_write. A permission alone does not supply a workspace grant.
- Organization and workspace come from verified context. Select resourceType/resourceId separately from action input; body fields cannot grant a different organization or workspace. The first authorized product action can initialize an identity-only workspace mirror.
- Obtain authorization for the documented effect or personal-data export before supplying CLI --confirm or MCP confirm:true.
Discover the target
topolo whoami --json
topolo actions get app_topolo_nurture.journeys.publish --detail --json
topolo resources topolo-nurture --json
topolo workspaces list topolo-nurture --json
topolo actions get app_topolo_nurture.journeys.list --detail --json
id: journeys record id in the selected workspace.
Request
POST /api/journeys/{id}/publish
Save action input as payload.json. The reviewed plan separates path identifiers, query fields and HTTP body. Set NURTURE_WORKSPACE_ID from granted resource discovery; it is separate from action input.
Inspect and test this action in the signed action console. A test response still requires the verification below.
Input fields
| Field | Required | Type | Constraints |
|---|---|---|---|
id | Required | string | journeys record id in the selected workspace. {"minLength":1,"maxLength":64} |
Exact input schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
"required": [
"id"
],
"additionalProperties": false
}
Effects
- Inserts one immutable journey version and sets it live; matching lifecycle events and segment entries start enrolling contacts into it.
Interpret the response
The returned identifier path is $.journey.id for journey. Empty lists do not discover a target.
Call app_topolo_nurture.journeys.versions.list and confirm $.version.version is newest; app_topolo_nurture.journeys.get shows currentVersion.
Exact success schema:
{
"type": "object",
"required": [
"journey",
"version"
],
"properties": {
"journey": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"definition": {
"type": "object"
},
"status": {
"type": "string",
"enum": [
"draft",
"published",
"archived"
]
},
"currentVersion": {
"type": [
"integer",
"null"
]
},
"hasUnpublishedChanges": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
}
}
},
"version": {
"type": "object",
"required": [
"journeyId",
"version",
"definition",
"publishedBy",
"publishedAt"
],
"properties": {
"journeyId": {
"type": "string"
},
"version": {
"type": "integer"
},
"definition": {
"type": "object"
},
"publishedBy": {
"type": "string"
},
"publishedAt": {
"type": "string"
}
}
}
}
}
Worked examples
Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Replace synthetic identifiers using credential-scoped discovery. A local success is not evidence of a deployed effect, configured provider or delivered message.
Successful request
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "jny_a4e00379d5a046c4ac93d74dcb7a0464"
}
CLI:
topolo actions validate app_topolo_nurture.journeys.publish --data @payload.json --json
topolo actions plan app_topolo_nurture.journeys.publish --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.journeys.publish --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --confirm --json
MCP tool and arguments:
{
"tool": "topolo_call_action",
"arguments": {
"actionId": "app_topolo_nurture.journeys.publish",
"input": {
"id": "jny_a4e00379d5a046c4ac93d74dcb7a0464"
},
"resourceType": "workspace",
"resourceId": "<identifier returned by resource discovery>",
"confirm": true
}
}
Captured local response · HTTP 201:
{
"journey": {
"id": "jny_a4e00379d5a046c4ac93d74dcb7a0464",
"name": "Welcome",
"description": null,
"definition": {
"trigger": {
"eventTypes": [
"inactive"
],
"segmentIds": []
},
"entryNodeId": "hello",
"nodes": [
{
"id": "hello",
"kind": "send",
"next": "wait",
"templateRef": "welcome-1",
"purpose": "marketing",
"topicKey": "news"
},
{
"id": "wait",
"kind": "delay",
"delay": {
"mode": "duration",
"minutes": 60
},
"next": "check"
},
{
"id": "check",
"kind": "branch",
"yes": "done",
"no": "nudge",
"condition": {
"kind": "contact_field",
"field": "plan",
"operator": "equals",
"value": "pro"
}
},
{
"id": "nudge",
"kind": "send",
"next": "done",
"templateRef": "nudge-1",
"purpose": "marketing",
"topicKey": "news"
},
{
"id": "bought",
"kind": "goal",
"eventType": "purchase"
},
{
"id": "done",
"kind": "exit"
}
]
},
"status": "published",
"currentVersion": 1,
"hasUnpublishedChanges": false,
"createdAt": "2026-10-04T00:32:37.632Z",
"updatedAt": "2026-10-04T00:32:37.634Z"
},
"version": {
"journeyId": "jny_a4e00379d5a046c4ac93d74dcb7a0464",
"version": 1,
"definition": {
"trigger": {
"eventTypes": [
"inactive"
],
"segmentIds": []
},
"entryNodeId": "hello",
"nodes": [
{
"id": "hello",
"kind": "send",
"next": "wait",
"templateRef": "welcome-1",
"purpose": "marketing",
"topicKey": "news"
},
{
"id": "wait",
"kind": "delay",
"delay": {
"mode": "duration",
"minutes": 60
},
"next": "check"
},
{
"id": "check",
"kind": "branch",
"yes": "done",
"no": "nudge",
"condition": {
"kind": "contact_field",
"field": "plan",
"operator": "equals",
"value": "pro"
}
},
{
"id": "nudge",
"kind": "send",
"next": "done",
"templateRef": "nudge-1",
"purpose": "marketing",
"topicKey": "news"
},
{
"id": "bought",
"kind": "goal",
"eventType": "purchase"
},
{
"id": "done",
"kind": "exit"
}
]
},
"publishedBy": "u1",
"publishedAt": "2026-10-04T00:32:37.634Z"
}
}
HTTP 201. Call app_topolo_nurture.journeys.versions.list and confirm $.version.version is newest; app_topolo_nurture.journeys.get shows currentVersion.
Another supported request
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "jny_9ba96e2c4dc24cc0b39eba6529d5456d"
}
CLI:
topolo actions validate app_topolo_nurture.journeys.publish --data @payload.json --json
topolo actions plan app_topolo_nurture.journeys.publish --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
topolo actions call app_topolo_nurture.journeys.publish --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --confirm --json
MCP tool and arguments:
{
"tool": "topolo_call_action",
"arguments": {
"actionId": "app_topolo_nurture.journeys.publish",
"input": {
"id": "jny_9ba96e2c4dc24cc0b39eba6529d5456d"
},
"resourceType": "workspace",
"resourceId": "<identifier returned by resource discovery>",
"confirm": true
}
}
Captured local response · HTTP 201:
{
"journey": {
"id": "jny_9ba96e2c4dc24cc0b39eba6529d5456d",
"name": "Welcome",
"description": null,
"definition": {
"trigger": {
"eventTypes": [
"subscription_changed"
],
"segmentIds": []
},
"entryNodeId": "hello",
"nodes": [
{
"id": "hello",
"kind": "send",
"next": "wait",
"templateRef": "welcome-1",
"purpose": "marketing",
"topicKey": "news"
},
{
"id": "wait",
"kind": "delay",
"delay": {
"mode": "duration",
"minutes": 60
},
"next": "check"
},
{
"id": "check",
"kind": "branch",
"yes": "done",
"no": "nudge",
"condition": {
"kind": "contact_field",
"field": "plan",
"operator": "equals",
"value": "pro"
}
},
{
"id": "nudge",
"kind": "send",
"next": "done",
"templateRef": "nudge-1",
"purpose": "marketing",
"topicKey": "news"
},
{
"id": "done",
"kind": "exit"
},
{
"id": "won",
"kind": "goal",
"eventType": "feature_used"
}
]
},
"status": "published",
"currentVersion": 1,
"hasUnpublishedChanges": false,
"createdAt": "2026-10-04T00:32:37.381Z",
"updatedAt": "2026-10-04T00:32:37.383Z"
},
"version": {
"journeyId": "jny_9ba96e2c4dc24cc0b39eba6529d5456d",
"version": 1,
"definition": {
"trigger": {
"eventTypes": [
"subscription_changed"
],
"segmentIds": []
},
"entryNodeId": "hello",
"nodes": [
{
"id": "hello",
"kind": "send",
"next": "wait",
"templateRef": "welcome-1",
"purpose": "marketing",
"topicKey": "news"
},
{
"id": "wait",
"kind": "delay",
"delay": {
"mode": "duration",
"minutes": 60
},
"next": "check"
},
{
"id": "check",
"kind": "branch",
"yes": "done",
"no": "nudge",
"condition": {
"kind": "contact_field",
"field": "plan",
"operator": "equals",
"value": "pro"
}
},
{
"id": "nudge",
"kind": "send",
"next": "done",
"templateRef": "nudge-1",
"purpose": "marketing",
"topicKey": "news"
},
{
"id": "done",
"kind": "exit"
},
{
"id": "won",
"kind": "goal",
"eventType": "feature_used"
}
]
},
"publishedBy": "u1",
"publishedAt": "2026-10-04T00:32:37.383Z"
}
}
HTTP 201. Call app_topolo_nurture.journeys.versions.list and confirm $.version.version is newest; app_topolo_nurture.journeys.get shows currentVersion.
Refused request · not_found
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "jny_x"
}
CLI:
topolo actions validate app_topolo_nurture.journeys.publish --data @payload.json --json
topolo actions plan app_topolo_nurture.journeys.publish --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
Captured local response · HTTP 404:
{
"error": {
"code": "not_found",
"message": "Journey was not found in this workspace."
}
}
HTTP 404. Preserve the refusal details and do not claim success.
Refused request · permission_denied
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "jny_2f1edea9fb014621bb1a6dbbd35085ce"
}
CLI:
topolo actions validate app_topolo_nurture.journeys.publish --data @payload.json --json
topolo actions plan app_topolo_nurture.journeys.publish --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
Captured local response · HTTP 403:
{
"error": {
"code": "permission_denied",
"message": "The credential lacks workspace:write.",
"details": {
"requiredPermission": "workspace:write"
}
}
}
HTTP 403. Preserve the refusal details and do not claim success.
Refused request · invalid_journey
Actual dispatcher and migration-created SQLite; verified identity/workspace and external CRM, Engage, Notify, Consent, Nexus, Brand, Generator, Voice and delivery dependencies are simulated. No live authorization, paid generation or external delivery is established.
Input · payload.json:
{
"id": "jny_256b37f07a0c4aac91df06968f3a6a31"
}
CLI:
topolo actions validate app_topolo_nurture.journeys.publish --data @payload.json --json
topolo actions plan app_topolo_nurture.journeys.publish --resource-type workspace --resource-id "$NURTURE_WORKSPACE_ID" --data @payload.json --json
Captured local response · HTTP 422:
{
"error": {
"code": "invalid_journey",
"message": "The journey definition is not valid.",
"details": {
"problems": [
"Segment \"seg_missing\" is missing or archived.",
"Subscription topic \"gone\" is missing or archived."
]
}
}
}
HTTP 422. Preserve the refusal details and do not claim success.
Verify the result
- Call app_topolo_nurture.journeys.versions.list and confirm $.version.version is newest; app_topolo_nurture.journeys.get shows currentVersion.
Errors and recovery
organization_required(HTTP 403): Select an organization available to the verified caller before choosing a Nurture workspace.permission_denied(HTTP 403): Grant the credential the required Nurture workspace permission.workspace_required(HTTP 409): Create a Nurture workspace, or pass the workspace resource context.invalid_input(HTTP 422): Correct the fields named in error.details using inputSchema, then retry.not_found(HTTP 404): List journeys to find a valid id in this workspace.journey_archived(HTTP 409): Archived journeys cannot change; create a new journey.invalid_journey(HTTP 422): Fix every entry in error.details.problems, save with journeys.update, then retry.no_unpublished_changes(HTTP 409): The live version already matches the draft; edit the draft first.
Auth or gateway failures may precede this handler. Preserve the exact response shape, error string/code, request id and credential context; no synthetic fixture establishes live credential access.
Recovery boundary
Versions cannot be unpublished. Publish a corrected draft, or archive the journey to stop it (archiving exits active enrollments).
Related actions
- Enroll contact in journey: Put one active contact on a published journey's live version, due immediately: the scheduler (every 5 minutes) then advances it, and each send node takes an eligibility reservation, so suppression, subscriptions, caps and quiet hours apply. Idempotent: a contact already active on the journey returns that enrollment with created false. Refused when the journey is not published, or the contact already went through it and the version has allowReentry off.
- Migrate enrollments to live version: Explicitly move active enrollments from an older version (fromVersion) to the journey's live version, up to 500 per call (more true means call again). Safe rule: an enrollment moves only when the node it stands on exists in the live version with the same id and kind; it then continues from that node. Others stay pinned and are listed in skipped[] with a reason. dryRun true reports without changing anything.
- Archive journey: Archive a journey: it stops enrolling contacts, every active enrollment exits with reason journey_archived, and the draft can no longer change. Versions, enrollment history and intended sends are kept.
Evidence
Actual dispatcher and migration-created SQLite or Worker handlers; identity/workspace and external service dependencies are simulated. Fixture identifiers and timestamps are synthetic. These responses establish no live authorization, paid generation, credential provisioning or message delivery. Test scenario and capture digests are retained with each fixture.