v46

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-174421106.5 KB
Conditions

List playbook conditions

Retrieve a paged list of conditions for a playbook.

get/plugins/playbooks/api/v0/playbooks/{id}/conditions

Path parameters

idstring required
Example:iz0g457ikesz55dhxcfa0fk9yy

ID of the playbook to retrieve conditions from.

Query parameters

pageinteger

Zero-based index of the page to request.

per_pageinteger

Number of conditions to return per page.

Response

A paged list of playbook conditions.

total_countinteger

The total number of conditions in the list, regardless of paging.

page_countinteger

The total number of pages. This depends on the total number of conditions and the per_page parameter.

has_moreboolean

A boolean describing whether there are more pages after the currently returned.

Example response

{
  "total_count": 10,
  "page_count": 1,
  "items": [
    {
      "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
    }
  ]
}