Gets Approval Instances by Execution Id [Beta]
Approval Instances list response body
Bad Request
[- {
- "id": "example_approval_instance",
- "type": "HarnessApproval",
- "status": "WAITING",
- "deadline": 1683953545329,
- "details": {
- "approvalMessage": "Please review the following information\nand approve the pipeline progression",
- "includePipelineExecutionHistory": true,
- "approvers": {
- "userGroups": [
- "example_usergroup_1",
- "example_usergroup_2"
], - "minimumCount": 3,
- "disallowPipelineExecutor": false
}, - "approvalActivities": [ ],
- "approverInputs": [
- {
- "name": "example_input_1",
- "defaultValue": "example_value_1"
}, - {
- "name": "example_input_2",
- "defaultValue": "example_value_2"
}
], - "validatedApprovalUserGroups": [
- {
- "accountIdentifier": "example_account_identifier",
- "orgIdentifier": "example_org_identifier",
- "projectIdentifier": "example_project_identifier",
- "identifier": "example_usergroup_1",
- "name": "Example Usergroup 1"
}, - {
- "accountIdentifier": "example_account_identifier",
- "orgIdentifier": "example_org_identifier",
- "projectIdentifier": "example_project_identifier",
- "identifier": "example_usergroup_2",
- "name": "Example Usergroup 2"
}
], - "autoRejectEnabled": false,
- "created": 1683867145351,
- "updated": 1683867145351
}, - "error_message": "example error message"
}
]
Approve or Reject an Execution by Pipeline Execution ID [Beta]
Request Body for Harness Approval Activity
Approval Instance response body
Bad Request
{- "comments": "string",
- "action": "APPROVE",
- "approver_inputs": [
- {
- "name": "example_input_1",
- "value": "example_value_1"
}, - {
- "name": "example_input_2",
- "value": "example_value_2"
}
]
}
{- "id": "example_approval_instance",
- "type": "HarnessApproval",
- "status": "WAITING",
- "deadline": 1683953545329,
- "details": {
- "approvalMessage": "Please review the following information\nand approve the pipeline progression",
- "includePipelineExecutionHistory": true,
- "approvers": {
- "userGroups": [
- "example_usergroup_1",
- "example_usergroup_2"
], - "minimumCount": 3,
- "disallowPipelineExecutor": false
}, - "approvalActivities": [ ],
- "approverInputs": [
- {
- "name": "example_input_1",
- "defaultValue": "example_value_1"
}, - {
- "name": "example_input_2",
- "defaultValue": "example_value_2"
}
], - "validatedApprovalUserGroups": [
- {
- "accountIdentifier": "example_account_identifier",
- "orgIdentifier": "example_org_identifier",
- "projectIdentifier": "example_project_identifier",
- "identifier": "example_usergroup_1",
- "name": "Example Usergroup 1"
}, - {
- "accountIdentifier": "example_account_identifier",
- "orgIdentifier": "example_org_identifier",
- "projectIdentifier": "example_project_identifier",
- "identifier": "example_usergroup_2",
- "name": "Example Usergroup 2"
}
], - "autoRejectEnabled": false,
- "created": 1683867145351,
- "updated": 1683867145351
}, - "error_message": "example error message"
}
Details of approval activity
Bad Request
Internal Server Error
Returns a newly added Harness Approval activity
{- "action": "APPROVE",
- "approverInputs": [
- {
- "name": "string",
- "value": "string"
}
], - "comments": "string",
- "autoApprove": true
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}