Remove a photo or clip
curl --request DELETE \
--url https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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
Remove a photo or clip
Solara AI API: Removes an item and every file made from it. It works whether or not footage is on for the workspace.
Permission: Edit (edit).
DELETE
/
api
/
v1
/
projects
/
{id}
/
media
/
{mediaId}
Remove a photo or clip
curl --request DELETE \
--url https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/projects/{id}/media/{mediaId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"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
Response
No Content