Cancel Import

Description

This service cancels import a file for the authenticated user.


Request

Restrictions

This service requires an authenticated user and can only be called after a successful consumer login as it Requires an authenticated user.

Endpoint

POST https://<server-url>/api/v4/import/cancel/{id}

Parameters

You can pass the following authentication credentials as query parameters or HTTP headers.

Parameter
Location
Description

touchpoint

Query / Header

The identifier for the touchpoint. Use Thalamus-Touchpoint for the header.

token

Query / Header

The authentication token for the API session. Use Thalamus-Token for the header.

id

Query / Header

ID of the file to cancel

Full URL Example

https://<server-url>/api/v4/import/cancel/8?touchpoint=test&token=...  "email":"[email protected]",

Response

✅ Successful Response: 200 Ok

  • HTTP Status Code: 200 Ok

❌ Unsuccessful Response: 400 Bad Request

  • HTTP Status Code: 400 Bad Request

  • Body: A JSON object containing details about the error.

Example Response

JSON

{
  "errors": {
    "partnerDataSource": "TouchpointCodeRequired",
    "partnerDataSource": "InvalidTouchpointCode"
  }
}

{
    "errors": {
        "ProcessorInfo": "InvalidID",
        "execution.ProcessorInfo": "execution.ProcessorInfo: InvalidID"
    }
}

Last updated

Was this helpful?