List revisions
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/{id}/revisions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/revisions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/projects/{id}/revisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"doc_hash": "<string>",
"items": [
{
"built_rev": 123,
"client": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"doc_hash": "<string>",
"ops": [
{
"type": "<string>",
"itemId": "<string>"
}
],
"rev": 123,
"agent_name": "<string>",
"restored_from": 123,
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"rev": 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"
}Editing
List revisions
Solara AI API: The edit’s saved revisions, newest first, with who made each one.
Permission: Read (read).
GET
/
api
/
v1
/
projects
/
{id}
/
revisions
List revisions
curl --request GET \
--url https://api.solaraai.com/api/v1/projects/{id}/revisions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.solaraai.com/api/v1/projects/{id}/revisions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.solaraai.com/api/v1/projects/{id}/revisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"doc_hash": "<string>",
"items": [
{
"built_rev": 123,
"client": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"doc_hash": "<string>",
"ops": [
{
"type": "<string>",
"itemId": "<string>"
}
],
"rev": 123,
"agent_name": "<string>",
"restored_from": 123,
"run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"rev": 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"
}