Skip to main content

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: Update on the journey_engine feature

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

FieldTypeDescription
idStringDeleted 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 found if 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.
  • No related endpoints
Implementation details

Database Collections

CollectionUsed forData touched by this endpoint
countly.journey_versionsEndpoint data sourceStores endpoint-related records this endpoint reads or modifies.