Skip to main content
Version: Latest

Modify project

Modifying an existing project. You can edit clips with the "title" tag or "subtitles" tag. You can also edit the script content of the video. The "updates" parameter is a key-value pair containing the update information for the project. You can include "title", "subtitles", or "scripts" as keys. If the project you are modifying includes multiple clips with the same tag, you can label the keys with index numbers. The index number represents the location of the clip in order within the video (zero-indexed). For example, if you intend to edit the 2nd, 3rd, and 5th clips in the video with the "title" tag, you can format your keys as "title_1", "title_2", and "title_4". Similarly, if you would like to edit the audio script content of the first three scenes in the video, you can format the keys as "scripts", "scripts_1", and "scripts_2". See the sample code for a detailed example. You can see & edit modified video at AI Studio by Deepbrain AI.


1. API endpoint

https://app.aistudios.com/api/odin/v3/project/modify

2. Request parameters

keydesctyperequireddefault
projectIdUnique ObjectId of the video projectStringtrue-
updatesVideo project update contentsDictionarytrue-
updates.keytag of the clip or scriptsString--
updates.valueUpdating value of the corresponding clipString--
isExportWhether this project will be exportedBooleanfalsefalse
webhookUrlUrl address where the synthesis result should be sent.Stringfalse-

3. Response parameters

keydesctype
projectIdProject Id - Fetching the video project data that has been exported.String

4. Sample Request

curl https://app.aistudios.com/api/odin/v3/project/modify  \
-H "Authorization: ${API KEY}" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"projectId":"65fa6b07dca2e367461a2925",
"updates": {
"title" : "New text for the first title clip in the video",
"title_2" : "New text for the third title clip in the video",
"title_4" : "New text for the fifth title clip in the video",
"subtitles_1" : "New text for the second subtitle clip in the video",
"subtitles_3" : "New text for the fourth subtitle clip in the video",
"subtitles_4" : "New text for the fifth subtitle clip in the video",
"subtitles_5" : "New text for the sixth subtitle clip in the video",
"scripts" : "New audio script for the first scene of the video",
"scripts_3" : "New audio script for the fourth scene of the video"
},
"isExport": true
}'