Rename a dub or move it to a project
curl --request PATCH \
--url https://app.dubly.ai/api/v1/dubs/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Product Tour (DE)",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Product Tour (DE)', project_id: '83724e4d-f41a-4f1a-a4c3-590e6b296bb0'})
};
fetch('https://app.dubly.ai/api/v1/dubs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.dubly.ai/api/v1/dubs/{id}"
payload = {
"title": "Product Tour (DE)",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"response": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "Product Tour (DE)",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
}Dubs
Rename a dub or move it to a project
Renames the dub and/or moves it into a project, like “Rename” and “Move to project” in the web app. Send title, project_id or both; a body with neither returns 400. Both are checked before anything is written: if one of them is invalid, neither is changed. A value that is already as stored is not written, so a request that changes nothing returns 200 with the current values. Works in every dub status, with no limit and no review lock. No credits are charged.
PATCH
/
api
/
v1
/
dubs
/
{id}
Rename a dub or move it to a project
curl --request PATCH \
--url https://app.dubly.ai/api/v1/dubs/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Product Tour (DE)",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: 'Product Tour (DE)', project_id: '83724e4d-f41a-4f1a-a4c3-590e6b296bb0'})
};
fetch('https://app.dubly.ai/api/v1/dubs/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.dubly.ai/api/v1/dubs/{id}"
payload = {
"title": "Product Tour (DE)",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"response": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"title": "Product Tour (DE)",
"project_id": "83724e4d-f41a-4f1a-a4c3-590e6b296bb0"
}
}Authorizations
Path Parameters
Body
application/json
Project to move the dub into — a project of your account (see GET /api/v1/projects). An unknown project or one of another account returns 404. null takes the dub out of its project.
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
