Journey Engine - Versions Delete
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/versions/delete
Overview
Delete (soft-delete) a journey version. Active versions or versions with running instances cannot be deleted.
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:
id(required): Version ID
Examples
POST /i/journey-engine/versions/delete
Content-Type: application/json
{
"id": "67164f4a1f1bd90d6354430b"
}
Response
Success Response
{
"id": "67164f4a1f1bd90d6354430b"
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | String | Deleted version ID from the request. |
Error Responses
- 400: Cannot delete active version or version with running instances
- 404: Version not found
- 500: Delete error
Behavior
- Loads the target version first and returns
Version not foundif it does not exist. - Rejects deletion when the version status is
active. - Rejects deletion when a running journey instance references the version.
- Soft-deletes by setting the version status to
deleted.
Related Endpoints
- No related endpoints
Implementation details
Database Collections
| Collection | Used for | Data touched by this endpoint |
|---|---|---|
countly.journey_versions | Endpoint data source | Stores endpoint-related records this endpoint reads or modifies. |