Approvals

This contains APIs related to Pipeline approvals

Approve or Reject a Pipeline Execution

SecurityApiKey
Request
path Parameters
approvalInstanceId
required
string

Approval Identifier for the entity

query Parameters
accountIdentifier
string

Account Identifier for the Entity.

Request Body schema:

Details of approval activity

action
required
string
Enum: "APPROVE" "REJECT"
Array of objects (ApproverInput)
comments
string
Responses
400

Bad Request

500

Internal Server Error

default

Returns a newly added Harness Approval activity

post/pipeline/api/approvals/{approvalInstanceId}/harness/activity
Request samples
{
  • "action": "APPROVE",
  • "approverInputs": [
    ],
  • "comments": "string"
}
Response samples
{
  • "status": "SUCCESS",
  • "code": "DEFAULT_ERROR_CODE",
  • "message": "string",
  • "correlationId": "string",
  • "errors": [
    ]
}