Create an approval policy
post
/v1/secrets/change_request_policiesAuthorization
- Authorizationstringheaderrequired
Key in the format
Bearer <API-key>. Create a key on the API keys page.
Response
- Array [
- Array [
- ]
- ]
- Array [
- ]
auto_assignstring
Who to assign as reviewers of a new request: never, all (everyone covered by the rules)
Possible values: [all, never]
created_atstring<date-time>
Creation date
descriptionstring
Description
disallow_self_approvalboolean
The request author can't approve it
idinteger<int64>
Identifier
namestring
Name
rules object[]
Rules: all of them must be met
required_approvalsinteger<int64>
Number of approvals required
reviewers object[]
Whose approvals count; empty means anyone who can approve
activeboolean
Active flag
avatar_urlstring
Avatar
Example:
https://www.gravatar.com/avatar/00000000000000000000000000000000emailstringEmail
Example:
jane@example.comidinteger<int64>
Identifier
Example:
42namestring
Name
Example:
Jane Doerolestring
Role
Possible values: [primary_owner, owner, admin, member]
Example:
membertargets object
all_projectsboolean
All team projects
projects object[]
Projects; without environments and configurations, the whole project
configsstring[]
Configuration aliases: env or env/branch
environmentsstring[]
Environment aliases: the whole environment, including branches
projectstring
Project alias
updated_atstring<date-time>
Updated date