# Preview packaging a version

> Source: https://elaichi.ai/docs/api-reference/apps/bundle/previewbundleversion/

`POST /bundle/{id}/version/preview`

Resource: **App** · API: **Apps**

## Path parameters

- **`id`** _(string, required)_
  Resource id

## Response body

- **`items_revision`** _(integer)_
- **`draft_revision`** _(integer)_
  The working-copy revision the preview was built from (skill, description and slot labels).
- **`content_hash`** _(string)_
  A hash of everything the version would seal apart from seed rows (whose copying is agreed per collection with `accept_rows`).
- **`manifest_bytes`** _(integer)_

## Code examples

### curl

```bash
curl -X POST 'https://api.elaichi.ai/bundle/<id>/version/preview' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
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);
```

### Python

```python
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())
```
