Mettre à jour le contenu du projet Studio

Met à jour le contenu du projet Studio.

Paramètres de chemin

project_idstringRequis

L’ID du projet à utiliser. Vous pouvez utiliser le point de terminaison Lister les projets pour répertorier tous les projets disponibles.

En-têtes

xi-api-keystringOptionnel

Requête

This endpoint expects a multipart form containing an optional file.
from_urlstring or nullOptionnel

An optional URL from which we will extract content to initialize the Studio project. If this is set, ‘from_url’ and ‘from_content’ must be null. If neither ‘from_url’, ‘from_document’, ‘from_content’ are provided we will initialize the Studio project as blank.

from_documentfileOptionnel

An optional .epub, .pdf, .txt or similar file can be provided. If provided, we will initialize the Studio project with its content. If this is set, ‘from_url’ and ‘from_content’ must be null. If neither ‘from_url’, ‘from_document’, ‘from_content’ are provided we will initialize the Studio project as blank.

from_content_jsonstringOptionnel
Contenu facultatif pour initialiser le projet Studio. Si cette valeur est définie, « from_url » et « from_document » doivent être null. Si aucune des valeurs « from_url », « from_document » et « from_content » n’est fournie, le projet Studio sera initialisé vide. Exemple : [{"name": "Chapter A", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "A", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "B", "type": "tts_node"}]}, {"sub_type": "h1", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "C", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "D", "type": "tts_node"}]}]}, {"name": "Chapter B", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "E", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "F", "type": "tts_node"}]}, {"sub_type": "h2", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "G", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "H", "type": "tts_node"}]}]}]
auto_convertbooleanOptionnelPar défaut false
Indique s'il faut convertir automatiquement le projet Studio en audio.

Réponse

Réponse réussie

projectobject

Erreurs

422
Unprocessable Entity Error