API 參考

請求取消影片任務

POST/v1/videos/{task_id}/cancel

模型/任務相關取消,501 表示不支援;請求取消不等於已經取消或退款。

鑑權與許可權

使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。

Authorization: Bearer $GLOOP_API_KEY

鑑權方案: BearerAuth

請求

路徑引數

  • task_idstring必填

    同 Key 建立的任務公開 ID。

響應與錯誤

HTTP 200

請求成功。

application/json

型別
object
必填欄位
idcancel_requested

HTTP 401

Key 缺失、無效、過期或已撤銷。

application/json

型別
object
必填欄位
error

HTTP 403

當前 Key 無許可權。

application/json

型別
object
必填欄位
error
  • errorobject必填
    error 子欄位(4)
    • messagestring必填
    • typestring必填
      列舉
      ["invalid_request_error","api_error","new_api_error"]
    • codestring必填
    • paramstring選填允許 null

HTTP 404

物件或能力不可用。

application/json

型別
object
必填欄位
error
  • errorobject必填
    error 子欄位(4)
    • messagestring必填
    • typestring必填
      列舉
      ["invalid_request_error","api_error","new_api_error"]
    • codestring必填
    • paramstring選填允許 null

HTTP 409

請求衝突、未準備或提交未知,先查詢原記錄,禁止盲重發。

application/json

型別
object
必填欄位
error
  • errorobject必填
    error 子欄位(4)
    • messagestring必填
    • typestring必填
      列舉
      ["invalid_request_error","api_error","new_api_error"]
    • codestring必填
    • paramstring選填允許 null

HTTP 429

請求/佇列限流。

application/json

型別
object
必填欄位
error

HTTP 500

鑑權或資料儲存內部失敗。

application/json

型別
object
必填欄位
error

HTTP 501

所選影片模型不支援取消(cancel_unsupported);不表示已經退款。

application/json

型別
object
必填欄位
error

HTTP 502

服務響應異常。

application/json

型別
object
必填欄位
error
  • errorobject必填
    error 子欄位(4)
    • messagestring必填
    • typestring必填
      列舉
      ["invalid_request_error","api_error","new_api_error"]
    • codestring必填
    • paramstring選填允許 null

HTTP 503

服務、儲存或定價暫不可用。

application/json

型別
object
必填欄位
error
  • errorobject必填
    error 子欄位(4)
    • messagestring必填
    • typestring必填
      列舉
      ["invalid_request_error","api_error","new_api_error"]
    • codestring必填
    • paramstring選填允許 null