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

Pipeline

This contains pipeline APIs for files as provided as runtime input during pipeline execution

Download file from GCS using filePath

get

Download file from GCS using filePath

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

filePathstringRequired

filePath

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/input-file/download-file
GET /gateway/pipeline/api/input-file/download-file?accountIdentifier=text&filePath=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Returns a file uploaded or filtered based on the fileIdentifier provided for a given nodeExecutionId

get

Returns a file uploaded or filtered based on the fileIdentifier provided for a given nodeExecutionId

Path parameters
planExecutionIdstringRequired

The Pipeline Execution Id

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

nodeExecutionIdstringRequired

Step execution Id of upload step

fileNamestringRequired
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/input-file/file/{planExecutionId}
GET /gateway/pipeline/api/input-file/file/{planExecutionId}?accountIdentifier=text&nodeExecutionId=text&fileName=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Convert existing pipeline to DAG format

post

Converts an existing sequential pipeline to DAG format by adding depends_on fields to stages

Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/pipelines/{pipelineIdentifier}/convert-to-dag
POST /gateway/pipeline/api/pipelines/{pipelineIdentifier}/convert-to-dag?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
Deprecated

Create a Pipeline

post

Creates a Pipeline

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

enableDAGbooleanOptional

Enable DAG execution for pipeline

Default: false
branchstringOptional

Name of the branch.

repoIdentifierstringOptional

Git Sync Config Id. [Applicable for Old Git Sync only]

rootFolderstringOptional

Path to the root folder of the Entity. [Applicable for Old Git Sync only]

filePathstringOptional

File Path of the Entity.

commitMsgstringOptional

File Path of the Entity.

isNewBranchbooleanOptional

Checks the new branch

Default: false
baseBranchstringOptional

Name of the default branch.

connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

storeTypestring · enumOptional

Tells whether the Entity is to be saved on Git or not

Possible values:
repoNamestringOptional

Name of the repository.

isHarnessCodeRepobooleanOptional

Is Harness code repo enabled

Body
stringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/pipelines
POST /gateway/pipeline/api/pipelines?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 6

"text"
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Create a Pipeline

post

Creates a Pipeline

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

branchstringOptional

Name of the branch.

repoIdentifierstringOptional

Git Sync Config Id. [Applicable for Old Git Sync only]

rootFolderstringOptional

Path to the root folder of the Entity. [Applicable for Old Git Sync only]

filePathstringOptional

File Path of the Entity.

commitMsgstringOptional

File Path of the Entity.

isNewBranchbooleanOptional

Checks the new branch

Default: false
baseBranchstringOptional

Name of the default branch.

connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

storeTypestring · enumOptional

Tells whether the Entity is to be saved on Git or not

Possible values:
repoNamestringOptional

Name of the repository.

isHarnessCodeRepobooleanOptional

Is Harness code repo enabled

allowDynamicExecutionsbooleanOptional

Allow Dynamic Executions for the Pipeline

enableDAGbooleanOptional

Enable DAG execution for pipeline

