Lifecycles
Create a new Lifecycle.
post/{spaceId}/lifecycles
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/{spaceId}/lifecycles
- Auth
- API key in header X-Octopus-ApiKey
- or API key in query parameter ApiKey
- or API key in header X-NuGet-ApiKey
Path parameters
spaceIdstring required
The id of the Space for the Lifecycle.
Request body
Example request
{
"Phases": [
{
"AutomaticDeploymentTargets": [
"Environments-1",
"..."
],
"OptionalDeploymentTargets": [
"Environments-1",
"..."
]
}
],
"SpaceId": "Spaces-1"
}Response
Created
Example response
{
"Links": {
"Self": "/api/..."
},
"Phases": [
{
"AutomaticDeploymentTargets": [
"Environments-1",
"..."
],
"OptionalDeploymentTargets": [
"Environments-1",
"..."
]
}
],
"SpaceId": "Spaces-1"
}Changes
No recorded changes to this operation across all 13 revisions of this API.