Cancel ongoing upload

This endpoint allows you to cancel ongoing upload by its `uploadId`. Once cancelled, the upload is marked as cancelled. Use this if a user aborts an upload or if you want to programmatically stop an in-progress upload. #### How it works 1. Make a PUT request to this endpoint, replacing `{uploadId}` with the unique upload ID received after starting the upload. 2. The response confirms the cancellation and provide the status of the upload. #### Webhook Events Once the upload is cancelled, you must receive the webhook event <a href="https://fastpix.com/docs/webhooks/media-events#videomediauploadcancelled">video.media.upload.cancelled</a>. #### Example Suppose a user starts uploading a large video file but decides to cancel before completion. By calling this API, you can immediately stop the upload and free up resources.

Authentication

AuthorizationBasic
FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request. - <b>Username:</b> Access Token ID - <b>Password:</b> Secret Key Activate your FastPix account to generate your API credentials. <a href="https://fastpix.com/docs/getting-started/activate-your-account" target="_blank">See the guide here</a>

Path parameters

uploadIdstringRequiredformat: "uuid"
When uploading the media, FastPix assigns a universally unique identifier with a maximum length of 255 characters.

Response

Upload cancelled successfully
successboolean
Demonstrates whether the request is successful or not.
dataobject
Response returned when an upload is cancelled.