Journey Engine - Versions Delete
Endpoint
/i/journey-engine/versions/delete
Ⓔ Enterprise Only
This API is available exclusively in Countly Enterprise.
Overview
Delete (soft-delete) a journey version. Active versions or versions with running instances cannot be deleted.
Authentication
- Authentication methods:
- API Key (parameter):
api_key=YOUR_API_KEY - Auth Token (parameter):
auth_token=YOUR_AUTH_TOKEN - Auth Token (header):
countly-token: YOUR_AUTH_TOKEN
- API Key (parameter):
Permissions
- Required permission:
Updateon thejourney_enginefeature
Request Parameters
Request body JSON:
id(required): Version ID
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
Examples
POST /i/journey-engine/versions/delete
Content-Type: application/json
{
"id": "67164f4a1f1bd90d6354430b"
}
Behavior/Processing
- 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.
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. |
Related Endpoints
- No related endpoints
Ⓔ Enterprise
This feature is part of Countly Enterprise.
Get Access:
Already a Customer? Use support portal if you have any questions
Last Updated
2026-04-18