Uploads
Abort upload
Abort an in-progress upload. Requires builds:create scope.
POST
/upload/abortAuthorization
bearerAuth AuthorizationBearer <token>
API key. Bearer authentication header of the form Bearer <token>, where <token> is your Workspace or Application API key.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.comupload/abort" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d @- <<'EOF'{ "pending_upload_id": "550e8400-e29b-41d4-a716-446655440000"}EOF{ "message": "Upload cancelled successfully."}Empty
{ "message": "Unauthorized"}