Rename a folder
curl --request POST \
--url https://api.videobase.com/v1/folders/rename \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"id": 2,
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 2, name: '<string>'})
};
fetch('https://api.videobase.com/v1/folders/rename', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/folders/rename"
payload = {
"id": 2,
"name": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"name": "<string>"
}{
"message": "File not found",
"status": 500
}Folders
Rename a folder
POST
/
v1
/
folders
/
rename
Rename a folder
curl --request POST \
--url https://api.videobase.com/v1/folders/rename \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"id": 2,
"name": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: 2, name: '<string>'})
};
fetch('https://api.videobase.com/v1/folders/rename', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.videobase.com/v1/folders/rename"
payload = {
"id": 2,
"name": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"name": "<string>"
}{
"message": "File not found",
"status": 500
}