Conditions
Update a playbook condition
Update an existing condition for a playbook.
put/plugins/playbooks/api/v0/playbooks/{id}/conditions/{conditionID}
Path parameters
idstring required
Example:iz0g457ikesz55dhxcfa0fk9yy
ID of the playbook.
conditionIDstring required
Example:abc123def456ghi789
ID of the condition to update.
Request body
Example request
{
"id": "abc123def456ghi789",
"condition_expr": {
"and": [
{
"is": {
"field_id": "status",
"value": "\"active\""
}
},
{
"or": [
{
"is": {
"field_id": "priority",
"value": "\"high\""
}
},
{
"is": {
"field_id": "priority",
"value": "\"critical\""
}
}
]
}
]
},
"version": 1,
"playbook_id": "iz0g457ikesz55dhxcfa0fk9yy",
"run_id": "mx3xyzdojfgyfdx8sc8of1gdme",
"create_at": 1606807976289,
"update_at": 1606807976289
}Response
Updated condition.
Example response
{
"id": "abc123def456ghi789",
"condition_expr": {
"and": [
{
"is": {
"field_id": "status",
"value": "\"active\""
}
},
{
"or": [
{
"is": {
"field_id": "priority",
"value": "\"high\""
}
},
{
"is": {
"field_id": "priority",
"value": "\"critical\""
}
}
]
}
]
},
"version": 1,
"playbook_id": "iz0g457ikesz55dhxcfa0fk9yy",
"run_id": "mx3xyzdojfgyfdx8sc8of1gdme",
"create_at": 1606807976289,
"update_at": 1606807976289
}