AI
Publish immutable Playbook Version (not live)
POST
/
v1
/
ai
/
agents
/
{agentID}
/
playbooks
/
{playbookID}
/
publish
Publish immutable Playbook Version (not live)
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/publish \
--header 'Content-Type: application/json' \
--data '
{
"plan_hash": "<string>",
"source_hash": "<string>",
"compiler_version": "<string>",
"notes": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
plan_hash: '<string>',
source_hash: '<string>',
compiler_version: '<string>',
notes: '<string>'
})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/publish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/publish"
payload = {
"plan_hash": "<string>",
"source_hash": "<string>",
"compiler_version": "<string>",
"notes": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"authoring_source": {
"document": {
"type": "<string>",
"json": "<unknown>",
"text": "<string>"
},
"execution_mode": "<string>",
"outcome": {
"goal": "<string>",
"terminal_outcomes": [
"<string>"
]
},
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"trigger": {
"conditions": [
{}
],
"examples": [
"<string>"
]
},
"guardrails": [
"<unknown>"
],
"legacy": {},
"success_checks": [
"<unknown>"
]
},
"compiled_plan": {
"compiler_version": "<string>",
"entry_step_id": "<string>",
"execution_mode": "<string>",
"resource_grants": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"source_hash": "<string>",
"steps": [
{
"id": "<string>",
"kind": "<string>",
"branches": {},
"config": {},
"next": "<string>",
"source_node_id": "<string>"
}
],
"terminal_outcomes": [
"<string>"
],
"inputs": [
{}
]
},
"compiler_version": "<string>",
"organization_id": "<string>",
"plan_hash": "<string>",
"playbook_id": "<string>",
"playbook_version_id": "<string>",
"published_at": "<string>",
"resource_manifest": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"source_hash": "<string>",
"validation_report": {
"compiled_at": "2023-11-07T05:31:56Z",
"compiler_version": "<string>",
"diagnostics": [
{
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"path": "<string>",
"source_node_id": "<string>"
}
],
"ok": true,
"source_hash": "<string>",
"plan_hash": "<string>"
},
"eval_policy": "<unknown>",
"notes": "<string>",
"published_by": "<string>",
"version_number": 123
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Publish immutable Playbook Version (not live)
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/publish \
--header 'Content-Type: application/json' \
--data '
{
"plan_hash": "<string>",
"source_hash": "<string>",
"compiler_version": "<string>",
"notes": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
plan_hash: '<string>',
source_hash: '<string>',
compiler_version: '<string>',
notes: '<string>'
})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/publish', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/playbooks/{playbookID}/publish"
payload = {
"plan_hash": "<string>",
"source_hash": "<string>",
"compiler_version": "<string>",
"notes": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"authoring_source": {
"document": {
"type": "<string>",
"json": "<unknown>",
"text": "<string>"
},
"execution_mode": "<string>",
"outcome": {
"goal": "<string>",
"terminal_outcomes": [
"<string>"
]
},
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"trigger": {
"conditions": [
{}
],
"examples": [
"<string>"
]
},
"guardrails": [
"<unknown>"
],
"legacy": {},
"success_checks": [
"<unknown>"
]
},
"compiled_plan": {
"compiler_version": "<string>",
"entry_step_id": "<string>",
"execution_mode": "<string>",
"resource_grants": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"settings": {
"max_playbook_call_depth": 123,
"max_retries_per_step": 123,
"max_steps": 123
},
"source_hash": "<string>",
"steps": [
{
"id": "<string>",
"kind": "<string>",
"branches": {},
"config": {},
"next": "<string>",
"source_node_id": "<string>"
}
],
"terminal_outcomes": [
"<string>"
],
"inputs": [
{}
]
},
"compiler_version": "<string>",
"organization_id": "<string>",
"plan_hash": "<string>",
"playbook_id": "<string>",
"playbook_version_id": "<string>",
"published_at": "<string>",
"resource_manifest": [
{
"kind": "<string>",
"permission": "<string>",
"resource_id": "<string>",
"label": "<string>"
}
],
"schema_version": 123,
"source_hash": "<string>",
"validation_report": {
"compiled_at": "2023-11-07T05:31:56Z",
"compiler_version": "<string>",
"diagnostics": [
{
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"path": "<string>",
"source_node_id": "<string>"
}
],
"ok": true,
"source_hash": "<string>",
"plan_hash": "<string>"
},
"eval_policy": "<unknown>",
"notes": "<string>",
"published_by": "<string>",
"version_number": 123
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}