Approvals
Approval service handles the approval API to approve or reject pipeline executions
List all the approvals
Org is the organisation identifier.
vvProject is the project identifier.
iLimit 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
Recusandae culpa mollitia sequi.Pipeline identifier
Sunt minus at officia repellendus.Pipeline stage identifier
Eaque mollitia assumenda.Status of the approval step
approvedPossible values: Account is the internal customer account ID.
77xOK 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: 77x
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.
rProject is the project identifier.
l4Account is the internal customer account ID.
9mqThe unique identifier for the associated pipeline execution
Incidunt repudiandae.The unique identifier for the associated pipeline execution stage
Dignissimos ipsa odit temporibus aliquid voluptatibus illum.Status of the approval resource
pendingExample: pendingPossible values: The unique identifier for the workspace_id
Facere dolore dignissimos.OK response.
Create-ApprovalResponseBody result type (creation view)
Atque veritatis a totam quia.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: 9mq
Content-Type: application/json
Accept: */*
Content-Length: 165
{
"pipeline_execution_id": "Ut voluptatum provident voluptas.",
"pipeline_stage_id": "Ipsam cumque.",
"status": "rejected",
"workspace_id": "Sunt est quia fuga porro ipsa."
}{
"id": "Atque dolor corrupti quae debitis cum voluptatem."
}Retrieve a single approval
Org is the organisation identifier.
xyProject is the project identifier.
0jw5d317a1d-4c23-4a7f-a467-1423ad360500Account is the internal customer account ID.
29OK 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.
4525749087327568400Status of the approval resource
pendingExample: Molestiae vel qui autem rerum repellat.Modified is the unix timestamp at which the resource was last modified in milliseconds.
8179483835664226000BadRequestError: 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: 29
Accept: */*
{
"actioned_by": "John Doe",
"actioned_by_email": "john.doe@example.com",
"created": 7226061072750265000,
"status": "Beatae vero vero facere corrupti.",
"updated": 1022861971819077100
}Update a single approval
Org is the organisation identifier.
42Project is the project identifier.
v953bb3bd-eb75-460b-8b03-4834d75283caAccount is the internal customer account ID.
e1User 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: approvedPossible 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: e1
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"actioned_by": "John Doe",
"actioned_by_email": "john.doe@example.com",
"status": "pending"
}No content
Last updated
Was this helpful?