// Lifecycles

Create a lifecycle

Create a new release lifecycle.

POST/api/lifecycle

Description

Creates a new lifecycle. Pass phases to seed the lifecycle in one call - each phase lists environments and an optional progress requirement (AllMustComplete, AnyMustComplete, Count). Phases can also be added or edited later via the /api/lifecycle/phase endpoints.

Parameters

NameInTypeRequiredDescription
workspaceId body string yes ID of the workspace.
name body string yes Lifecycle name.
description body string no Optional description.
phases body array<object> no Ordered phases. See phase add for the phase object shape.

Errors

StatusMeaning
400 Invalid workspaceId, validation failure, or one of the referenced environment IDs not in the workspace.
401 Missing or invalid Basic auth credentials, or the service account lacks the required role.