Preview a Playbook update
curl --request POST \
--url https://api-us.hihobbes.com/api/v1/playbook/update-previews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"operationKey": "<string>",
"expectedSectionsEtag": "<string>",
"patches": [
{
"sectionKey": "<string>",
"operations": [
{
"path": "<string>",
"value": null
}
]
}
]
}
'import requests
url = "https://api-us.hihobbes.com/api/v1/playbook/update-previews"
payload = {
"operationKey": "<string>",
"expectedSectionsEtag": "<string>",
"patches": [
{
"sectionKey": "<string>",
"operations": [
{
"path": "<string>",
"value": None
}
]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operationKey: '<string>',
expectedSectionsEtag: '<string>',
patches: [{sectionKey: '<string>', operations: [{path: '<string>', value: null}]}]
})
};
fetch('https://api-us.hihobbes.com/api/v1/playbook/update-previews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiresAt": "2023-11-07T05:31:56Z",
"baseSectionsEtag": "<string>",
"proposedSectionsEtag": "<string>",
"productionVersion": 123,
"stagingVersion": 123,
"links": {
"staging": {
"url": "<string>",
"availabilityReason": "<string>"
},
"production": {
"url": "<string>",
"availabilityReason": "<string>"
}
},
"changes": [
{
"sectionKey": "<string>",
"title": "<string>",
"action": "added",
"before": "<unknown>",
"after": "<unknown>"
}
]
}{
"detail": "API key required or invalid."
}{
"detail": "API key does not include the required scope."
}{
"detail": "The operation conflicts with current state or idempotency history."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Rate limit or organization quota exceeded."
}{
"detail": "The workflow is disabled or temporarily unavailable."
}Playbook
Preview a Playbook update
Validate proposed changes and return a before-and-after summary without changing staging.
POST
/
api
/
v1
/
playbook
/
update-previews
Preview a Playbook update
curl --request POST \
--url https://api-us.hihobbes.com/api/v1/playbook/update-previews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"operationKey": "<string>",
"expectedSectionsEtag": "<string>",
"patches": [
{
"sectionKey": "<string>",
"operations": [
{
"path": "<string>",
"value": null
}
]
}
]
}
'import requests
url = "https://api-us.hihobbes.com/api/v1/playbook/update-previews"
payload = {
"operationKey": "<string>",
"expectedSectionsEtag": "<string>",
"patches": [
{
"sectionKey": "<string>",
"operations": [
{
"path": "<string>",
"value": None
}
]
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operationKey: '<string>',
expectedSectionsEtag: '<string>',
patches: [{sectionKey: '<string>', operations: [{path: '<string>', value: null}]}]
})
};
fetch('https://api-us.hihobbes.com/api/v1/playbook/update-previews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expiresAt": "2023-11-07T05:31:56Z",
"baseSectionsEtag": "<string>",
"proposedSectionsEtag": "<string>",
"productionVersion": 123,
"stagingVersion": 123,
"links": {
"staging": {
"url": "<string>",
"availabilityReason": "<string>"
},
"production": {
"url": "<string>",
"availabilityReason": "<string>"
}
},
"changes": [
{
"sectionKey": "<string>",
"title": "<string>",
"action": "added",
"before": "<unknown>",
"after": "<unknown>"
}
]
}{
"detail": "API key required or invalid."
}{
"detail": "API key does not include the required scope."
}{
"detail": "The operation conflicts with current state or idempotency history."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "Rate limit or organization quota exceeded."
}{
"detail": "The workflow is disabled or temporarily unavailable."
}Requires
playbook:write.
Send restricted JSON Patch operations and a stable operationKey. Set
expectedSectionsEtag to the current sectionsEtag. Hobbes validates the
changes against a clone of staging.
The preview does not change the Playbook and expires after 24 hours.Authorizations
bearerapiKeyHeader
Hobbes API key with the hb_live_ prefix.
Body
application/json
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes