Resume a photo or clip
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/parts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"part_numbers": [
123
]
}
'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/parts"
payload = { "part_numbers": [123] }
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({part_numbers: [123]})
};
fetch('https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/parts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"completed_parts": [
{
"etag": "<string>",
"part_number": 2,
"size_bytes": 123
}
],
"parts": [
{
"part_number": 123,
"url": "<string>"
}
]
}{
"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"
}Footage
Resume a photo or clip
Solara AI API: The parts already received, and fresh presigned URLs for the rest.
Permission: Edit (edit).
POST
/
api
/
v1
/
projects
/
{id}
/
media
/
{mediaId}
/
parts
Resume a photo or clip
curl --request POST \
--url https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/parts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"part_numbers": [
123
]
}
'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/parts"
payload = { "part_numbers": [123] }
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({part_numbers: [123]})
};
fetch('https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}/parts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"completed_parts": [
{
"etag": "<string>",
"part_number": 2,
"size_bytes": 123
}
],
"parts": [
{
"part_number": 123,
"url": "<string>"
}
]
}{
"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