MelonsRun
Api referenceMedia

Cancel an async media task and release hold

POST
/v2/task/{request_id}/cancel

Authorization

apiKeyBearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

request_id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/task/string/cancel"
{  "request_id": "string",  "quote_id": "string",  "status": "queued",  "model": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "completed_at": "2019-08-24T14:15:22Z",  "canceled_at": "2019-08-24T14:15:22Z",  "retry_of": "string",  "estimated_cost": {    "credits": "string",    "basis": "string"  },  "usage": {},  "output": [],  "hosting": {    "status": "pending",    "mode": "rehost",    "source": "provider",    "final_url_ready": true,    "assets_ready_event": "pending",    "error": "string"  },  "provider_progress": [    {      "ts": "2019-08-24T14:15:22Z",      "status": "queued",      "source_ref": "string",      "percent": 0,      "stage": "string",      "message": "string",      "raw_status": "string"    }  ],  "review_case_id": "string",  "review_reason": "string",  "review_hold_decision": "capture_blocked",  "error": "string",  "metadata": {},  "urls": {    "property1": "string",    "property2": "string"  }}