Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mapping.travel/llms.txt

Use this file to discover all available pages before exploring further.

Use this endpoint to stop an upload that is still in progress. Once cancelled, the upload status changes to CANCELLED and processing halts. This is useful if you submitted a file in error or need to replace it with a corrected version.

Request

POST https://api.mapping.travel/api/v1/inventory/{uploadId}/cancel
uploadId
string
required
The UUID of the upload you want to cancel.
Only uploads in PENDING or PROCESSING status can be cancelled. Attempting to cancel an upload that has already reached COMPLETED, FAILED, or CANCELLED will return a 400 error.

Example

curl -X POST "https://api.mapping.travel/api/v1/inventory/f47ac10b-58cc-4372-a567-0e02b2c3d479/cancel" \
  -H "Authorization: Bearer <your-token>"

Response

uploadId
string
UUID of the cancelled upload record.
message
string
Human-readable confirmation message, e.g. "Upload cancelled successfully".

Error codes

CodeDescription
400Upload is not in a cancellable state (already completed, failed, or cancelled)
401Missing or invalid Bearer token
404No upload found for the given uploadId in your organization
429Rate limit exceeded