Pipelines
Preview

List presets

Named starting points shared with the caller: with everyone, with a team they belong to, owned by such a team, or every preset to whoever may make them. A person who reads no pipeline sees none. Not paged: an organization has a few. `linkedStages` counts the stages that follow each.

GET
/pipeline-presets
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

kind?string
Value in"pipeline""stage""rollout""guardrail"
q?string
Lengthlength <= 100

Response Body

The presets, by name.

application/json
  1. response
items*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/pipeline-presets'
Example Response
{  "items": [    {      "follows": [        {          "pipelineId": "621ef2b0-ba1d-48e5-89dc-b778e6ed42fd",          "pipelineName": "string",          "stageName": "string",          "result": "updated",          "version": 0,          "draftNumber": 0,          "draftId": "dfb8a430-52c9-4ba8-8878-6bd070da9488",          "reason": "string"        }      ],      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "description": "string",      "kind": "pipeline",      "ownerTeamId": "string",      "sharedWith": [        "string"      ],      "version": 0,      "body": {        "arrival": "auto_promote",        "stage": {          "which": "qualified",          "ifSeveral": "replace",          "allowRequests": true,          "configOnly": true,          "incoming": "all",          "narrow": [            {              "field": "cluster",              "op": "is",              "value": "string"            }          ],          "rules": [            {              "id": "string",              "type": "approval",              "section": "gate",              "title": "string",              "note": "string",              "locked": true,              "params": {}            }          ],          "onReject": "keep",          "onQualify": "notify",          "notifyTarget": "string",          "rollout": {            "mode": "all",            "waves": [              {                "id": "string",                "name": "string",                "detail": "string",                "targets": "string",                "verify": "string",                "next": "confirm",                "soakSeconds": 0,                "selector": {                  "property1": "string",                  "property2": "string"                }              }            ],            "onFail": "pause",            "retries": "2",            "timeout": "15m"          },          "health": {            "watchSeconds": 0,            "onFail": "pause"          },          "requestForm": "string",          "agents": {            "autonomy": "observe",            "cap": "observe",            "perHour": 0,            "may": {              "property1": true,              "property2": true            },            "read": {              "mode": "off",              "agentId": "string"            }          },          "preset": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "version": 1          }        },        "rollout": {          "mode": "all",          "waves": [            {              "id": "string",              "name": "string",              "detail": "string",              "targets": "string",              "verify": "string",              "next": "confirm",              "soakSeconds": 0,              "selector": {                "property1": "string",                "property2": "string"              }            }          ],          "onFail": "pause",          "retries": "2",          "timeout": "15m"        },        "stages": [          {            "name": "string",            "environmentClass": "string",            "arrival": "auto_promote",            "soakSeconds": 0,            "config": {              "which": "qualified",              "ifSeveral": "replace",              "allowRequests": true,              "configOnly": true,              "incoming": "all",              "narrow": [                {                  "field": "cluster",                  "op": "is",                  "value": "string"                }              ],              "rules": [                {                  "id": "string",                  "type": "approval",                  "section": "gate",                  "title": "string",                  "note": "string",                  "locked": true,                  "params": {}                }              ],              "onReject": "keep",              "onQualify": "notify",              "notifyTarget": "string",              "rollout": {                "mode": "all",                "waves": [                  {                    "id": "string",                    "name": "string",                    "detail": "string",                    "targets": "string",                    "verify": "string",                    "next": "confirm",                    "soakSeconds": 0,                    "selector": {                      "property1": "string",                      "property2": "string"                    }                  }                ],                "onFail": "pause",                "retries": "2",                "timeout": "15m"              },              "health": {                "watchSeconds": 0,                "onFail": "pause"              },              "requestForm": "string",              "agents": {                "autonomy": "observe",                "cap": "observe",                "perHour": 0,                "may": {                  "property1": true,                  "property2": true                },                "read": {                  "mode": "off",                  "agentId": "string"                }              },              "preset": {                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",                "version": 1              }            }          }        ],        "settings": {}      },      "linkedStages": 0,      "builtin": true,      "usedBy": 0,      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ]}