put
https://api.fastpix.io/v1/on-demand/upload//cancel
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
- Make a PUT request to this endpoint, replacing
{uploadId}with the unique upload ID received after starting the upload. - 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 video.media.upload.cancelled.
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.