Drop an import that has not been committed
Drops an import that has not been committed, leaving the catalog untouched.
/v1/clients/{clientId}/imports/{importId}/cancelDrops an import that has not been committed, leaving the catalog untouched. Needs authority over the client — membership of its organization, an API key bound to this client, or tenant staff holding clients:manage; anything else is refused not_client_member or insufficient_scope (403), and an unknown client client_not_found (404). Refuses invalid_state (409) when the import has already been committed, and import_not_found (404).
Authorization
bearerAuth A tenant API key (sk_{env}_{id}_{secret}), a wallet user token, or an IdP access token. Which principal the credential resolves to decides the scopes it carries; see the authentication guide.
In: header
Path Parameters
uuiduuidResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/clients/497f6eca-6276-4993-bfeb-53cbbbba6f08/imports/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "client_id": "5b3fa7ba-57d3-4017-a65b-d57dcd2db643", "status": "validating", "file_name": "string", "has_images": true, "row_count": 0, "create_count": 0, "update_count": 0, "error_count": 0, "applied_count": 0, "error": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "committed_at": "2019-08-24T14:15:22Z"}