Withdraw your approval of a block
/v1/secrets/change_requests/{id}/units/{unit_id}/approveRequest
Authorization
- Authorizationstringheaderrequired
Key in the format
Bearer <API-key>. Create a key on the API keys page.
Path Parameters
- id integer<int64>required
Request ID
- unit_id integer<int64>required
Block ID
Response
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- Array [
- ]
- ]
- ]
- ]
author object
Active flag
Avatar
https://www.gravatar.com/avatar/00000000000000000000000000000000jane@example.comIdentifier
42Name
Jane DoeRole
Possible values: [primary_owner, owner, admin, member]
memberSomeone else's request with a block awaiting the current member's approval
The request can be closed
The title and description can be changed
Creation date
Description
Identifier
Project alias
reviewers object[]
Assigned reviewers: if there are any, the request waits for review only from them
Active flag
Avatar
https://www.gravatar.com/avatar/00000000000000000000000000000000jane@example.comIdentifier
42Name
Jane DoeRole
Possible values: [primary_owner, owner, admin, member]
memberStatus: open, closed
Possible values: [open, closed]
Overall status across all blocks: draft, review, approved, applied, partially_applied, canceled
Possible values: [draft, review, approved, applied, partially_applied, canceled]
Title
units object[]
Change blocks by configuration
Applied date
applied_by object
Active flag
Avatar
https://www.gravatar.com/avatar/00000000000000000000000000000000jane@example.comIdentifier
42Name
Jane DoeRole
Possible values: [primary_owner, owner, admin, member]
memberapprovals object[]
Active members with write access to the environment who approved the block; whether their approvals count toward policies is shown in policies
Active flag
Avatar
https://www.gravatar.com/avatar/00000000000000000000000000000000jane@example.comIdentifier
42Name
Jane DoeRole
Possible values: [primary_owner, owner, admin, member]
memberThe block is approved: all policies are met, or, with no policies, there is an approval from an active member with write access to the environment
The current member has approved the block
The block's changes and status can be edited
The block can be approved and applied
changes object[]
Changes; not populated in the request list
base object
The secret existed
Value not returned: the block wasn't revealed with the reveal parameter
Note
Value
Type
Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]
Visibility
Possible values: [masked, unmasked, restricted]
The value and note were entered by another member, and the current member has no access to the environment
Value not returned: the block wasn't revealed with the reveal parameter
Name
Note
Original name
The secret changed after the block was created or edited
Delete
Value
Type
Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]
Visibility
Possible values: [masked, unmasked, restricted]
Configuration alias
Creation date
Environment alias
Identifier
Secrets changed after the block was created or edited
policies object[]
Policies that apply to the block, with approval progress; not populated in the request list
The request author's approval doesn't count
Policy ID
Name
rules object[]
Rules with progress
Number of approvals counted
Number of approvals required
reviewers object[]
Whose approvals count, with members who left marked active=false; empty means anyone who can approve
Active flag
Avatar
https://www.gravatar.com/avatar/00000000000000000000000000000000jane@example.comIdentifier
42Name
Jane DoeRole
Possible values: [primary_owner, owner, admin, member]
memberSame, but among assigned reviewers: only they are asked to approve. With no assigned reviewers, matches satisfiable
The rule can still be met: counted approvals plus members who can approve the block in a way that counts reach the required number
All rules are met
At least one assigned reviewer can approve the block; true if none are assigned
Block revision, passed when approving
The current member is the request author, and a policy forbids them from approving the block
Status: draft, open, canceled, applied
Possible values: [draft, open, canceled, applied]
Updated date
Updated date