Reconcile artifact storage
curl --request POST \
--url https://api.turos.app/v1/artifacts/{artifact_id}/reconcile \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{}'import requests
url = "https://api.turos.app/v1/artifacts/{artifact_id}/reconcile"
payload = {}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.turos.app/v1/artifacts/{artifact_id}/reconcile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "artifact_reconciliation",
"id": "<string>",
"artifactId": "<string>",
"status": "local_only",
"storageMode": "local",
"objectKey": "<string>",
"requestId": "<string>"
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Artifacts
Reconcile artifact storage
Verifies that the saved artifact payload is present in object storage. The result is local_only when object storage is not in use, synced when the object already exists, recovered when a missing object was repaired, or uploaded when the payload was written to object storage. Send no request fields.
POST
/
v1
/
artifacts
/
{artifact_id}
/
reconcile
Reconcile artifact storage
curl --request POST \
--url https://api.turos.app/v1/artifacts/{artifact_id}/reconcile \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{}'import requests
url = "https://api.turos.app/v1/artifacts/{artifact_id}/reconcile"
payload = {}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.turos.app/v1/artifacts/{artifact_id}/reconcile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "artifact_reconciliation",
"id": "<string>",
"artifactId": "<string>",
"status": "local_only",
"storageMode": "local",
"objectKey": "<string>",
"requestId": "<string>"
}{
"object": "error",
"id": "<string>",
"code": "<string>",
"type": "<string>",
"message": "<string>",
"requestId": "<string>",
"details": {},
"traceparent": "<string>",
"hint": "<string>",
"docsUrl": "<string>"
}Body
application/json
Omit the body or send {}. Unknown body fields are rejected.
The body is of type object.
Response
Reconciliation result for the persisted artifact.