Default: false
publicbooleanOptionalDefault: false
Body
stringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/pipelines/v2
POST /gateway/pipeline/api/pipelines/v2?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/yaml
Accept: */*
Content-Length: 3992

"|
  pipeline:
      name: Sample Pipeline
      identifier: Sample_Pipeline
      allowStageExecutions: false
      projectIdentifier: Temp
      orgIdentifier: default
      tags: {}
      stages:
          - stage:
                name: Sample Stage
                identifier: Sample_Stage
                description: \"\"
                type: Approval
                spec:
                    execution:
                        steps:
                            - step:
                                  name: Approval Step
                                  identifier: Approval_Step
                                  type: HarnessApproval
                                  timeout: 1d
                                  spec:
                                      approvalMessage: |-
                                          Please review the following information
                                          and approve the pipeline progression
                                      includePipelineExecutionHistory: true
                                      approvers:
                                          minimumCount: 1
                                          disallowPipelineExecutor: false
                                          userGroups: <+input>
                                      approverInputs: []
                            - step:
                                  type: ShellScript
                                  name: ShellScript Step
                                  identifier: ShellScript_Step
                                  spec:
                                      shell: Bash
                                      onDelegate: true
                                      source:
                                          type: Inline
                                          spec:
                                              script: <+input>
                                      environmentVariables: []
                                      outputVariables: []
                                      executionTarget: {}
                                  timeout: 10m
                tags: {}
          - stage:
                name: Sample Deploy Stage
                identifier: Sample_Deploy_Stage
                description: \"\"
                type: Deployment
                spec:
                    serviceConfig:
                        serviceRef: <+input>
                        serviceDefinition:
                            spec:
                                variables: []
                            type: Kubernetes
                    infrastructure:
                        environmentRef: <+input>
                        infrastructureDefinition:
                            type: KubernetesDirect
                            spec:
                                connectorRef: <+input>
                                namespace: <+input>
                                releaseName: release-<+INFRA_KEY>
                        allowSimultaneousDeployments: false
                    execution:
                        steps:
                            - step:
                                  name: Rollout Deployment
                                  identifier: rolloutDeployment
                                  type: K8sRollingDeploy
                                  timeout: 10m
                                  spec:
                                      skipDryRun: false
                        rollbackSteps:
                            - step:
                                  name: Rollback Rollout Deployment
                                  identifier: rollbackRolloutDeployment
                                  type: K8sRollingRollback
                                  timeout: 10m
                                  spec: {}
                tags: {}
                failureStrategies:
                    - onFailure:
                          errors:
                              - AllErrors
                          action:
                              type: StageRollback
"
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Fetch a Pipeline

get

Returns a Pipeline by Identifier

Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

branchstringOptional

Name of the branch.

repoIdentifierstringOptional

Git Sync Config Id. [Applicable for Old Git Sync only]

getDefaultFromOtherRepobooleanOptional

if true, return all the default entities

getTemplatesResolvedPipelinebooleanOptional

This is a boolean value. If true, returns Templates resolved Pipeline YAML in the response else returns null.

Default: false
loadFromFallbackBranchbooleanOptionalDefault: false
validateAsyncbooleanOptionalDefault: false
Header parameters
Load-From-CachestringOptionalDefault: false
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/pipelines/{pipelineIdentifier}
GET /gateway/pipeline/api/pipelines/{pipelineIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
Deprecated

Update a Pipeline

put

Updates a Pipeline by Identifier

Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

branchstringOptional

Name of the branch.

repoIdentifierstringOptional

Git Sync Config Id. [Applicable for Old Git Sync only]

rootFolderstringOptional

Path to the root folder of the Entity. [Applicable for Old Git Sync only]

filePathstringOptional

File Path of the Entity.

commitMsgstringOptional

Commit Message to use for the merge commit.

lastObjectIdstringOptional

Its required field during update call request. It can be fetched from the response of GET API call for the entity

resolvedConflictCommitIdstringOptional

If the entity is git-synced, this parameter represents the commit id against which file conflicts are resolved

baseBranchstringOptional

Name of the default branch.

connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

lastCommitIdstringOptional

last commit id of the file

isNewBranchbooleanOptional

Checks the new branch

Default: false
isHarnessCodeRepobooleanOptional

Is Harness code repo enabled

Header parameters
If-MatchstringOptional

Version of Entity to match

Body
stringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/pipelines/{pipelineIdentifier}
PUT /gateway/pipeline/api/pipelines/{pipelineIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 6

"text"
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Delete a Pipeline

delete

Deletes a Pipeline by Identifier

Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

branchstringOptional

Name of the branch.

repoIdentifierstringOptional

Git Sync Config Id. [Applicable for Old Git Sync only]

rootFolderstringOptional

Path to the root folder of the Entity. [Applicable for Old Git Sync only]

filePathstringOptional

File Path of the Entity.

commitMsgstringOptional

Commit Message to use for the merge commit.

lastObjectIdstringOptional

Last Object Id

Header parameters
If-MatchstringOptional

Version of Entity to match

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
delete/pipelines/{pipelineIdentifier}
DELETE /gateway/pipeline/api/pipelines/{pipelineIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

List Pipelines

post

Returns List of Pipelines in the Given Project

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

pageinteger · int32Optional

Page Index of the results to fetch.Default Value: 0

Default: 0
sizeinteger · int32Optional

Results per page (max 200)

Default: 25
sortstring[]Optional

Sort criteria for the elements.

searchTermstringOptional

Search term to filter out pipelines based on pipeline name, identifier, tags.

modulestringOptional
filterIdentifierstringOptional
branchstringOptional

Name of the branch.

repoIdentifierstringOptional

Git Sync Config Id. [Applicable for Old Git Sync only]

getDefaultFromOtherRepobooleanOptional

if true, return all the default entities

getDistinctFromBranchesbooleanOptional

Boolean flag to get distinct pipelines from all branches.

Body

Properties of the Pipelines Filter defined in Harness

filterTypestring · enumRequired

This specifies the corresponding Entity of the filter.

Possible values:
pipelineIdentifiersstring[]Optional

This is the list of the Pipeline Identifiers on which the filter will be applied.

namestringOptional

This is the Pipeline Name on which the filter will be applied.

descriptionstringOptional

This is the Pipeline Description on which the filter will be applied.

repoNamestringOptional

This is the Pipeline repo filter on which the filter will be applied.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/pipelines/list
POST /gateway/pipeline/api/pipelines/list?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 30

{
  "filterType": "PipelineSetup"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Fetch Pipeline Summary

get

Returns Pipeline Summary by Identifier

Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

branchstringOptional

Name of the branch.

repoIdentifierstringOptional

Git Sync Config Id. [Applicable for Old Git Sync only]

getDefaultFromOtherRepobooleanOptional

if true, return all the default entities

loadFromFallbackBranchbooleanOptionalDefault: false
Header parameters
Load-From-CachestringOptionalDefault: false
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/pipelines/summary/{pipelineIdentifier}
GET /gateway/pipeline/api/pipelines/summary/{pipelineIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Import and Create Pipeline from Git Repository

post
Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

repoNamestringRequired

Name of the repository.

branchstringRequired

Name of the branch.

filePathstringRequired

File Path of the Entity.

isForceImportbooleanOptional

isForceImport

Default: false
isHarnessCodeRepobooleanOptional

Is Harness code repo enabled

Body

Contains basic information required to be linked with imported Pipeline YAML

pipelineNamestringOptional

Expected Name of the Pipeline to be imported

pipelineDescriptionstringOptional

Expected Description of the Pipeline to be imported

versionstringOptional

YAML Version of the Pipeline

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/pipelines/import
POST /gateway/pipeline/api/pipelines/import?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&repoName=text&branch=text&filePath=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 69

{
  "pipelineName": "text",
  "pipelineDescription": "text",
  "version": "text"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}
Deprecated

Import and Create Pipeline from Git Repository

post
Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

repoNamestringRequired

Name of the repository.

branchstringRequired

Name of the branch.

filePathstringRequired

File Path of the Entity.

isForceImportbooleanOptional

isForceImport

Default: false
isHarnessCodeRepobooleanOptional

Is Harness code repo enabled

Body

Contains basic information required to be linked with imported Pipeline YAML

pipelineNamestringOptional

Expected Name of the Pipeline to be imported

pipelineDescriptionstringOptional

Expected Description of the Pipeline to be imported

versionstringOptional

YAML Version of the Pipeline

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/pipelines/import/{pipelineIdentifier}
POST /gateway/pipeline/api/pipelines/import/{pipelineIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&repoName=text&branch=text&filePath=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 69

{
  "pipelineName": "text",
  "pipelineDescription": "text",
  "version": "text"
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Refresh cache and fetch a Pipeline

get

Force-refreshes the git file cache for a remote pipeline and returns the freshly fetched Pipeline. Requires the git branch query parameter — repo default branch is not inferred when branch is omitted. Intended for customer-facing recovery when the git-to-Harness sync is stale (webhook lost, race condition, etc.). Behind the PIPE_GITX_FORCE_REFRESH feature flag.

Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

branchstring · min: 1Required

Name of the branch.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/pipelines/refresh-and-get/{pipelineIdentifier}
GET /gateway/pipeline/api/pipelines/refresh-and-get/{pipelineIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&branch=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update git-metadata in remote pipeline Entity

put

Update git-metadata in remote pipeline and returns the identifier of updated pipeline

Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

repoNamestringOptional

Name of the repository.

filePathstringOptional

File Path of the Entity.

Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/pipelines/{pipelineIdentifier}/update-git-metadata
PUT /gateway/pipeline/api/pipelines/{pipelineIdentifier}/update-git-metadata?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update a Pipeline

put

Updates a Pipeline by Identifier

Path parameters
pipelineIdentifierstringRequired

Pipeline Identifier

Query parameters
accountIdentifierstringRequired

Account Identifier for the Entity.

orgIdentifierstringRequired

Organization Identifier for the Entity.

projectIdentifierstringRequired

Project Identifier for the Entity.

branchstringOptional

Name of the branch.

repoIdentifierstringOptional

Git Sync Config Id. [Applicable for Old Git Sync only]

rootFolderstringOptional

Path to the root folder of the Entity. [Applicable for Old Git Sync only]

filePathstringOptional

File Path of the Entity.

commitMsgstringOptional

Commit Message to use for the merge commit.

lastObjectIdstringOptional

Its required field during update call request. It can be fetched from the response of GET API call for the entity

resolvedConflictCommitIdstringOptional

If the entity is git-synced, this parameter represents the commit id against which file conflicts are resolved

baseBranchstringOptional

Name of the default branch.

connectorRefstringOptional

Identifier of Connector needed for CRUD operations on the respective Entity

lastCommitIdstringOptional

last commit id of the file

isNewBranchbooleanOptional

Checks the new branch

Default: false
isHarnessCodeRepobooleanOptional

Is Harness code repo enabled

allowDynamicExecutionsbooleanOptional

Allow Dynamic Executions for the Pipeline

publicbooleanOptionalDefault: false
Header parameters
If-MatchstringOptional

Version of Entity to match

Body
stringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/pipelines/v2/{pipelineIdentifier}
PUT /gateway/pipeline/api/pipelines/v2/{pipelineIdentifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/yaml
Accept: */*
Content-Length: 3992

