Preview a publish
curl --request POST \
--url https://api.usenexio.com/engines/{engineSlug}/versions/preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/engines/{engineSlug}/versions/preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/engines/{engineSlug}/versions/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"blockers": [
{
"code": "<string>",
"fix": "<string>",
"message": "<string>",
"pointer": "<string>",
"details": "<unknown>"
}
],
"bump": "<string>",
"config_hash": "<string>",
"current_version": "<string>",
"has_changes": true,
"next_version": "<string>",
"publishable": true,
"reasons": [
"<string>"
],
"steps": [
{
"changed": true,
"id": "<string>",
"label": "<string>",
"reasons": [
"<string>"
]
}
]
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Engines
Preview a publish
The version a publish of the draft would make, the reasons for its bump, what blocks it, and the config_hash a publish must send. Writes nothing. Requires engines:edit.
POST
/
engines
/
{engineSlug}
/
versions
/
preview
Preview a publish
curl --request POST \
--url https://api.usenexio.com/engines/{engineSlug}/versions/preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.usenexio.com/engines/{engineSlug}/versions/preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.usenexio.com/engines/{engineSlug}/versions/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"blockers": [
{
"code": "<string>",
"fix": "<string>",
"message": "<string>",
"pointer": "<string>",
"details": "<unknown>"
}
],
"bump": "<string>",
"config_hash": "<string>",
"current_version": "<string>",
"has_changes": true,
"next_version": "<string>",
"publishable": true,
"reasons": [
"<string>"
],
"steps": [
{
"changed": true,
"id": "<string>",
"label": "<string>",
"reasons": [
"<string>"
]
}
]
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Response
OK
Every draft step, with whether it differs from the latest release. reasons covers the whole Engine.