Releases [Beta]
Create an ad hoc release with a linked orchestration process, bypassing the standard release group cadence.
Organisation Identifier
Project Identifier
Account Identifier
Hex color code for the release
Optional description
Expected end timestamp in milliseconds
Expected start timestamp in milliseconds
Unique identifier for the ad hoc release
Name of the ad hoc release
Git branch used to read the orchestration process definition for this release. Required when the process is stored in Git.
Identifier of the orchestration process
Identifier of the orchestration process input (optional)
Version of the ad hoc release
Ad hoc release created successfully
ID of the created release
Identifier of the created release
Error Response body
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/release/adhoc HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 253
{
"color": "text",
"description": "text",
"expectedEndTs": 1,
"expectedStartTs": 1,
"identifier": "text",
"name": "text",
"processGitBranch": "text",
"processIdentifier": "text",
"processInputIdentifier": "text",
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"version": "text"
}{
"id": "text",
"identifier": "text"
}Fetch a list of activities based on the startTime, endTime and release Id for a day view
Organisation Identifier
Project Identifier
The number of records expected
500Cursor Based Pagination
Account Identifier
Successful response
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/release/calendar/{releaseId}/activities?startTs=1&endTs=1 HTTP/1.1
Harness-Account: text
Accept: */*
{
"activities": [
{
"accountId": "text",
"id": "text",
"orgIdentifier": "text",
"pipelineIdentifier": "text",
"pipelineName": "text",
"planExecutionId": "text",
"projectIdentifier": "text",
"stageInfo": {
"endTs": 1,
"identifier": "text",
"info": {
"artifactDisplayName": "text",
"envId": "text",
"envName": "text",
"serviceId": "text",
"serviceName": "text"
},
"name": "text",
"stageExecutionId": "text",
"stageNodeId": "text",
"startTs": 1,
"status": "ABORTED",
"type": "CD"
},
"stepInfo": {
"endTs": 1,
"identifier": "text",
"info": {
"approvalAction": "text",
"approvedAt": 1,
"approvedByEmail": "text",
"approvedByName": "text",
"comments": "text",
"issueType": "text",
"jiraUrl": "text",
"ticketStatus": "text"
},
"name": "text",
"stageExecutionId": "text",
"stageNodeId": "text",
"startTs": 1,
"status": "ABORTED",
"stepExecutionId": "text",
"type": "HarnessApproval"
},
"triggeredBy": {
"avatar": "text",
"email": "text",
"id": "text",
"name": "text",
"triggerType": "MANUAL"
},
"type": "stage"
}
],
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
}
}Fetch paginated list of releases with sorting support. Uses standard page/size pagination instead of cursor-based.
Sort parameters as an array. Format: [field_name, direction] where direction is asc or desc.
Supported fields: start_ts, startTs, end_ts, endTs, last_updated_at, lastUpdatedAt, created_at, createdAt, name, identifier, status, type.
When used in query params, use format: sort=field_name&sort=direction (e.g., sort=start_ts&sort=desc).
{"value":["created_at","asc"]}Expected start time in milliseconds (Unix timestamp)
Expected end time in milliseconds (Unix timestamp)
Optional search string to filter releases by name.
Optional list of release group IDs to filter by
Optional release type filter (Orchestration or Tracking)
Optional release source filter (ADHOC or RECURRING)
Account Identifier
Paginated list of releases
Whether the page is empty
Whether this is the first page
Whether this is the last page
Current page number (zero-indexed)
Number of elements in current page
Page size
Total number of releases
Total number of pages
Error Response body
Error Response body
Error Response body
POST /api/release/list?expectedStartTs=1&expectedEndTs=1 HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"scopes": [
{
"orgIdentifier": "text",
"projectIdentifier": "text"
}
]
}{
"content": [
{
"actualEndTs": 1,
"actualStartTs": 1,
"color": "text",
"createdAt": 1,
"createdBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"expectedEndTs": 1,
"expectedStartTs": 1,
"hasConflict": true,
"id": "text",
"identifier": "text",
"lastUpdatedAt": 1,
"lastUpdatedBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"name": "text",
"processGitBranch": "text",
"processIdentifier": "text",
"processInputIdentifier": "text",
"releaseGroupId": "text",
"source": "ADHOC",
"status": "Running",
"triggeredBy": {
"avatar": "text",
"email": "text",
"id": "text",
"name": "text",
"triggerType": "MANUAL"
},
"version": "text"
}
],
"empty": true,
"first": true,
"last": true,
"number": 1,
"numberOfElements": 1,
"pageable": {
"offset": 1,
"pageNumber": 1,
"pageSize": 1,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 1,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 1,
"totalPages": 1
}Fetch a list of releases based on the specified time ranges, optional filters, and search query.
Optional search string to filter releases by name.
Optional list of release group IDs to filter by
Optional release type filter (Orchestration or Tracking)
Optional release source filter (ADHOC or RECURRING)
Account Identifier
Returns a list of releaseEntities
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/release/summary HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"scopes": [
{
"orgIdentifier": "text",
"projectIdentifier": "text"
}
],
"timeRanges": [
{
"cursor": "text",
"endTime": 1,
"limit": 1,
"startTime": 1
}
]
}{
"last": true,
"nextRequest": [
{
"cursor": "text",
"endTime": 1,
"limit": 1,
"startTime": 1
}
],
"releases": [
{
"actualEndTs": 1,
"actualStartTs": 1,
"color": "text",
"createdAt": 1,
"createdBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"expectedEndTs": 1,
"expectedStartTs": 1,
"hasConflict": true,
"id": "text",
"identifier": "text",
"lastUpdatedAt": 1,
"lastUpdatedBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"name": "text",
"processGitBranch": "text",
"processIdentifier": "text",
"processInputIdentifier": "text",
"releaseGroupId": "text",
"source": "ADHOC",
"status": "Running",
"triggeredBy": {
"avatar": "text",
"email": "text",
"id": "text",
"name": "text",
"triggerType": "MANUAL"
},
"version": "text"
}
]
}Gets the release information for a given release
Account Identifier
Response for the single release information
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/release/{releaseId} HTTP/1.1
Harness-Account: text
Accept: */*
{
"parentReleases": [
{
"activityIdentifier": "text",
"activityName": "text",
"id": "text",
"identifier": "text",
"processIdentifier": "text",
"processName": "text"
}
],
"releaseInfo": {
"actualEndTs": 1,
"actualStartTs": 1,
"color": "text",
"createdAt": 1,
"createdBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"expectedEndTs": 1,
"expectedStartTs": 1,
"hasConflict": true,
"id": "text",
"identifier": "text",
"lastUpdatedAt": 1,
"lastUpdatedBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"name": "text",
"processGitBranch": "text",
"processIdentifier": "text",
"processInputIdentifier": "text",
"releaseGroupId": "text",
"source": "ADHOC",
"status": "Running",
"triggeredBy": {
"avatar": "text",
"email": "text",
"id": "text",
"name": "text",
"triggerType": "MANUAL"
},
"version": "text"
},
"yaml": "text"
}Account Identifier
Identifier of the orchestration process
Identifier of the orchestration process input
Response for updating releases
Error Response body
Error Response body
Error Response body
Error Response body
PUT /api/release/{releaseId} HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"duration": "text",
"processIdentifier": "text",
"processInputIdentifier": "text",
"startTs": 1,
"yaml": "text"
}{
"id": "text",
"yaml": "text"
}Delete a release. For ADHOC releases, deletes both the release and its stub release group. For RECURRING releases, deletes only the release. The identifier can be either the slug_id or UUID of the release. Only releases in Scheduled or InputWaiting state can be deleted. Cannot delete releases in Running or Paused states.
Organisation Identifier
Project Identifier
Account Identifier
Release deleted successfully
No content
Error Response body
Error Response body
Error Response body
Error Response body
DELETE /api/release/{releaseId} HTTP/1.1
Harness-Account: text
Accept: */*
No content
Executes an action on a release (e.g., abort)
Unique identifier for the release
Organisation Identifier
Project Identifier
Account Identifier
Action to perform on the release
Message explaining the reason for the action (e.g., why the release is being aborted)
Production issue detected - rolling back due to memory leakRelease action executed successfully
ID of the release
ID of the execution that was interrupted
New status of the release
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/release/{releaseId}/action HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"action": "Abort",
"message": "Production issue detected - rolling back due to memory leak"
}{
"id": "text",
"interruptedExecutionId": "text",
"status": "text"
}Fetch a list of activities based on the startTime, endTime and release Id.
Organisation Identifier
Project Identifier
The number of records expected
500Cursor Based Pagination
Account Identifier
Successful response
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/release/{releaseId}/activities?startTs=1&endTs=1 HTTP/1.1
Harness-Account: text
Accept: */*
{
"activities": [
{
"accountId": "text",
"id": "text",
"orgIdentifier": "text",
"pipelineIdentifier": "text",
"pipelineName": "text",
"planExecutionId": "text",
"projectIdentifier": "text",
"stageInfo": {
"endTs": 1,
"identifier": "text",
"info": {
"artifactDisplayName": "text",
"envId": "text",
"envName": "text",
"serviceId": "text",
"serviceName": "text"
},
"name": "text",
"stageExecutionId": "text",
"stageNodeId": "text",
"startTs": 1,
"status": "ABORTED",
"type": "CD"
},
"stepInfo": {
"endTs": 1,
"identifier": "text",
"info": {
"approvalAction": "text",
"approvedAt": 1,
"approvedByEmail": "text",
"approvedByName": "text",
"comments": "text",
"issueType": "text",
"jiraUrl": "text",
"ticketStatus": "text"
},
"name": "text",
"stageExecutionId": "text",
"stageNodeId": "text",
"startTs": 1,
"status": "ABORTED",
"stepExecutionId": "text",
"type": "HarnessApproval"
},
"triggeredBy": {
"avatar": "text",
"email": "text",
"id": "text",
"name": "text",
"triggerType": "MANUAL"
},
"type": "stage"
}
],
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
}
}Organisation Identifier
Project Identifier
Optional search string to filter releases by name.
Sort parameters as an array. Format: [field_name, direction] where direction is asc or desc.
Supported fields: start_ts, startTs, end_ts, endTs, last_updated_at, lastUpdatedAt, created_at, createdAt, name, identifier, status, type.
When used in query params, use format: sort=field_name&sort=direction (e.g., sort=start_ts&sort=desc).
{"value":["created_at","asc"]}Account Identifier
Release Approvals Details
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/release/{releaseId}/approvals HTTP/1.1
Harness-Account: text
Accept: */*
{
"content": [
{
"approvalInfo": {
"approvedAt": 1,
"approvedBy": {
"email": "text",
"name": "text"
},
"comments": "text"
},
"name": "text",
"nodeExecutionId": "text",
"orgIdentifier": "text",
"pipelineIdentifier": "text",
"pipelineName": "text",
"planExecutionId": "text",
"projectIdentifier": "text",
"runSequenceId": 1,
"status": "ABORTED",
"type": "HarnessApproval"
}
],
"empty": true,
"first": true,
"last": true,
"number": 1,
"numberOfElements": 1,
"pageable": {
"offset": 1,
"pageNumber": 1,
"pageSize": 1,
"paged": true,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"unpaged": true
},
"size": 1,
"sort": {
"empty": true,
"sorted": true,
"unsorted": true
},
"totalElements": 1,
"totalPages": 1
}Gets the environment dashboard for the given release
Optional search string to filter releases by name.
List of environment identifiers
List of infrastructure identifiers
Account Identifier
Response for the environment dashboard screen
Error Response body
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/release/{releaseId}/environmentDashboard HTTP/1.1
Harness-Account: text
Accept: */*
{
"environments": [
{
"clusters": [
{
"agentIdentifier": "text",
"clusterIdentifier": "text",
"infraIdentifier": "text",
"infraName": "text",
"services": [
{
"artifactVersion": "text",
"identifier": "text",
"name": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"scope": "account"
}
]
}
],
"identifier": "text",
"infrastructures": [
{
"identifier": "text",
"name": "text",
"services": [
{
"artifactVersion": "text",
"identifier": "text",
"name": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"scope": "account"
}
]
}
],
"name": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"scope": "account",
"type": "PreProduction"
}
]
}Api to fetch the list of environments for release
Next token for fetching the environment
The number of records expected
500Optional variable to filter environments based on the given prefix
Account Identifier
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/release/{releaseId}/environments HTTP/1.1
Harness-Account: text
Accept: */*
{
"environments": [
{
"identifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text"
}
],
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
}
}Triggers a subprocess release from a task within the specified release
Unique identifier for the release
Organisation Identifier
Project Identifier
The user_reference_id of the task that triggers the subprocess
Account Identifier
Response of subprocess trigger API
ID of the newly created activity execution
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/release/{releaseId}/subprocess/trigger?task_id=text HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"subprocessInfo": {
"output": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"processIdentifier": "text",
"processInputIdentifier": "text",
"releaseInput": "text"
}
}{
"activityExecutionId": "text"
}Fetch a paginated list of tasks from Manual Activities for a release with cursor-based pagination and optional status filtering.
Release ID
Organisation Identifier
Project Identifier
Cursor Based Pagination
The number of records expected
500Account Identifier
Successful response for release tasks
Whether this is the last page of results
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/release/{releaseId}/tasks HTTP/1.1
Harness-Account: text
Accept: */*
{
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
},
"tasks": [
{
"actualDuration": "text",
"createdAt": 1,
"description": "text",
"execute": {
"processes": "all"
},
"expectedDuration": "text",
"failureInfo": {
"code": "text",
"msg": "text"
},
"identifier": "text",
"lastUpdatedAt": 1,
"name": "text",
"required": true,
"status": "TODO",
"taskExecutionId": "text",
"userGroups": "text"
}
]
}Last updated
Was this helpful?