Orchestration Activities [Beta]
Create a new orchestration activity
Organisation Identifier
Project Identifier
Account Identifier
Response for successful orchestration activity creation
Error Response body
Error Response body
Error Response body
POST /api/orchestration/activity HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 200
{
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
},
"yaml": "text"
}{
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
},
"governanceMetadata": {
"accountId": "text",
"action": "text",
"created": "text",
"deny": true,
"details": [
{
"accountId": "text",
"created": "text",
"deny": true,
"description": "text",
"identifier": "text",
"orgId": "text",
"policyMetadata": [
{
"accountId": "text",
"created": "text",
"denyMessages": [
"text"
],
"error": "text",
"identifier": "text",
"orgId": "text",
"policyId": "text",
"policyName": "text",
"projectId": "text",
"severity": "text",
"status": "text",
"updated": "text"
}
],
"policySetId": "text",
"policySetName": "text",
"projectId": "text",
"status": "text"
}
],
"entity": "text",
"id": "text",
"message": "text",
"orgId": "text",
"projectId": "text",
"status": "text",
"timestamp": "text",
"type": "text"
},
"identifier": "text",
"yaml": "text"
}Get orchestration activities for specific activity refs
Organisation Identifier
Project Identifier
Cursor Based Pagination
The number of records expected
500Optional git branch to fetch remote activity YAMLs from
Account Identifier
Array of activity references
Response for listing orchestration activities by process identifer
Whether this is the last page of results
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/orchestration/activity/list HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"activityGitBranches": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"activityRefs": [
"text"
]
}{
"activities": [
{
"error": {
"code": "BAD_REQUEST",
"explanation": "text",
"governanceMetadata": {
"accountId": "text",
"action": "text",
"created": "text",
"deny": true,
"details": [
{
"accountId": "text",
"created": "text",
"deny": true,
"description": "text",
"identifier": "text",
"orgId": "text",
"policyMetadata": [
{
"accountId": "text",
"created": "text",
"denyMessages": [
"text"
],
"error": "text",
"identifier": "text",
"orgId": "text",
"policyId": "text",
"policyName": "text",
"projectId": "text",
"severity": "text",
"status": "text",
"updated": "text"
}
],
"policySetId": "text",
"policySetName": "text",
"projectId": "text",
"status": "text"
}
],
"entity": "text",
"id": "text",
"message": "text",
"orgId": "text",
"projectId": "text",
"status": "text",
"timestamp": "text",
"type": "text"
},
"message": "text",
"probable_fixes": [
"text"
]
},
"identifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"type": "PIPELINE",
"yaml": "text"
}
],
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
}
}Returns the pipeline input a pipeline activity runs with: the pipeline service merges the saved input sets, in order, with the activity's own pipeline input, and RMG restores the input set values the pipeline service drops when it replaces a runtime input block (e.g. serviceInputs when the service is chosen at run time) with the activity's partial one (see internal/core/pipeline_input). It is the same merge the activity runs with, so the activity form shows what the pipeline will receive. Expressions in the activity's input are kept as they are; they are resolved when the activity runs. Input set references must be input set identifiers, not expressions. Requires view access to the pipeline.
Organisation Identifier
Project Identifier
Account Identifier
Git branch of the pipeline, for remote pipelines
Input set identifiers, merged in this order
The activity's pipeline input (pipeline: YAML) applied on top of the input sets, if any
Pipeline of the activity, as org/project/pipeline
Stages the activity runs; all stages when empty
The merged pipeline input
Pipeline input of the input sets alone (pipeline: YAML)
Pipeline input the activity runs with, the input sets with the activity's input on top (pipeline: YAML)
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/orchestration/activity/merge-pipeline-inputs HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 222
{
"branch": "text",
"connectorRef": "text",
"inputSetReferences": [
"text"
],
"inputYaml": "text",
"parentEntityConnectorRef": "text",
"parentEntityRepoName": "text",
"pipeline": "text",
"repoIdentifier": "text",
"stageIdentifiers": [
"text"
]
}{
"inputSetsYaml": "text",
"mergedYaml": "text"
}Retrieve a paginated list of orchestration activities for a specific process identifier
The process identifier
Organisation Identifier
Project Identifier
Optional phase identifier to filter activities
Cursor Based Pagination
The number of records expected
500Account Identifier
Response for listing orchestration activities by process identifer
Whether this is the last page of results
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/activity/processIdentifier/{identifier} HTTP/1.1
Harness-Account: text
Accept: */*
{
"activities": [
{
"error": {
"code": "BAD_REQUEST",
"explanation": "text",
"governanceMetadata": {
"accountId": "text",
"action": "text",
"created": "text",
"deny": true,
"details": [
{
"accountId": "text",
"created": "text",
"deny": true,
"description": "text",
"identifier": "text",
"orgId": "text",
"policyMetadata": [
{
"accountId": "text",
"created": "text",
"denyMessages": [
"text"
],
"error": "text",
"identifier": "text",
"orgId": "text",
"policyId": "text",
"policyName": "text",
"projectId": "text",
"severity": "text",
"status": "text",
"updated": "text"
}
],
"policySetId": "text",
"policySetName": "text",
"projectId": "text",
"status": "text"
}
],
"entity": "text",
"id": "text",
"message": "text",
"orgId": "text",
"projectId": "text",
"status": "text",
"timestamp": "text",
"type": "text"
},
"message": "text",
"probable_fixes": [
"text"
]
},
"identifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"type": "PIPELINE",
"yaml": "text"
}
],
"last": true,
"nextRequest": {
"cursor": "text",
"limit": 1
}
}Resolve activity YAML for process activity instances in a single phase with correct per-instance git branch resolution (activity pin → same-repo process branch → activity default). phaseIdentifier is required so the response map can be keyed by activity instance id. When activityDetails is omitted, instances are collected from the persisted process YAML for that phase. When activityDetails is provided (e.g. unsaved studio edits), each entry must include identifier and activityRef. If the process is not found and activityDetails is provided, resolution continues using optional processGitRepo/processBranch from the request. If the process exists and processGitRepo is sent, it must match the stored repo.
Organisation Identifier
Project Identifier
Account Identifier
Phase whose activity instances are being resolved. Required so response map keys (process activity instance ids) are unique within the phase.
Branch the process YAML was loaded from; used for same-repo activity branch inherit
Optional git repository of the process for same-repo activity branch inherit. Use when the process is not yet persisted (e.g. new studio process) or to supply repo context alongside processBranch. When the process exists in the database and this field is set, it must match the process's stored git repo.
Identifier of the process used for git repo context and (when activityDetails is omitted) instance collection
Map of process activity instance identifier to resolved activity details
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/orchestration/activity/resolve-for-process HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 187
{
"activityDetails": [
{
"activityBranch": "text",
"activityRef": "text",
"identifier": "text"
}
],
"phaseIdentifier": "text",
"processBranch": "text",
"processGitRepo": "text",
"processIdentifier": "text"
}{
"activities": {
"ANY_ADDITIONAL_PROPERTY": {
"error": {
"code": "BAD_REQUEST",
"explanation": "text",
"governanceMetadata": {
"accountId": "text",
"action": "text",
"created": "text",
"deny": true,
"details": [
{
"accountId": "text",
"created": "text",
"deny": true,
"description": "text",
"identifier": "text",
"orgId": "text",
"policyMetadata": [
{
"accountId": "text",
"created": "text",
"denyMessages": [
"text"
],
"error": "text",
"identifier": "text",
"orgId": "text",
"policyId": "text",
"policyName": "text",
"projectId": "text",
"severity": "text",
"status": "text",
"updated": "text"
}
],
"policySetId": "text",
"policySetName": "text",
"projectId": "text",
"status": "text"
}
],
"entity": "text",
"id": "text",
"message": "text",
"orgId": "text",
"projectId": "text",
"status": "text",
"timestamp": "text",
"type": "text"
},
"message": "text",
"probable_fixes": [
"text"
]
},
"identifier": "text",
"orgIdentifier": "text",
"projectIdentifier": "text",
"type": "PIPELINE",
"yaml": "text"
}
}
}Retrieve a paginated list of orchestration activities
Organisation Identifier
Project Identifier
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"]}Optional search string to filter releases by name.
Account Identifier
Paginated list of orchestration activities
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/activity/summary HTTP/1.1
Harness-Account: text
Accept: */*
{
"content": [
{
"createdAt": 1,
"createdBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"description": "text",
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
},
"identifier": "text",
"lastUpdatedAt": 1,
"lastUpdatedBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"name": "text",
"type": "PIPELINE"
}
],
"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
}Process actions (retry/ignore) for activities in ON_HOLD state
The ID of the activity execution
Organisation Identifier
Project Identifier
Account Identifier
The action to perform on the on-hold activity. Must be 'retry' if retryWith is present.
Specifies the retry mechanism. If present, action must be 'retry'. Currently only SUBPROCESS is supported.
On-hold activity action processed successfully
The action that was performed
The ID of the processed activity execution
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/orchestration/activity/{activityExecutionId}/onhold/action HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 424
{
"action": "retry",
"inputs": [
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"name": "text",
"optional": true,
"readOnly": true,
"type": "string",
"value": "text"
}
],
"outputs": [
{
"description": "text",
"items": "string",
"name": "text",
"type": "string",
"value": "text"
}
],
"retryWith": "SUBPROCESS",
"subprocessInfo": {
"output": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"processIdentifier": "text",
"processInputIdentifier": "text",
"releaseInput": "text"
}
}{
"action": "text",
"activityExecutionId": "text"
}Retrieve input definitions and values for a specific activity within a process input configuration
The referred activity in process yaml
Organisation Identifier
Project Identifier
Account Identifier
Response containing activity input definitions with their values and metadata
Enhanced response structure for activity inputs
activityInput Yaml string
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/activity/{activityRef}/inputs HTTP/1.1
Harness-Account: text
Accept: */*
{
"activityInput": "text"
}Get orchestration activity by identifier
Identifier of the orchestration activity
Organisation Identifier
Project Identifier
Optional git branch to fetch the activity YAML from (for remote/git-backed activities)
Account Identifier
Response for Get Orchestration Activity API
Identifier of the orchestration activity
YAML representation of the orchestration activity
Error Response body
Error Response body
Error Response body
GET /api/orchestration/activity/{identifier} HTTP/1.1
Harness-Account: text
Accept: */*
{
"cache_response": {
"cache_state": "VALID_CACHE",
"is_sync_enabled": true,
"last_updated_at": 1,
"ttl_left": 1
},
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
},
"identifier": "text",
"yaml": "text"
}Update an orchestration activity with the provided YAML configuration
The identifier of the orchestration activity to update
Organisation Identifier
Project Identifier
Account Identifier
Response for successful orchestration activity update
Identifier of the updated orchestration activity
YAML configuration of the updated orchestration activity
Error Response body
Error Response body
Error Response body
Error Response body
PUT /api/orchestration/activity/{identifier} HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 200
{
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
},
"yaml": "text"
}{
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
},
"governanceMetadata": {
"accountId": "text",
"action": "text",
"created": "text",
"deny": true,
"details": [
{
"accountId": "text",
"created": "text",
"deny": true,
"description": "text",
"identifier": "text",
"orgId": "text",
"policyMetadata": [
{
"accountId": "text",
"created": "text",
"denyMessages": [
"text"
],
"error": "text",
"identifier": "text",
"orgId": "text",
"policyId": "text",
"policyName": "text",
"projectId": "text",
"severity": "text",
"status": "text",
"updated": "text"
}
],
"policySetId": "text",
"policySetName": "text",
"projectId": "text",
"status": "text"
}
],
"entity": "text",
"id": "text",
"message": "text",
"orgId": "text",
"projectId": "text",
"status": "text",
"timestamp": "text",
"type": "text"
},
"identifier": "text",
"yaml": "text"
}Delete an orchestration activity by identifier
The identifier of the orchestration activity to delete
Organisation Identifier
Project Identifier
Account Identifier
Orchestration activity deleted successfully
No content
Error Response body
Error Response body
Error Response body
Error Response body
DELETE /api/orchestration/activity/{identifier} HTTP/1.1
Harness-Account: text
Accept: */*
No content
Retrieve metadata for an orchestration activity without its YAML content
Identifier of the orchestration activity
Organisation Identifier
Project Identifier
Account Identifier
Metadata for a single orchestration activity (no YAML)
Type of orchestration activity
Error Response body
Error Response body
Error Response body
Error Response body
GET /api/orchestration/activity/{identifier}/metadata HTTP/1.1
Harness-Account: text
Accept: */*
{
"createdAt": 1,
"createdBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"description": "text",
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
},
"identifier": "text",
"lastUpdatedAt": 1,
"lastUpdatedBy": {
"email": "text",
"identifier": "text",
"name": "text"
},
"name": "text",
"type": "PIPELINE"
}Move an inline orchestration activity to a remote git repository. Activities already stored remotely cannot be moved.
The identifier of the orchestration activity to move
Organisation Identifier
Project Identifier
Account Identifier
Response for Get Orchestration Activity API
Identifier of the orchestration activity
YAML representation of the orchestration activity
Error Response body
Error Response body
Error Response body
Error Response body
Error Response body
POST /api/orchestration/activity/{identifier}/move-config HTTP/1.1
Harness-Account: text
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
}
}{
"cache_response": {
"cache_state": "VALID_CACHE",
"is_sync_enabled": true,
"last_updated_at": 1,
"ttl_left": 1
},
"git_details": {
"base_branch": "text",
"branch": "text",
"commit_msg": "text",
"connector_ref": "text",
"file_url": "text",
"is_new_branch": true,
"path": "text",
"repo": "text",
"store_type": "INLINE"
},
"identifier": "text",
"yaml": "text"
}Last updated
Was this helpful?