Lifecycles
Modify a Lifecycle.
put/{spaceId}/lifecycles/{id}
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/{spaceId}/lifecycles/{id}
- 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.
idstring required
The Id of the Lifecycle to modify.
Request body
Example request
{
"Id": "Lifecycles-1",
"Phases": [
{
"AutomaticDeploymentTargets": [
"Environments-1",
"..."
],
"OptionalDeploymentTargets": [
"Environments-1",
"..."
]
}
],
"SpaceId": "Spaces-1"
}Response
Contains a Lifecycle resource which represents changes to the Lifecycle.
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.