Skip to content
POST /bundle/{id}/version/preview

Returns the issues a real version would hit, without writing anything. Send its `items_revision`, `draft_revision` and `content_hash` back to `POST /bundle/{id}/version` so the version seals exactly what was reviewed.

Path Parameters

idstring
required·

Resource id

Response Body

content_hashstring

A hash of everything the version would seal apart from seed rows (whose copying is agreed per collection with accept_rows).

draft_revisioninteger

The working-copy revision the preview was built from (skill, description and slot labels).

items_revisioninteger
manifest_bytesinteger
curl -X POST 'https://api.elaichi.ai/bundle/<id>/version/preview' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.elaichi.ai/bundle/<id>/version/preview', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import os
import requests

url = "https://api.elaichi.ai/bundle/<id>/version/preview"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.post(url, headers=headers)
print(response.json())