Use this endpoint to stop an upload that is still in progress. Once cancelled, the upload status changes toDocumentation Index
Fetch the complete documentation index at: https://mappingtravel.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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
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
Response
UUID of the cancelled upload record.
Human-readable confirmation message, e.g.
"Upload cancelled successfully".Error codes
| Code | Description |
|---|---|
| 400 | Upload is not in a cancellable state (already completed, failed, or cancelled) |
| 401 | Missing or invalid Bearer token |
| 404 | No upload found for the given uploadId in your organization |
| 429 | Rate limit exceeded |