Move videos to a folder
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/move \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"video_ids": [
"<string>"
]
}
'import requests
url = "https://api.solaraai.com/api/v1/projects/move"
payload = {
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"video_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({folder_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', video_ids: ['<string>']})
};
fetch('https://api.solaraai.com/api/v1/projects/move', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"moved": [
{
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Videos
Move videos to a folder
Solara AI API: Files 1 to 200 videos in a folder, or in none with folder_id null; all of them or none. A video is in one folder at most. The answer names where each was, to move them back.
Permission: Edit (edit).
POST
/
api
/
v1
/
projects
/
move
Move videos to a folder
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/move \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"video_ids": [
"<string>"
]
}
'import requests
url = "https://api.solaraai.com/api/v1/projects/move"
payload = {
"folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"video_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({folder_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', video_ids: ['<string>']})
};
fetch('https://api.solaraai.com/api/v1/projects/move', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"moved": [
{
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"previous_folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}{
"code": "invalid_credentials",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
Body
application/json