Retention
Modify a default retention policy.
put/spaces/{spaceIdentifier}/retentionpolicies/{id}
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/spaces/{spaceIdentifier}/retentionpolicies/{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
spaceIdentifierstring required
Identifier (ID or slug) of the space
idstring required
The id of the default retention policy.
Request body
Example request
{
"Id": "RetentionPolicies-1",
"RetentionType": "LifecycleRelease",
"SpaceId": "Spaces-1"
}Response
The response returned from the request to modify a default retention policy.
Example response
{
"RetentionType": "LifecycleRelease",
"SpaceId": "Spaces-1"
}Changes
No recorded changes to this operation across all 13 revisions of this API.