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

Orchestration Activities [Beta]

Create Orchestration Activity

post

Create a new orchestration activity

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
yamlstringRequired
Responses
200

Response for successful orchestration activity creation

application/json
identifierstringRequired
yamlstringRequired
post/orchestration/activity
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 by activity refs

post

Get orchestration activities for specific activity refs

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

cursorstringOptional

Cursor Based Pagination

limitnumber · max: 500Optional

The number of records expected

Default: 500
git_branchstringOptional

Optional git branch to fetch remote activity YAMLs from

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
activityRefsstring[]Required

Array of activity references

Responses
200

Response for listing orchestration activities by process identifer

application/json
lastbooleanRequired

Whether this is the last page of results

post/orchestration/activity/list
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
  }
}

Merge the pipeline inputs of a pipeline activity

post

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.

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
branchstringOptional

Git branch of the pipeline, for remote pipelines

connectorRefstringOptional
inputSetReferencesstring[] · min: 1Required

Input set identifiers, merged in this order

inputYamlstringOptional

The activity's pipeline input (pipeline: YAML) applied on top of the input sets, if any

parentEntityConnectorRefstringOptional
parentEntityRepoNamestringOptional
pipelinestringRequired

Pipeline of the activity, as org/project/pipeline

repoIdentifierstringOptional
stageIdentifiersstring[]Optional

Stages the activity runs; all stages when empty

Responses
200

The merged pipeline input

application/json
inputSetsYamlstringRequired

Pipeline input of the input sets alone (pipeline: YAML)

mergedYamlstringRequired

Pipeline input the activity runs with, the input sets with the activity's input on top (pipeline: YAML)

post/orchestration/activity/merge-pipeline-inputs
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"
}

List Orchestration Activities by Process Identifier

get

Retrieve a paginated list of orchestration activities for a specific process identifier

Path parameters
identifierstringRequired

The process identifier

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

phaseIdentifierstringOptional

Optional phase identifier to filter activities

cursorstringOptional

Cursor Based Pagination

limitnumber · max: 500Optional

The number of records expected

Default: 500
Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response for listing orchestration activities by process identifer

application/json
lastbooleanRequired

Whether this is the last page of results

get/orchestration/activity/processIdentifier/{identifier}
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 orchestration activities for a process

post

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.

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
phaseIdentifierstring · min: 1Required

Phase whose activity instances are being resolved. Required so response map keys (process activity instance ids) are unique within the phase.

processBranchstringOptional

Branch the process YAML was loaded from; used for same-repo activity branch inherit

processGitRepostringOptional

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.

processIdentifierstringRequired

Identifier of the process used for git repo context and (when activityDetails is omitted) instance collection

Responses
200

Map of process activity instance identifier to resolved activity details

application/json
post/orchestration/activity/resolve-for-process
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"
    }
  }
}

Fetch List of Orchestration Activities

get

Retrieve a paginated list of orchestration activities

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

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"]}
searchTermstringOptional

Optional search string to filter releases by name.

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Paginated list of orchestration activities

application/json
emptybooleanRequired
firstbooleanRequired
lastbooleanRequired
numberintegerRequired
numberOfElementsintegerRequired
sizeintegerRequired
totalElementsintegerRequired
totalPagesintegerRequired
get/orchestration/activity/summary
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
}

Handle On-Hold Activity Action

post

Process actions (retry/ignore) for activities in ON_HOLD state

Path parameters
activityExecutionIdstringRequired

The ID of the activity execution

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
actionstring · enumRequired

The action to perform on the on-hold activity. Must be 'retry' if retryWith is present.

Possible values:
retryWithstring · enumOptional

Specifies the retry mechanism. If present, action must be 'retry'. Currently only SUBPROCESS is supported.

Possible values:
Responses
200

On-hold activity action processed successfully

application/json
actionstringOptional

The action that was performed

activityExecutionIdstringOptional

The ID of the processed activity execution

post/orchestration/activity/{activityExecutionId}/onhold/action
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"
}

Get Activity Inputs by Activity Ref

get

Retrieve input definitions and values for a specific activity within a process input configuration

Path parameters
activityRefstringRequired

The referred activity in process yaml

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response containing activity input definitions with their values and metadata

application/json

Enhanced response structure for activity inputs

activityInputstringRequired

activityInput Yaml string

get/orchestration/activity/{activityRef}/inputs
GET /api/orchestration/activity/{activityRef}/inputs HTTP/1.1
Harness-Account: text
Accept: */*
{
  "activityInput": "text"
}

Get Orchestration Activity

get

Get orchestration activity by identifier

Path parameters
identifierstringRequired

Identifier of the orchestration activity

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

git_branchstringOptional

Optional git branch to fetch the activity YAML from (for remote/git-backed activities)

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Response for Get Orchestration Activity API

application/json
identifierstringRequired

Identifier of the orchestration activity

yamlstringRequired

YAML representation of the orchestration activity

get/orchestration/activity/{identifier}
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 Orchestration Activity

put

Update an orchestration activity with the provided YAML configuration

Path parameters
identifierstringRequired

The identifier of the orchestration activity to update

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
yamlstringRequired
Responses
200

Response for successful orchestration activity update

application/json
identifierstringRequired

Identifier of the updated orchestration activity

yamlstringRequired

YAML configuration of the updated orchestration activity

put/orchestration/activity/{identifier}
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 Orchestration Activity

delete

Delete an orchestration activity by identifier

Path parameters
identifierstringRequired

The identifier of the orchestration activity to delete

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
204

Orchestration activity deleted successfully

No content

delete/orchestration/activity/{identifier}
DELETE /api/orchestration/activity/{identifier} HTTP/1.1
Harness-Account: text
Accept: */*

No content

Get Orchestration Activity Metadata

get

Retrieve metadata for an orchestration activity without its YAML content

Path parameters
identifierstringRequired

Identifier of the orchestration activity

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Responses
200

Metadata for a single orchestration activity (no YAML)

application/json
createdAtinteger · int64Required
descriptionstringOptional
identifierstringRequired
lastUpdatedAtinteger · int64Required
namestringRequired
typestring · enumRequired

Type of orchestration activity

Possible values:
get/orchestration/activity/{identifier}/metadata
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 Orchestration Activity to Git

post

Move an inline orchestration activity to a remote git repository. Activities already stored remotely cannot be moved.

Path parameters
identifierstringRequired

The identifier of the orchestration activity to move

Query parameters
orgIdentifierstringOptional

Organisation Identifier

projectIdentifierstringOptional

Project Identifier

Header parameters
Harness-AccountstringRequired

Account Identifier

Body
Responses
200

Response for Get Orchestration Activity API

application/json
identifierstringRequired

Identifier of the orchestration activity

yamlstringRequired

YAML representation of the orchestration activity

post/orchestration/activity/{identifier}/move-config
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?