Journey Engine - Journeys Pause
Enterprise
This endpoint is part of Countly Enterprise. To get access, contact sales or compare versions. Existing customers can reach the support portal with questions.
Endpoint
/i/journey-engine/journeys/pause
Overview
Pause an active journey version and set it to paused status. Pauses running instances.
Authentication
Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.
Permissions
- Required permission:
Updateon thejourney_enginefeature
Request Parameters
Request body JSON:
journeyId(required): Journey definition IDversionId(required): Journey version ID
Examples
POST /i/journey-engine/journeys/pause
Content-Type: application/json
{
"journeyId": "67164f4a1f1bd90d6354430a",
"versionId": "67164f4a1f1bd90d6354430b"
}
Response
Success Response
{
"journeyDefinitionId": "67164f4a1f1bd90d6354430a",
"id": "67164f4a1f1bd90d6354430b",
"status": "paused"
}
Response Fields
| Field | Type | Description |
|---|---|---|
journeyDefinitionId | String | Journey definition ID from the request. |
id | String | Journey version ID from the request. |
status | String | paused when the version was paused. |
Error Responses
- 400: Invalid request
- 500: Pause error
Behavior
- Requires
journeyIdandversionIdin the request body; missing values returnInvalid request. - Marks the selected journey version as
paused. - Marks the journey definition as
draft. - Clears content queue entries for the paused journey.
- Pauses running journey instances and related pending journey events.
- Emits
journey_pausedsystem log action.
Related Endpoints
- No related endpoints
Implementation details
Database Collections
| Collection | Used for | Data touched by this endpoint |
|---|---|---|
countly.journey_definition | Endpoint data source | Stores endpoint-related records this endpoint reads or modifies. |
countly.journey_versions | Endpoint data source | Stores endpoint-related records this endpoint reads or modifies. |