Pipelines
Preview

Get a preset

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

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

presetId*string
Formatuuid

Response Body

The preset.

application/json
  1. response
follows?array<>

On an update, what happened to each pipeline whose stage follows the preset.

id*string
Formatuuid
name*string
description*string
kind*string
Value in"pipeline""stage""rollout""guardrail"
ownerTeamId*string
sharedWith*array<string>
version*integer
body*

Which part is set depends on the preset's kind.

linkedStages*integer

Stages in active pipelines that follow this preset.

builtin*boolean

Wardn ships it with every organization. It cannot be changed or deleted (409 preset.builtin).

usedBy*integer

Active pipelines created from it.

createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X GET 'https://wardn.example.com/api/v1/pipeline-presets/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "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"}