"|
  pipeline:
      name: Sample Pipeline
      identifier: Sample_Pipeline
      allowStageExecutions: false
      projectIdentifier: Temp
      orgIdentifier: default
      tags: {}
      stages:
          - stage:
                name: Sample Stage
                identifier: Sample_Stage
                description: \"\"
                type: Approval
                spec:
                    execution:
                        steps:
                            - step:
                                  name: Approval Step
                                  identifier: Approval_Step
                                  type: HarnessApproval
                                  timeout: 1d
                                  spec:
                                      approvalMessage: |-
                                          Please review the following information
                                          and approve the pipeline progression
                                      includePipelineExecutionHistory: true
                                      approvers:
                                          minimumCount: 1
                                          disallowPipelineExecutor: false
                                          userGroups: <+input>
                                      approverInputs: []
                            - step:
                                  type: ShellScript
                                  name: ShellScript Step
                                  identifier: ShellScript_Step
                                  spec:
                                      shell: Bash
                                      onDelegate: true
                                      source:
                                          type: Inline
                                          spec:
                                              script: <+input>
                                      environmentVariables: []
                                      outputVariables: []
                                      executionTarget: {}
                                  timeout: 10m
                tags: {}
          - stage:
                name: Sample Deploy Stage
                identifier: Sample_Deploy_Stage
                description: \"\"
                type: Deployment
                spec:
                    serviceConfig:
                        serviceRef: <+input>
                        serviceDefinition:
                            spec:
                                variables: []
                            type: Kubernetes
                    infrastructure:
                        environmentRef: <+input>
                        infrastructureDefinition:
                            type: KubernetesDirect
                            spec:
                                connectorRef: <+input>
                                namespace: <+input>
                                releaseName: release-<+INFRA_KEY>
                        allowSimultaneousDeployments: false
                    execution:
                        steps:
                            - step:
                                  name: Rollout Deployment
                                  identifier: rolloutDeployment
                                  type: K8sRollingDeploy
                                  timeout: 10m
                                  spec:
                                      skipDryRun: false
                        rollbackSteps:
                            - step:
                                  name: Rollback Rollout Deployment
                                  identifier: rollbackRolloutDeployment
                                  type: K8sRollingRollback
                                  timeout: 10m
                                  spec: {}
                tags: {}
                failureStrategies:
                    - onFailure:
                          errors:
                              - AllErrors
                          action:
                              type: StageRollback
"
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?