Api Workflows Versions List List

List versions for a workflow family, or create a new draft. GET /api/workflows/{workflow_id}/versions/ List every version row (draft + committed history). POST /api/workflows/{workflow_id}/versions/ Create a new editable draft. Pure CRUD — the client sends the new row's content (name, tasks, description, etc.) and the backend inserts it with ``is_read_only=False``. Nothing else in the family is touched. Committing is a separate action at POST /api/workflows/{workflow_id}/commits/.

Authentication

AuthorizationBearer
JWT access token or Respan API key

Path parameters

workflow_idstringRequired

Query parameters

pageintegerOptional
A page number within the paginated result set.
page_sizeintegerOptional
Number of results to return per page.

Response

countinteger
resultslist of objects
nextstring or nullformat: "uri"
previousstring or nullformat: "uri"
total_countinteger
current_filtersobject

Pydantic model for FilterParamDict. A dictionary that maps metric names to their filter parameters.

Each key is a metric name (str), and each value can be:

  • A single MetricFilterParamPydantic (one condition)
  • A List[MetricFilterParamPydantic] (multiple conditions for same metric)
  • A FilterBundlePydantic (nested filter bundle with connector)

Note: Uses extra=“allow” for dynamic metric name fields. The pydantic_extra annotation tells Pydantic what types to expect for extra fields, and generates typed additionalProperties in JSON Schema.

filters_dataobject