Référence API

Demander l'annulation d'une tâche vidéo

POST/v1/videos/{task_id}/cancel

Annulation selon modèle/tâche ; 501 signifie non prise en charge. Une demande ne prouve ni annulation ni remboursement.

Authentification et autorisations

Utilisez votre clé GloopAPI actuelle. Les modèles, capacités et autorisations disponibles dépendent de son catalogue et de la documentation du point de terminaison.

Authorization: Bearer $GLOOP_API_KEY

Schémas d'authentification : BearerAuth

Requête

Paramètres de chemin

  • task_idstringObligatoire

    ID public d'une tâche créée avec la même Key.

Réponses et erreurs

HTTP 200

Requête réussie.

application/json

Type
object
Champs obligatoires
idcancel_requested

HTTP 401

Key absente, invalide, expirée ou révoquée.

application/json

Type
object
Champs obligatoires
error

HTTP 403

Key actuelle non autorisée.

application/json

Type
object
Champs obligatoires
error
  • errorobjectObligatoire
    Sous-champs de error (3)
    • messagestringObligatoire
    • typestringObligatoire
      Énumération
      ["new_api_error"]
    • codestringObligatoire

HTTP 404

Objet ou capacité indisponible.

application/json

Type
object
Champs obligatoires
error
  • errorobjectObligatoire
    Sous-champs de error (3)
    • messagestringObligatoire
    • typestringObligatoire
      Énumération
      ["new_api_error"]
    • codestringObligatoire

HTTP 409

Conflit, résultat non prêt ou soumission inconnue : consultez d'abord l'enregistrement initial, sans répétition aveugle.

application/json

Type
object
Champs obligatoires
error
  • errorobjectObligatoire
    Sous-champs de error (3)
    • messagestringObligatoire
    • typestringObligatoire
      Énumération
      ["new_api_error"]
    • codestringObligatoire

HTTP 429

Limitation de débit des requêtes/de la file.

application/json

Type
object
Champs obligatoires
error

HTTP 500

Défaillance interne d'authentification ou de stockage des données.

application/json

Type
object
Champs obligatoires
error

HTTP 501

Le modèle vidéo choisi ne prend pas en charge l'annulation (cancel_unsupported) ; cela n'indique pas un remboursement.

application/json

Type
object
Champs obligatoires
error

HTTP 502

Erreur de réponse du service.

application/json

Type
object
Champs obligatoires
error
  • errorobjectObligatoire
    Sous-champs de error (3)
    • messagestringObligatoire
    • typestringObligatoire
      Énumération
      ["new_api_error"]
    • codestringObligatoire

HTTP 503

Service, stockage, tarification temporairement indisponible.

application/json

Type
object
Champs obligatoires
error
  • errorobjectObligatoire
    Sous-champs de error (3)
    • messagestringObligatoire
    • typestringObligatoire
      Énumération
      ["new_api_error"]
    • codestringObligatoire