List all of the releases that belong to the given Channel
GET /api
Also reachable at /api, /api.
Releases will be ordered from most recent to least recent,
Path Parameters
idstring (required)
ID of the Channel to get Releases for.spaceIdstring (required)
ID of the Space to which the given Channel belongs.
Query Parameters
projectIdstring
ID of the Project to which the given Channel belongs.searchByVersionstring
A partial version, to limit the set of Releases to those with a version that includes the partial version.skipinteger
Number of items to skip. Defaults to zero. Minimum0.takeinteger
Number of items to take. Defaults to 30. Minimum0.
Response
200 — List of Releases on the given Channel.
Idstring
Gets or sets a unique identifier for this resource.ItemTypestringItemsarray of objectAssembledstring
Formatdate-time.BuildInformationarray of objectChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectSelectedPackagesarray of objectSpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobject
ItemsPerPageintegerLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LastPageNumberintegerLinksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NumberOfPagesintegerTotalResultsinteger
Example Response
{
"Id": "string",
"ItemType": "string",
"Items": [
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{}
],
"SelectedPackages": [
{}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}
],
"ItemsPerPage": 0,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LastPageNumber": 0,
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NumberOfPages": 0,
"TotalResults": 0
}List all of the releases that belong to the given Channel
GET /api
Also reachable at /api, /api.
Releases will be ordered from most recent to least recent,
Path Parameters
idstring (required)
ID of the Channel to get Releases for.projectIdstring (required)
ID of the Project to which the given Channel belongs.spaceIdstring (required)
ID of the Space to which the given Channel belongs.
Query Parameters
searchByVersionstring
A partial version, to limit the set of Releases to those with a version that includes the partial version.skipinteger
Number of items to skip. Defaults to zero. Minimum0.takeinteger
Number of items to take. Defaults to 30. Minimum0.
Response
200 — List of Releases on the given Channel.
Idstring
Gets or sets a unique identifier for this resource.ItemTypestringItemsarray of objectAssembledstring
Formatdate-time.BuildInformationarray of objectChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectSelectedPackagesarray of objectSpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobject
ItemsPerPageintegerLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LastPageNumberintegerLinksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NumberOfPagesintegerTotalResultsinteger
Example Response
{
"Id": "string",
"ItemType": "string",
"Items": [
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{}
],
"SelectedPackages": [
{}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}
],
"ItemsPerPage": 0,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LastPageNumber": 0,
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NumberOfPages": 0,
"TotalResults": 0
}List all of the releases that belong to the given Project
GET /api
Also reachable at /api, /api.
Releases will be ordered from most recent to least recent
Path Parameters
projectIdstring (required)
ID of the Project to get Releases for.spaceIdstring (required)
ID of the Space to which the given Project belongs.
Query Parameters
searchByVersionstring
A partial version, to limit the set of Releases to those with a version that includes the partial version.skipinteger
Number of items to skip. Defaults to zero. Minimum0.takeinteger
Number of items to take. Defaults to 30. Minimum0.
Response
200 — The list of Releases
Idstring
Gets or sets a unique identifier for this resource.ItemTypestringItemsarray of objectAssembledstring
Formatdate-time.BuildInformationarray of objectChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectSelectedPackagesarray of objectSpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobject
ItemsPerPageintegerLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LastPageNumberintegerLinksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NumberOfPagesintegerTotalResultsinteger
Example Response
{
"Id": "string",
"ItemType": "string",
"Items": [
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{}
],
"SelectedPackages": [
{}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}
],
"ItemsPerPage": 0,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LastPageNumber": 0,
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NumberOfPages": 0,
"TotalResults": 0
}Get a list of Variable Sets included in the Release’s current Variable Snapshot
GET /api
Also reachable at /api, /api.
Path Parameters
idstring (required)
ID of the Release to get variables for.projectIdstring (required)
ID of the Project the Release is in.spaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — The requested list of Variables
Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.OwnerIdstring
Gets or sets the ID of the document that owns these variables.ScopeValuesobjectActionsarray of objectChannelsarray of objectEnvironmentParametersarray of objectEnvironmentsarray of objectMachinesarray of objectProcessTemplateStepsarray of objectProcessesarray of objectRolesarray of objectTargetTagParametersarray of objectTenantTagParametersarray of objectTenantTagsarray of object
SpaceIdstringVariablesarray of object
Gets the collection of variables.DescriptionstringIdstringIsEditablebooleanIsSensitivebooleanNamestringPromptobjectScopeobjectTypestringValuestring
Versioninteger
Gets or sets the version number.
Example Response
[
{
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"OwnerId": "string",
"ScopeValues": {
"Actions": [
{}
],
"Channels": [
{}
],
"EnvironmentParameters": [
{}
],
"Environments": [
{}
],
"Machines": [
{}
],
"ProcessTemplateSteps": [
{}
],
"Processes": [
{}
],
"Roles": [
{}
],
"TargetTagParameters": [
{}
],
"TenantTagParameters": [
{}
],
"TenantTags": [
{}
]
},
"SpaceId": "Spaces-1",
"Variables": [
{
"Description": "string",
"Id": "string",
"IsEditable": true,
"IsSensitive": true,
"Name": "string",
"Prompt": {},
"Scope": {},
"Type": "string",
"Value": "string"
}
],
"Version": 0
}
]Get a single release by project ID and version number
GET /api
Also reachable at /api, /api.
Path Parameters
projectIdstring (required)
The ID of the project containing the release.spaceIdstring (required)
The ID of the space containing the release.versionstring (required)
The version of the requested release.
Response
200 — Success
Assembledstring
Formatdate-time.BuildInformationarray of objectBranchstringBuildEnvironmentstringBuildNumberstringBuildUrlstringCommitsarray of objectIssueTrackerNamestringPackageIdstringVcsCommitNumberstringVcsCommitUrlstringVcsRootstringVcsTypestringVersionstringWorkItemsarray of object
ChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectActionNamestring
Minimum length 1.GitReferenceResourceobjectGitResourceReferenceNamestring
SelectedPackagesarray of objectActionNamestringPackageReferenceNamestringStepNamestringVersionstring
SpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobjectGitCommitstringGitRefstringVariablesGitCommitstring
Example Response
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{
"Branch": "string",
"BuildEnvironment": "string",
"BuildNumber": "string",
"BuildUrl": "string",
"Commits": [
{}
],
"IssueTrackerName": "string",
"PackageId": "string",
"VcsCommitNumber": "string",
"VcsCommitUrl": "string",
"VcsRoot": "string",
"VcsType": "string",
"Version": "string",
"WorkItems": [
{}
]
}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{
"ActionName": "string",
"GitReferenceResource": {
"GitCommit": "string",
"GitRef": "string"
},
"GitResourceReferenceName": "string"
}
],
"SelectedPackages": [
{
"ActionName": "string",
"PackageReferenceName": "string",
"StepName": "string",
"Version": "string"
}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}Get a list of Releases for the given Space
GET /api
Also reachable at /api, /api.
Lists all of the Releases in the supplied Octopus Deploy Space, from all projects. The results will be sorted from most recent to least recent release.
Path Parameters
spaceIdstring (required)
ID of the Space to which the Releases belong.
Query Parameters
skipinteger
Number of items to skip. Defaults to zero. Minimum0.takeinteger
Number of items to take. Defaults to 30. Minimum0.
Response
200 — The list of Releases for the requested Space.
Idstring
Gets or sets a unique identifier for this resource.ItemTypestringItemsarray of objectAssembledstring
Formatdate-time.BuildInformationarray of objectChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectSelectedPackagesarray of objectSpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobject
ItemsPerPageintegerLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LastPageNumberintegerLinksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NumberOfPagesintegerTotalResultsinteger
Example Response
{
"Id": "string",
"ItemType": "string",
"Items": [
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{}
],
"SelectedPackages": [
{}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}
],
"ItemsPerPage": 0,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LastPageNumber": 0,
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NumberOfPages": 0,
"TotalResults": 0
}Create a Release
POST /api
Also reachable at /api, /api.
Path Parameters
spaceIdstring (required)
Request Body
Assembledstring
Formatdate-time.ChannelIdstringCustomFieldsobjectIgnoreChannelRulesboolean
Ignore channel rules.ProjectIdstring (required)ReleaseNotesstringSelectedGitResourcesarray of objectActionNamestring (required)
Minimum length 1.GitReferenceResourceobject (required)GitResourceReferenceNamestring
SelectedPackagesarray of objectActionNamestringPackageReferenceNamestringStepNamestringVersionstring
SpaceIdstring (required)Versionstring (required)
Maximum length 349.VersionControlReferenceobjectGitCommitstringGitRefstringVariablesGitCommitstring
Response
201 — Created
Assembledstring
Formatdate-time.BuildInformationarray of objectBranchstringBuildEnvironmentstringBuildNumberstringBuildUrlstringCommitsarray of objectIssueTrackerNamestringPackageIdstringVcsCommitNumberstringVcsCommitUrlstringVcsRootstringVcsTypestringVersionstringWorkItemsarray of object
ChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectActionNamestring
Minimum length 1.GitReferenceResourceobjectGitResourceReferenceNamestring
SelectedPackagesarray of objectActionNamestringPackageReferenceNamestringStepNamestringVersionstring
SpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobjectGitCommitstringGitRefstringVariablesGitCommitstring
Example Request
{
"Assembled": "2020-01-01T00:00:00.000Z",
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"IgnoreChannelRules": true,
"ProjectId": "Projects-1",
"ReleaseNotes": "string",
"SelectedGitResources": [
{
"ActionName": "string",
"GitReferenceResource": {
"GitCommit": "string",
"GitRef": "string"
},
"GitResourceReferenceName": "string"
}
],
"SelectedPackages": [
{
"ActionName": "string",
"PackageReferenceName": "string",
"StepName": "string",
"Version": "string"
}
],
"SpaceId": "Spaces-1",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}Example Response
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{
"Branch": "string",
"BuildEnvironment": "string",
"BuildNumber": "string",
"BuildUrl": "string",
"Commits": [
{}
],
"IssueTrackerName": "string",
"PackageId": "string",
"VcsCommitNumber": "string",
"VcsCommitUrl": "string",
"VcsRoot": "string",
"VcsType": "string",
"Version": "string",
"WorkItems": [
{}
]
}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{
"ActionName": "string",
"GitReferenceResource": {
"GitCommit": "string",
"GitRef": "string"
},
"GitResourceReferenceName": "string"
}
],
"SelectedPackages": [
{
"ActionName": "string",
"PackageReferenceName": "string",
"StepName": "string",
"Version": "string"
}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}Create a Release
POST /api
Also reachable at /api, /api.
Path Parameters
spaceIdstring (required)
Request Body
ChannelNamestring
Name of the channel to use for the new release. Omit this argument to automatically select the best channel.CustomFieldsobject
Values for the project’s custom release fields, if it defines any, keyed by field name.GitCommitstring
Only set alongside GitRef, when a specific commit is needed; GitRef alone uses the tip of that ref.GitRefstring
The Git branch, tag or commit to snapshot the deployment process from. Required for a project that stores its configuration in Git, and must be left unset for one stored in the database — the command fails either way round. List a project’s branches with get_branches.GitResourcesarray of string
Git ref to use for a git resource in the release. Format: StepNameor StepName:GitResourceName . If the GitResourceName is omitted, it’s assumed to be the primary git resource for the step. The GitRef can be replaced with an asterisk. An asterisk will use the tip ref of the step-defined default branch. IgnoreChannelRulesboolean
Create the release even when a package version, or the Git reference, violates the channel’s version rules. This overrides a deliberate guardrail, so prefer correcting the versions or letting Octopus select the channel; only set it when explicitly asked to.IgnoreIfAlreadyExistsboolean
If a release with the same version number already exists, return that one instead of failing — so the returned ReleaseId may be an existing release rather than a newly created one.PackagePrereleasestring
Restrict automatic version selection to pre-release versions carrying this tag, for example “beta”. Ignored for steps whose version is pinned by PackageVersion or Packages.PackageVersionstring
One version to use for every package step. Leave unset to take the latest version of each package; use Packages instead to pin versions per step.Packagesarray of string
Version number to use for a package in the release. Format: StepNameor PackageID or StepName:PackageName . StepName, PackageID, and PackageName can be replaced with an asterisk. An asterisk will be assumed for StepName, PackageID, or PackageName if they are omitted. ProjectNamestring (required)ReleaseNotesstring
Release Notes for the new release. Styling with Markdown is supported.ReleaseVersionstring
Leave unset to let Octopus pick the next version from the project’s versioning strategy, which is usually what you want.SpaceIdstring (required)SpaceIdOrNamestring (required)
Both this and SpaceId are required, and normally hold the same space ID; set both.
Response
201 — Created
ReleaseIdstringReleaseVersionstring
Minimum length 1.
Example Request
{
"ChannelName": "string",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"GitCommit": "string",
"GitRef": "string",
"GitResources": [
"string"
],
"IgnoreChannelRules": true,
"IgnoreIfAlreadyExists": true,
"PackagePrerelease": "string",
"PackageVersion": "string",
"Packages": [
"string"
],
"ProjectName": "string",
"ReleaseNotes": "string",
"ReleaseVersion": "string",
"SpaceId": "Spaces-1",
"SpaceIdOrName": "string"
}Example Response
{
"ReleaseId": "Releases-1",
"ReleaseVersion": "string"
}Get a Release by ID
GET /api
Also reachable at /api, /api.
Path Parameters
idstring (required)
ID of the Release to load.spaceIdstring (required)
ID of the Space that owns the Release.
Response
200 — The requested Release
Assembledstring
Formatdate-time.BuildInformationarray of objectBranchstringBuildEnvironmentstringBuildNumberstringBuildUrlstringCommitsarray of objectIssueTrackerNamestringPackageIdstringVcsCommitNumberstringVcsCommitUrlstringVcsRootstringVcsTypestringVersionstringWorkItemsarray of object
ChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectActionNamestring
Minimum length 1.GitReferenceResourceobjectGitResourceReferenceNamestring
SelectedPackagesarray of objectActionNamestringPackageReferenceNamestringStepNamestringVersionstring
SpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobjectGitCommitstringGitRefstringVariablesGitCommitstring
Example Response
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{
"Branch": "string",
"BuildEnvironment": "string",
"BuildNumber": "string",
"BuildUrl": "string",
"Commits": [
{}
],
"IssueTrackerName": "string",
"PackageId": "string",
"VcsCommitNumber": "string",
"VcsCommitUrl": "string",
"VcsRoot": "string",
"VcsType": "string",
"Version": "string",
"WorkItems": [
{}
]
}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{
"ActionName": "string",
"GitReferenceResource": {
"GitCommit": "string",
"GitRef": "string"
},
"GitResourceReferenceName": "string"
}
],
"SelectedPackages": [
{
"ActionName": "string",
"PackageReferenceName": "string",
"StepName": "string",
"Version": "string"
}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}Update an existing Release
PUT /api
Also reachable at /api, /api.
Path Parameters
idstring (required)
ID of the Release.spaceIdstring (required)
Request Body
ChannelIdstring (required)CustomFieldsobjectIdstring (required)
ID of the Release.IgnoreChannelRulesboolean
If altering the Channel of an existing Release, its rules may be violated. This ignores those violations. If not altering the Release Channel, this parameter is ignored.ProjectIdstring (required)ReleaseNotesstringSelectedGitResourcesarray of objectActionNamestring (required)
Minimum length 1.GitReferenceResourceobject (required)GitResourceReferenceNamestring
SelectedPackagesarray of objectActionNamestringPackageReferenceNamestringStepNamestringVersionstring
SpaceIdstring (required)Versionstring (required)
Maximum length 349.
Response
200 — Confirmation that the Release was modified, containing the updated Release
Assembledstring
Formatdate-time.BuildInformationarray of objectBranchstringBuildEnvironmentstringBuildNumberstringBuildUrlstringCommitsarray of objectIssueTrackerNamestringPackageIdstringVcsCommitNumberstringVcsCommitUrlstringVcsRootstringVcsTypestringVersionstringWorkItemsarray of object
ChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectActionNamestring
Minimum length 1.GitReferenceResourceobjectGitResourceReferenceNamestring
SelectedPackagesarray of objectActionNamestringPackageReferenceNamestringStepNamestringVersionstring
SpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobjectGitCommitstringGitRefstringVariablesGitCommitstring
Example Request
{
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"ProjectId": "Projects-1",
"ReleaseNotes": "string",
"SelectedGitResources": [
{
"ActionName": "string",
"GitReferenceResource": {
"GitCommit": "string",
"GitRef": "string"
},
"GitResourceReferenceName": "string"
}
],
"SelectedPackages": [
{
"ActionName": "string",
"PackageReferenceName": "string",
"StepName": "string",
"Version": "string"
}
],
"SpaceId": "Spaces-1",
"Version": "string"
}Example Response
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{
"Branch": "string",
"BuildEnvironment": "string",
"BuildNumber": "string",
"BuildUrl": "string",
"Commits": [
{}
],
"IssueTrackerName": "string",
"PackageId": "string",
"VcsCommitNumber": "string",
"VcsCommitUrl": "string",
"VcsRoot": "string",
"VcsType": "string",
"Version": "string",
"WorkItems": [
{}
]
}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{
"ActionName": "string",
"GitReferenceResource": {
"GitCommit": "string",
"GitRef": "string"
},
"GitResourceReferenceName": "string"
}
],
"SelectedPackages": [
{
"ActionName": "string",
"PackageReferenceName": "string",
"StepName": "string",
"Version": "string"
}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}Delete an existing release, along with all of the deployments, tasks and other associated resources belonging to the release
DELETE /api
Also reachable at /api, /api.
Path Parameters
idstring (required)
Id of the Release to delete.spaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — Success
Get all of the information necessary for creating or editing a deployment for this release
GET /api
Also reachable at /api, /api.
Path Parameters
idstring (required)
ID of the Release.spaceIdstring (required)
ID of the Space.
Response
200 — The requested Deployment Template for the release.
DeploymentNotesstringIdstring
Gets or sets a unique identifier for this resource.IsDeploymentProcessModifiedbooleanIsGitResourceModifiedbooleanIsLibraryVariableSetModifiedbooleanIsVariableSetModifiedbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.PromoteToarray of objectIdstringLinksobjectNamestring
TenantPromotionsarray of objectIdstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NamestringPromoteToarray of object
Example Response
{
"DeploymentNotes": "string",
"Id": "string",
"IsDeploymentProcessModified": true,
"IsGitResourceModified": true,
"IsLibraryVariableSetModified": true,
"IsVariableSetModified": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"PromoteTo": [
{
"Id": "Environments-1",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string"
}
],
"TenantPromotions": [
{
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Name": "string",
"PromoteTo": [
{}
]
}
]
}Get all defects for a release
GET /api
Also reachable at /api, /api.
Path Parameters
releaseIdstring (required)
Id of the release.spaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — Get all defects for a release.
Idstring
Gets or sets a unique identifier for this resource.ItemTypestringItemsarray of objectDescriptionstring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Statusenum
Allowed values:Unresolved,Resolved.
ItemsPerPageintegerLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LastPageNumberintegerLinksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NumberOfPagesintegerTotalResultsinteger
Example Response
{
"Id": "string",
"ItemType": "string",
"Items": [
{
"Description": "string",
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Status": "Unresolved"
}
],
"ItemsPerPage": 0,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LastPageNumber": 0,
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NumberOfPages": 0,
"TotalResults": 0
}Record defect in a release
POST /api
Also reachable at /api, /api.
Path Parameters
releaseIdstring (required)
Id of the release.spaceIdstring (required)
The ID of the space containing the resource(s).
Request Body
Descriptionstring (required)
Defect in the release. Minimum length 1.ReleaseIdstring (required)
Id of the release.SpaceIdstring (required)
The ID of the space containing the resource(s).Statusstring
Response
200 — The defect resource that was recorded against a release
Descriptionstring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Statusenum
Allowed values:Unresolved,Resolved.
Example Request
{
"Description": "string",
"ReleaseId": "Releases-1",
"SpaceId": "Spaces-1",
"Status": "string"
}Example Response
{
"Description": "string",
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Status": "Unresolved"
}Resolve defect in a release
POST /api
Also reachable at /api, /api.
Path Parameters
releaseIdstring (required)
Id of the release.spaceIdstring (required)
The ID of the space containing the release.
Response
200 — Resolved defect
Descriptionstring
Minimum length 1.Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.Statusenum
Allowed values:Unresolved,Resolved.
Example Response
{
"Description": "string",
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Status": "Unresolved"
}List all of the Deployments that belong to the given Release
GET /api
Also reachable at /api, /api.
Deployments will be ordered from most recent to least recent.
Path Parameters
releaseIdstring (required)
ID of the Release to load.spaceIdstring (required)
ID of the Space to which the Release belongs.
Query Parameters
skipinteger
Number of items to skip. Defaults to zero. Minimum0.takeinteger
Number of items to take. Defaults to 30. Minimum0.
Response
200 — The list of Deployments for the given Release.
Idstring
Gets or sets a unique identifier for this resource.ItemTypestringItemsarray of objectChangeRequestSettingsarray of objectChangesarray of objectChangesMarkdownstringChannelIdstringCommentsstringCreatedstring
Formatdate-time.DebugModestringDeployedBystringDeployedByIdstringDeployedToMachineIdsarray of stringDeploymentProcessIdstringEnvironmentIdstringExcludedMachineIdsarray of string
A collection of machines in the target environment that should be excluded from the deployment.ExcludedTargetTagIdsarray of string
A collection of target tag IDs that should be excluded from the deployment. Only deployment targets that have none of these tags will be deployed to. Tag IDs are in the format “TagSets-{id}/Tags-{id}”.ExecutionPlanLogContextobjectFailTargetDiscoverybooleanFailureEncounteredbooleanForcePackageDownloadbooleanForcePackageRedeploymentbooleanFormValuesobjectIdstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ManifestVariableSetIdstringNamestringPrioritystringProjectIdstringQueueTimestring
If set this time will be the used to schedule the deployment to a later time, null is assumed to mean the time will be executed immediately. Formatdate-time.QueueTimeExpirystring
Formatdate-time.ReleaseIdstringSkipActionsarray of stringSpaceIdstringSpecificMachineIdsarray of string
A collection of machines in the target environment that should be deployed to. If the collection is empty, all enabled machines are deployed.SpecificTargetTagIdsarray of string
A collection of target tag IDs that should be included in the deployment. Only deployment targets that have at least one of these tags will be deployed to. Tag IDs are in the format “TagSets-{id}/Tags-{id}”.TaskIdstringTenantIdstringTentacleRetentionPeriodobjectUseGuidedFailureboolean
If set to true, the deployment will prompt for manual intervention (Fail/Retry/Ignore) when failures are encountered in activities that support it. May be overridden with the Octopus.UseGuidedFailure special variable.
ItemsPerPageintegerLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LastPageNumberintegerLinksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NumberOfPagesintegerTotalResultsinteger
Example Response
{
"Id": "string",
"ItemType": "string",
"Items": [
{
"ChangeRequestSettings": [
{}
],
"Changes": [
{}
],
"ChangesMarkdown": "string",
"ChannelId": "Channels-1",
"Comments": "string",
"Created": "2020-01-01T00:00:00.000Z",
"DebugMode": "string",
"DeployedBy": "string",
"DeployedById": "string",
"DeployedToMachineIds": [
"string"
],
"DeploymentProcessId": "string",
"EnvironmentId": "Environments-1",
"ExcludedMachineIds": [
"string"
],
"ExcludedTargetTagIds": [
"string"
],
"ExecutionPlanLogContext": {
"Steps": [
{}
]
},
"FailTargetDiscovery": true,
"FailureEncountered": true,
"ForcePackageDownload": true,
"ForcePackageRedeployment": true,
"FormValues": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Deployments-1",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ManifestVariableSetId": "string",
"Name": "string",
"Priority": "string",
"ProjectId": "Projects-1",
"QueueTime": "2020-01-01T00:00:00.000Z",
"QueueTimeExpiry": "2020-01-01T00:00:00.000Z",
"ReleaseId": "Releases-1",
"SkipActions": [
"string"
],
"SpaceId": "Spaces-1",
"SpecificMachineIds": [
"string"
],
"SpecificTargetTagIds": [
"string"
],
"TaskId": "ServerTasks-1",
"TenantId": "Tenants-1",
"TentacleRetentionPeriod": {
"QuantityToKeep": 0,
"ShouldKeepForever": true,
"Strategy": "string",
"Unit": "Days"
},
"UseGuidedFailure": true
}
],
"ItemsPerPage": 0,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LastPageNumber": 0,
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NumberOfPages": 0,
"TotalResults": 0
}Get a document that describes what steps will/won’t be run during a deployment to a given environment (and tenant if supplied)
GET /api
Also reachable at /api, /api, /api, /api, /api.
Path Parameters
environmentIdstring (required)
ID of the environment.releaseIdstring (required)
ID of the release.spaceIdstring (required)
ID of the space containing the resources.
Query Parameters
includeDisabledStepsboolean
Whether to include Disabled Steps in the preview.tenantIdstring
ID of the tenant.
Response
200 — The requested Release Deployment Preview
Changesarray of objectBuildInformationarray of objectCommitsarray of object
Aggregate of distinct commits from all VersionMetadata.ReleaseNotesstringVersionstringWorkItemsarray of object
Aggregate of distinct work items from all VersionMetadata.
ChangesMarkdownstringFormobjectElementsarray of object
Elements of the form.Valuesobject
Values supplied for the form elements.
Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.StepsToExecutearray of objectActionIdstringActionNamestringActionNumberstringAvailableTagSetsarray of objectCanBeSkippedbooleanExcludedMachinesarray of objectHasNoApplicableMachinesbooleanIsDisabledbooleanMachineNamesarray of stringMachinesarray of objectRolesarray of stringUnavailableMachinesarray of object
UseGuidedFailureModeByDefaultboolean
Example Response
{
"Changes": [
{
"BuildInformation": [
{}
],
"Commits": [
{}
],
"ReleaseNotes": "string",
"Version": "string",
"WorkItems": [
{}
]
}
],
"ChangesMarkdown": "string",
"Form": {
"Elements": [
{
"Control": {},
"IsValueRequired": true,
"Name": "string"
}
],
"Values": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
},
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"StepsToExecute": [
{
"ActionId": "string",
"ActionName": "string",
"ActionNumber": "string",
"AvailableTagSets": [
{}
],
"CanBeSkipped": true,
"ExcludedMachines": [
{}
],
"HasNoApplicableMachines": true,
"IsDisabled": true,
"MachineNames": [
"string"
],
"Machines": [
{}
],
"Roles": [
"string"
],
"UnavailableMachines": [
{}
]
}
],
"UseGuidedFailureModeByDefault": true
}Return an array of documents that describes what steps will/won’t be run during deployments to a given set of environments and tenants
POST /api
Also reachable at /api, /api.
Path Parameters
releaseIdstring (required)
ID of the release.spaceIdstring (required)
ID of the space containing the resources.
Request Body
DeploymentPreviewsarray of object (required)
The array of requests you would like to make.EnvironmentIdstringTenantIdstring
IncludeDisabledStepsboolean
Whether to include Disabled Steps in the preview.ReleaseIdstring (required)
ID of the release.SpaceIdstring (required)
ID of the space containing the resources.
Response
200 — The requested array of Release Deployment Previews
Changesarray of objectBuildInformationarray of objectCommitsarray of object
Aggregate of distinct commits from all VersionMetadata.ReleaseNotesstringVersionstringWorkItemsarray of object
Aggregate of distinct work items from all VersionMetadata.
ChangesMarkdownstringFormobjectElementsarray of object
Elements of the form.Valuesobject
Values supplied for the form elements.
Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.StepsToExecutearray of objectActionIdstringActionNamestringActionNumberstringAvailableTagSetsarray of objectCanBeSkippedbooleanExcludedMachinesarray of objectHasNoApplicableMachinesbooleanIsDisabledbooleanMachineNamesarray of stringMachinesarray of objectRolesarray of stringUnavailableMachinesarray of object
UseGuidedFailureModeByDefaultboolean
Example Request
{
"DeploymentPreviews": [
{
"EnvironmentId": "Environments-1",
"TenantId": "Tenants-1"
}
],
"IncludeDisabledSteps": true,
"ReleaseId": "Releases-1",
"SpaceId": "Spaces-1"
}Example Response
[
{
"Changes": [
{
"BuildInformation": [
{}
],
"Commits": [
{}
],
"ReleaseNotes": "string",
"Version": "string",
"WorkItems": [
{}
]
}
],
"ChangesMarkdown": "string",
"Form": {
"Elements": [
{}
],
"Values": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
}
},
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"StepsToExecute": [
{
"ActionId": "string",
"ActionName": "string",
"ActionNumber": "string",
"AvailableTagSets": [
{}
],
"CanBeSkipped": true,
"ExcludedMachines": [
{}
],
"HasNoApplicableMachines": true,
"IsDisabled": true,
"MachineNames": [
"string"
],
"Machines": [
{}
],
"Roles": [
"string"
],
"UnavailableMachines": [
{}
]
}
],
"UseGuidedFailureModeByDefault": true
}
]Get the list of Packages that are missing from the built-in feed for a release
GET /api
Also reachable at /api.
Path Parameters
releaseIdstring (required)spaceIdstring (required)
Response
200 — The list of Packages from the built-in feed missing for a Release.
Packagesarray of objectIdstring
Minimum length 1.Versionstring
Minimum length 1.
Example Response
{
"Packages": [
{
"Id": "string",
"Version": "string"
}
]
}Get all of the information necessary for creating or editing a deployment for this release
GET /api
Also reachable at /api, /api.
Path Parameters
releaseIdstring (required)
Id of the release.spaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — Lifecycle progression information necessary for creating or editing a deployment for a release
Idstring
Gets or sets a unique identifier for this resource.LastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.NextDeploymentsarray of stringNextDeploymentsMinimumRequiredintegerPhasesarray of objectAutomaticDeploymentTargetsarray of stringBlockedbooleanDeploymentsarray of objectIdstringIsOptionalPhasebooleanIsPriorityPhasebooleanMinimumEnvironmentsBeforePromotionintegerNamestringOptionalDeploymentTargetsarray of stringProgressenum
Allowed values:Pending,Current,Complete.
Example Response
{
"Id": "string",
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"NextDeployments": [
"Environments-1",
"..."
],
"NextDeploymentsMinimumRequired": 0,
"Phases": [
{
"AutomaticDeploymentTargets": [
"Environments-1",
"..."
],
"Blocked": true,
"Deployments": [
{}
],
"Id": "string",
"IsOptionalPhase": true,
"IsPriorityPhase": true,
"MinimumEnvironmentsBeforePromotion": 0,
"Name": "string",
"OptionalDeploymentTargets": [
"Environments-1",
"..."
],
"Progress": "Pending"
}
]
}Update the release notes on an existing Release
POST /api
Also reachable at /api, /api.
Only the release notes are changed and everything else about the Release is left alone. Variable expressions in the notes are evaluated before they are stored, so the saved text is the resolved one.
Path Parameters
releaseIdstring (required)
Id of the release.spaceIdstring (required)
The ID of the space containing the resource(s).
Request Body
ReleaseIdstring (required)
The ID of the release, for example ‘Releases-123’.ReleaseNotesstring (required)
The notes to store, replacing whatever the release currently has. Markdown is supported. Build information is in scope, so expressions such as #{Octopus.Release.WorkItems} and #{Octopus.Release.Number} are resolved before the notes are saved. Send an empty string to clear them.SpaceIdstring (required)
The ID of the space containing the resource(s).
Response
200 — Confirmation that the release notes were updated, containing the updated Release
Assembledstring
Formatdate-time.BuildInformationarray of objectBranchstringBuildEnvironmentstringBuildNumberstringBuildUrlstringCommitsarray of objectIssueTrackerNamestringPackageIdstringVcsCommitNumberstringVcsCommitUrlstringVcsRootstringVcsTypestringVersionstringWorkItemsarray of object
ChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectActionNamestring
Minimum length 1.GitReferenceResourceobjectGitResourceReferenceNamestring
SelectedPackagesarray of objectActionNamestringPackageReferenceNamestringStepNamestringVersionstring
SpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobjectGitCommitstringGitRefstringVariablesGitCommitstring
Example Request
{
"ReleaseId": "Releases-1",
"ReleaseNotes": "string",
"SpaceId": "Spaces-1"
}Example Response
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{
"Branch": "string",
"BuildEnvironment": "string",
"BuildNumber": "string",
"BuildUrl": "string",
"Commits": [
{}
],
"IssueTrackerName": "string",
"PackageId": "string",
"VcsCommitNumber": "string",
"VcsCommitUrl": "string",
"VcsRoot": "string",
"VcsType": "string",
"Version": "string",
"WorkItems": [
{}
]
}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{
"ActionName": "string",
"GitReferenceResource": {
"GitCommit": "string",
"GitRef": "string"
},
"GitResourceReferenceName": "string"
}
],
"SelectedPackages": [
{
"ActionName": "string",
"PackageReferenceName": "string",
"StepName": "string",
"Version": "string"
}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}Update the Variable Snapshot for a Release
POST /api
Also reachable at /api, /api.
Path Parameters
releaseIdstring (required)spaceIdstring (required)
Request Body
ReleaseIdstring (required)SpaceIdstring (required)VariableSnapshotConcurrencyTokenstring
The VariableSnapshotConcurrencyToken read from the release. When supplied, the update fails with a conflict if the release’s variable snapshots have changed since. Omit to skip the check.
Response
200 — Confirmation that the Variable Snapshot for a Release was updated, containing the updated Release
Assembledstring
Formatdate-time.BuildInformationarray of objectBranchstringBuildEnvironmentstringBuildNumberstringBuildUrlstringCommitsarray of objectIssueTrackerNamestringPackageIdstringVcsCommitNumberstringVcsCommitUrlstringVcsRootstringVcsTypestringVersionstringWorkItemsarray of object
ChannelIdstringCustomFieldsobjectIdstring
Gets or sets a unique identifier for this resource.IgnoreChannelRulesbooleanLastModifiedBystring
Gets or sets the username of the user who last modified this resource.LastModifiedOnstring
Gets or sets the date/time that this resource was last modified. Formatdate-time.LibraryVariableSetSnapshotIdsarray of string
Snapshots of the project’s included library variable sets. The snapshots are VariableSetResources, not LibraryVariableSetResources.Linksobject
Gets or sets a dictionary of links to other related resources. These links can be used to navigate the resources on the server.ProjectDeploymentProcessSnapshotIdstringProjectIdstringProjectVariableSetSnapshotIdstringReleaseNotesstringSelectedGitResourcesarray of objectActionNamestring
Minimum length 1.GitReferenceResourceobjectGitResourceReferenceNamestring
SelectedPackagesarray of objectActionNamestringPackageReferenceNamestringStepNamestringVersionstring
SpaceIdstringVariableSnapshotConcurrencyTokenstring
Identifies the release’s current variable snapshots.Versionstring
Maximum length 349.VersionControlReferenceobjectGitCommitstringGitRefstringVariablesGitCommitstring
Example Request
{
"ReleaseId": "Releases-1",
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string"
}Example Response
{
"Assembled": "2020-01-01T00:00:00.000Z",
"BuildInformation": [
{
"Branch": "string",
"BuildEnvironment": "string",
"BuildNumber": "string",
"BuildUrl": "string",
"Commits": [
{}
],
"IssueTrackerName": "string",
"PackageId": "string",
"VcsCommitNumber": "string",
"VcsCommitUrl": "string",
"VcsRoot": "string",
"VcsType": "string",
"Version": "string",
"WorkItems": [
{}
]
}
],
"ChannelId": "Channels-1",
"CustomFields": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"Id": "Releases-1",
"IgnoreChannelRules": true,
"LastModifiedBy": "string",
"LastModifiedOn": "2020-01-01T00:00:00.000Z",
"LibraryVariableSetSnapshotIds": [
"string"
],
"Links": {
"additionalProp1": "string",
"additionalProp2": "string",
"additionalProp3": "string"
},
"ProjectDeploymentProcessSnapshotId": "string",
"ProjectId": "Projects-1",
"ProjectVariableSetSnapshotId": "string",
"ReleaseNotes": "string",
"SelectedGitResources": [
{
"ActionName": "string",
"GitReferenceResource": {
"GitCommit": "string",
"GitRef": "string"
},
"GitResourceReferenceName": "string"
}
],
"SelectedPackages": [
{
"ActionName": "string",
"PackageReferenceName": "string",
"StepName": "string",
"Version": "string"
}
],
"SpaceId": "Spaces-1",
"VariableSnapshotConcurrencyToken": "string",
"Version": "string",
"VersionControlReference": {
"GitCommit": "string",
"GitRef": "string",
"VariablesGitCommit": "string"
}
}