Approvals
Approval service handles the approval API to approve or reject pipeline executions
List all the approvals
Org is the organisation identifier.
7lProject is the project identifier.
4Limit is the number of records to return for a page.
30Example: 30Page is the page number to return relative to the page 'limit'.
1Example: 1Workspace identifier
Et libero quia qui dolorum ut.Pipeline identifier
Sed dolor exercitationem perspiciatis quaerat.Pipeline stage identifier
Saepe provident omnis necessitatibus ut.Status of the approval step
pendingPossible values: Account is the internal customer account ID.
8xuOK response.
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/approvals HTTP/1.1
Host: localhost:80
Harness-Account: 8xu
Accept: */*
[
{
"account": "kn8",
"actioned_by": "John Doe",
"actioned_by_email": "john.doe@example.com",
"created": 8923043851235030000,
"id": "Aliquid quia dignissimos aut accusamus voluptates rerum.",
"org": "1",
"pipeline_execution_id": "A tempora asperiores consectetur.",
"pipeline_stage_id": "Id consequatur atque.",
"project": "bcz",
"status": "Quam saepe sit magnam tenetur.",
"updated": 4501857522395362000,
"workspace_id": "Itaque sed eum."
},
{
"account": "kn8",
"actioned_by": "John Doe",
"actioned_by_email": "john.doe@example.com",
"created": 8923043851235030000,
"id": "Aliquid quia dignissimos aut accusamus voluptates rerum.",
"org": "1",
"pipeline_execution_id": "A tempora asperiores consectetur.",
"pipeline_stage_id": "Id consequatur atque.",
"project": "bcz",
"status": "Quam saepe sit magnam tenetur.",
"updated": 4501857522395362000,
"workspace_id": "Itaque sed eum."
},
{
"account": "kn8",
"actioned_by": "John Doe",
"actioned_by_email": "john.doe@example.com",
"created": 8923043851235030000,
"id": "Aliquid quia dignissimos aut accusamus voluptates rerum.",
"org": "1",
"pipeline_execution_id": "A tempora asperiores consectetur.",
"pipeline_stage_id": "Id consequatur atque.",
"project": "bcz",
"status": "Quam saepe sit magnam tenetur.",
"updated": 4501857522395362000,
"workspace_id": "Itaque sed eum."
}
]Create an approval resource
Org is the organisation identifier.
8Project is the project identifier.
kztAccount is the internal customer account ID.
eeThe unique identifier for the associated pipeline execution
Consequatur aperiam aut ea qui perspiciatis.The unique identifier for the associated pipeline execution stage
Explicabo iste quaerat cupiditate exercitationem.Status of the approval resource
pendingExample: approvedPossible values: The unique identifier for the workspace_id
Nobis odit animi optio.OK response.
Create-ApprovalResponseBody result type (creation view)
Eos rem omnis est.BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
POST /api/orgs/{org}/projects/{project}/approvals HTTP/1.1
Host: localhost:80
Harness-Account: ee
Content-Type: application/json
Accept: */*
Content-Length: 135
{
"pipeline_execution_id": "In placeat voluptatum.",
"pipeline_stage_id": "Voluptatem sed.",
"status": "approved",
"workspace_id": "Ut totam."
}{
"id": "Illo consequatur."
}Retrieve a single approval
Org is the organisation identifier.
rProject is the project identifier.
2uca0289a9-0b58-4604-975a-35ab3edffe90Account is the internal customer account ID.
wpOK response.
Show-ApprovalResponseBody result type (statusInfo view)
User that approved/rejected the step
John DoeEmail of the user that approved/rejected the step
john.doe@example.comCreated is the unix timestamp at which the resource was originally created in milliseconds.
8422866544782249000Status of the approval resource
pendingExample: Illo non dicta qui ut sit adipisci.Modified is the unix timestamp at which the resource was last modified in milliseconds.
5096406529158260000BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
GET /api/orgs/{org}/projects/{project}/approvals/{id} HTTP/1.1
Host: localhost:80
Harness-Account: wp
Accept: */*
{
"actioned_by": "John Doe",
"actioned_by_email": "john.doe@example.com",
"created": 7972994791850198000,
"status": "Ut eveniet id aperiam.",
"updated": 8636171398764903000
}Update a single approval
Org is the organisation identifier.
i6yProject is the project identifier.
krfa47a692-322d-47f8-9aba-414749c5fb03Account is the internal customer account ID.
fUser that approved/rejected the step
John DoeEmail of the user that approved/rejected the step
john.doe@example.comStatus update to be performed upon the Approval step
pendingExample: pendingPossible values: OK response.
No content
BadRequestError: Bad Request response.
UnauthorizedError: Unauthorized response.
ForbiddenError: Forbidden response.
NotFoundError: Not Found response.
TimeoutError: Request Timeout response.
ConflictError: Conflict response.
LockedError: Locked response.
ContextCancelledError: response.
InternalServerError: Internal Server Error response.
BadGatewayError: Bad Gateway response.
PUT /api/orgs/{org}/projects/{project}/approvals/{id} HTTP/1.1
Host: localhost:80
Harness-Account: f
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"actioned_by": "John Doe",
"actioned_by_email": "john.doe@example.com",
"status": "approved"
}No content
Last updated
Was this helpful?