Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Releases [Beta]

Create Ad Hoc Release

post

Create an ad hoc release with a linked orchestration process, bypassing the standard release group cadence.

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
colorstringOptional

Hex color code for the release

descriptionstringOptional

Optional description

expectedEndTsintegerRequired

Expected end timestamp in milliseconds

expectedStartTsintegerRequired

Expected start timestamp in milliseconds

identifierstringRequired

Unique identifier for the ad hoc release

namestringRequired

Name of the ad hoc release

processGitBranchstringOptional

Git branch used to read the orchestration process definition for this release. Required when the process is stored in Git.

processIdentifierstringRequired

Identifier of the orchestration process

processInputIdentifierstringOptional

Identifier of the orchestration process input (optional)

versionstringRequired

Version of the ad hoc release

Responses
201

Ad hoc release created successfully

application/json
idstringRequired

ID of the created release

identifierstringRequired

Identifier of the created release

post/release/adhoc
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 Release Activities Day Wise

get

Fetch a list of activities based on the startTime, endTime and release Id for a day view

Path parameters
releaseIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

startTsintegerRequired
endTsintegerRequired
limitnumber · max: 500Optional

The number of records expected

Default: 500
cursorstringOptional

Cursor Based Pagination

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successful response

application/json
lastbooleanRequired
get/release/calendar/{releaseId}/activities
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
  }
}

List Releases with Pagination

post

Fetch paginated list of releases with sorting support. Uses standard page/size pagination instead of cursor-based.

Query parameters
pageintegerOptional
sizeintegerOptional
sortstring[]Optional

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).

Example: {"value":["created_at","asc"]}
expectedStartTsintegerRequired

Expected start time in milliseconds (Unix timestamp)

expectedEndTsintegerRequired

Expected end time in milliseconds (Unix timestamp)

searchTermstringOptional

Optional search string to filter releases by name.

releaseGroupIdsstring[]Optional

Optional list of release group IDs to filter by

typestring · enumOptional

Optional release type filter (Orchestration or Tracking)

Possible values:
sourcestring · enumOptional

Optional release source filter (ADHOC or RECURRING)

Possible values:
Header parameters
Harness-AccountstringRequired

Account Identifier

Body
Responses
200

Paginated list of releases

application/json
emptybooleanRequired

Whether the page is empty

firstbooleanRequired

Whether this is the first page

lastbooleanRequired

Whether this is the last page

numberintegerRequired

Current page number (zero-indexed)

numberOfElementsintegerRequired

Number of elements in current page

sizeintegerRequired

Page size

totalElementsinteger · int64Required

Total number of releases

totalPagesintegerRequired

Total number of pages

post/release/list
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 Release Summary

post

Fetch a list of releases based on the specified time ranges, optional filters, and search query.

Query parameters
searchTermstringOptional

Optional search string to filter releases by name.

releaseGroupIdsstring[]Optional

Optional list of release group IDs to filter by

typestring · enumOptional

Optional release type filter (Orchestration or Tracking)

Possible values:
sourcestring · enumOptional

Optional release source filter (ADHOC or RECURRING)

Possible values:
Header parameters
Harness-AccountstringRequired

Account Identifier

Body
Responses
200

Returns a list of releaseEntities

application/json
lastbooleanOptional
post/release/summary
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"
    }
  ]
}

Fetch Release Information

get

Gets the release information for a given release

Path parameters
releaseIdstringRequired
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response for the single release information

application/json
yamlstringRequired
get/release/{releaseId}
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"
}

Update a single release

put
Path parameters
releaseIdstringRequired
Header parameters
Harness-AccountstringRequired

Account Identifier

Body
durationstringRequired
processIdentifierstringOptional

Identifier of the orchestration process

processInputIdentifierstringOptional

Identifier of the orchestration process input

startTsintegerRequired
yamlstringRequired
Responses
200

Response for updating releases

application/json
idstringRequired
yamlstringRequired
put/release/{releaseId}
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 Release

delete

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.

Path parameters
releaseIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
204

Release deleted successfully

No content

delete/release/{releaseId}
DELETE /api/release/{releaseId} HTTP/1.1
Harness-Account: text
Accept: */*

No content

Execute Action on Release

post

Executes an action on a release (e.g., abort)

Path parameters
releaseIdstringRequired

Unique identifier for the release

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
actionstring · enumRequired

Action to perform on the release

Possible values:
messagestringRequired

Message explaining the reason for the action (e.g., why the release is being aborted)

Example: Production issue detected - rolling back due to memory leak
Responses
200

Release action executed successfully

application/json
idstringRequired

ID of the release

interruptedExecutionIdstringOptional

ID of the execution that was interrupted

statusstringRequired

New status of the release

post/release/{releaseId}/action
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 Release Activities

get

Fetch a list of activities based on the startTime, endTime and release Id.

Path parameters
releaseIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

startTsintegerRequired
endTsintegerRequired
limitnumber · max: 500Optional

The number of records expected

Default: 500
cursorstringOptional

Cursor Based Pagination

statusstring[]Optional
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successful response

application/json
lastbooleanRequired
get/release/{releaseId}/activities
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
  }
}

Fetch approvals activity for a release

get
Path parameters
releaseIdstringRequired
Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

searchTermstringOptional

Optional search string to filter releases by name.

statusstring[]Optional
pageintegerOptional
sizeintegerOptional
sortstring[]Optional

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).

Example: {"value":["created_at","asc"]}
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Release Approvals Details

application/json
emptybooleanRequired
firstbooleanRequired
lastbooleanRequired
numberintegerRequired
numberOfElementsintegerRequired
sizeintegerRequired
totalElementsintegerRequired
totalPagesintegerRequired
get/release/{releaseId}/approvals
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
}

Environment Dashbaord for a release

get

Gets the environment dashboard for the given release

Path parameters
releaseIdstringRequired
Query parameters
searchTermstringOptional

Optional search string to filter releases by name.

environmentIdentifiersstring[]Optional

List of environment identifiers

infrastructureIdentifiersstring[]Optional

List of infrastructure identifiers

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response for the environment dashboard screen

application/json
get/release/{releaseId}/environmentDashboard
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"
    }
  ]
}

Fetch the list of environments for release

get

Api to fetch the list of environments for release

Path parameters
releaseIdstringRequired
Query parameters
cursorstringOptional

Next token for fetching the environment

limitnumber · max: 500Optional

The number of records expected

Default: 500
searchTermstringOptional

Optional variable to filter environments based on the given prefix

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200Success
application/json
lastbooleanRequired
get/release/{releaseId}/environments
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
  }
}

Trigger Subprocess from Task

post

Triggers a subprocess release from a task within the specified release

Path parameters
releaseIdstringRequired

Unique identifier for the release

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

task_idstringRequired

The user_reference_id of the task that triggers the subprocess

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
Responses
200

Response of subprocess trigger API

application/json
activityExecutionIdstringRequired

ID of the newly created activity execution

post/release/{releaseId}/subprocess/trigger
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 Release Tasks

get

Fetch a paginated list of tasks from Manual Activities for a release with cursor-based pagination and optional status filtering.

Path parameters
releaseIdstringRequired

Release ID

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

cursorstringOptional

Cursor Based Pagination

limitnumber · max: 500Optional

The number of records expected

Default: 500
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Successful response for release tasks

application/json
lastbooleanRequired

Whether this is the last page of results

get/release/{releaseId}/tasks
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?