Create a folder
curl --request POST \
--url https://api.solaraai.com/api/v1/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.solaraai.com/api/v1/folders"
payload = { "name": "<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({name: '<string>'})
};
fetch('https://api.solaraai.com/api/v1/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"covers": [
{
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"aspect": "9:16",
"cover_url": "<string>",
"first_frame": {
"columns": 123,
"sheet_url": "<string>",
"tile_height": 123,
"tile_width": 123,
"image_url": "<string>"
},
"poster_url": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_used_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"video_count": 123
}{
"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
Create a folder
Solara AI API: Makes a folder. Names are unique in the workspace whatever their case: a name it already has is 409.
Permission: Edit (edit).
POST
/
api
/
v1
/
folders
Create a folder
curl --request POST \
--url https://api.solaraai.com/api/v1/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.solaraai.com/api/v1/folders"
payload = { "name": "<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({name: '<string>'})
};
fetch('https://api.solaraai.com/api/v1/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"covers": [
{
"video_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"aspect": "9:16",
"cover_url": "<string>",
"first_frame": {
"columns": 123,
"sheet_url": "<string>",
"tile_height": 123,
"tile_width": 123,
"image_url": "<string>"
},
"poster_url": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_used_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"video_count": 123
}{
"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
Response
Created