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

Approvals

This contains APIs related to Pipeline approvals

Approve or Reject a Pipeline Execution

post
Path parameters
approvalInstanceIdstring · min: 1 · max: 2147483647Required

Approval Identifier for the entity

Query parameters
accountIdentifierstringOptional

Account Identifier for the Entity.

Body

Details of approval activity requested

actionstring · enumRequired

Approval activity action

Possible values:
commentsstringOptional

Approval activity with the comment

autoApprovebooleanOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/approvals/{approvalInstanceId}/harness/activity
POST /gateway/pipeline/api/approvals/{approvalInstanceId}/harness/activity HTTP/1.1
Host: pipeline-service-6c65d4b68c-lrg8j
Content-Type: application/json
Accept: */*
Content-Length: 107

{
  "action": "APPROVE",
  "approverInputs": [
    {
      "name": "text",
      "value": "text"
    }
  ],
  "comments": "text",
  "autoApprove": true
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?