Approvals
This contains APIs related to Pipeline approvals
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 · enumRequiredPossible values:
Approval activity action
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
500
Internal Server Error
default
Returns a newly added Harness Approval activity
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?