Delete Catalog API

Overview

Deletes an existing catalog. This API permanently removes the catalog from the system.

Method

PUT

Endpoint

PUT /v2/catalogs/delete/{id}

Base URL

https://in1.api.clevertap.com/v2/catalogs/delete/{id}

Region

Refer Region for more details.

Headers

These headers must be included with every API request to ensure authentication and correct request handling.

HeaderDescriptionRequired
Content-TypeContent type of the request payload. Must be application/json.Yes
X-Account-IdCleverTap account ID associated with the catalog.Yes
X-CleverTap-TokenAPI token used to authenticate the request.Yes

Path Parameters

The following path parameter is required to identify the catalog to delete:

ParameterTypeRequiredDescription
idNumberYesUnique identifier of the catalog to delete.

Query Parameters

The following query parameter is required to perform the delete operation:

ParameterTypeRequiredDescription
deletedByStringYesIdentifier of the user or system performing the delete operation.

Example Request

This example performs a hard delete on the catalog with ID 123.

PUT /v2/catalogs/delete/[email protected]

Example Response

The following is the sample response:

{
  "message": "Catalog - 123 deleted successfully"
}

Response Parameters

The following table shows the response parameter:

ParameterTypeDescription
messagestringConfirmation message indicating that the catalog was deleted successfully.

Error Codes

The following error codes may be returned by this API.

Error CodeDescription
CATALOG_NOT_FOUNDThe catalog specified by the ID does not exist.
CATALOG_DELETE_NOT_ALLOWEDThe catalog cannot be deleted due to constraints (for example, hard delete not permitted).
CATALOG_INVALID_REQUESTOne or more request parameters are invalid or missing (for example, missing deletedBy).
AUTHENTICATION_FAILEDAuthentication failed due to invalid or missing token.
AUTHORIZATION_FAILEDCaller does not have permission to delete this catalog.
INTERNAL_ERRORAn unexpected server-side error occurred.

CleverTap Ask AI Widget (CSP-Safe)