Approvals

List approval requests

get

Returns a list of approval requests

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Query parameters
pageintegerOptional

The page number to be returned, must be greater than zero. Defaults to 1.

Example: 1
pageSizeintegerRequired

The elements amount on a single page, must be greater than zero.

Example: 25
sortFieldstring · enumOptional

The field to sort results by

Possible values:
sortOrderstring · enumOptional

Sorting order. Defaults to ascending

Possible values:
entityNamestringOptional

filter request by matching entity names

Responses
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v1/approvals

Create a new approval request

post

Creates a new approval request

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
or
or
Responses
200Success
application/json
post
/api/v1/environments/{environment}/proxy/api/v1/approvals

Get approval request details

get

Returns the approval request details

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · uuidRequired

The request id

Responses
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v1/approvals/{id}

Approve a request

put

Approves the request

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · uuidRequired
Responses
put
/api/v1/environments/{environment}/proxy/api/v1/approvals/{id}/approve

No content

Reject an approval request

put

Rejects the approval request

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
idstring · uuidRequired
Body
rejectionReasonstringOptional
Responses
put
/api/v1/environments/{environment}/proxy/api/v1/approvals/{id}/reject

No content

Last updated

Was this helpful?