AI
Rollback to previous Playbook Release
POST
/
v1
/
ai
/
agents
/
{agentID}
/
playbook-releases
/
rollback
Rollback to previous Playbook Release
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbook-releases/rollback \
--header 'Content-Type: application/json' \
--data '
{
"environment": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({environment: '<string>'})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbook-releases/rollback', 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}/playbook-releases/rollback"
payload = { "environment": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"created_at": "<string>",
"environment": "<string>",
"id": "<string>",
"organization_id": "<string>",
"status": "<string>",
"activated_at": "<string>",
"created_by": "<string>",
"items": [
{
"enabled": true,
"fallback_kind": "<string>",
"id": "<string>",
"playbook_id": "<string>",
"playbook_version_id": "<string>",
"priority": 123,
"release_id": "<string>",
"rollout_percent": 123
}
],
"notes": "<string>",
"previous_release_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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Path Parameters
Body
application/json
⌘I
Rollback to previous Playbook Release
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/playbook-releases/rollback \
--header 'Content-Type: application/json' \
--data '
{
"environment": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({environment: '<string>'})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/playbook-releases/rollback', 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}/playbook-releases/rollback"
payload = { "environment": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"created_at": "<string>",
"environment": "<string>",
"id": "<string>",
"organization_id": "<string>",
"status": "<string>",
"activated_at": "<string>",
"created_by": "<string>",
"items": [
{
"enabled": true,
"fallback_kind": "<string>",
"id": "<string>",
"playbook_id": "<string>",
"playbook_version_id": "<string>",
"priority": 123,
"release_id": "<string>",
"rollout_percent": 123
}
],
"notes": "<string>",
"previous_release_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>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}