Skip to main content

Create a change request

post/v1/secrets/change_requests

Authorization

  • Authorizationstringheaderrequired

    Key in the format Bearer <API-key>. Create a key on the API keys page.

Response

    author object
    activeboolean

    Active flag

    avatar_urlstring

    Avatar

    Example: https://www.gravatar.com/avatar/00000000000000000000000000000000
    emailstring

    Email

    Example: jane@example.com
    idinteger<int64>

    Identifier

    Example: 42
    namestring

    Name

    Example: Jane Doe
    rolestring

    Role

    Possible values: [primary_owner, owner, admin, member]

    Example: member
    awaiting_my_reviewboolean

    Someone else's request with a block awaiting the current member's approval

    can_closeboolean

    The request can be closed

    can_editboolean

    The title and description can be changed

    created_atstring<date-time>

    Creation date

    descriptionstring

    Description

    idinteger<int64>

    Identifier

    projectstring

    Project alias

    reviewers object[]

    Assigned reviewers: if there are any, the request waits for review only from them

  • Array [
  • activeboolean

    Active flag

    avatar_urlstring

    Avatar

    Example: https://www.gravatar.com/avatar/00000000000000000000000000000000
    emailstring

    Email

    Example: jane@example.com
    idinteger<int64>

    Identifier

    Example: 42
    namestring

    Name

    Example: Jane Doe
    rolestring

    Role

    Possible values: [primary_owner, owner, admin, member]

    Example: member
  • ]
  • statusstring

    Status: open, closed

    Possible values: [open, closed]

    summarystring

    Overall status across all blocks: draft, review, approved, applied, partially_applied, canceled

    Possible values: [draft, review, approved, applied, partially_applied, canceled]

    titlestring

    Title

    units object[]

    Change blocks by configuration

  • Array [
  • applied_atstring<date-time>

    Applied date

    applied_by object
    activeboolean

    Active flag

    avatar_urlstring

    Avatar

    Example: https://www.gravatar.com/avatar/00000000000000000000000000000000
    emailstring

    Email

    Example: jane@example.com
    idinteger<int64>

    Identifier

    Example: 42
    namestring

    Name

    Example: Jane Doe
    rolestring

    Role

    Possible values: [primary_owner, owner, admin, member]

    Example: member
    approvals object[]

    Active members with write access to the environment who approved the block; whether their approvals count toward policies is shown in policies

  • Array [
  • activeboolean

    Active flag

    avatar_urlstring

    Avatar

    Example: https://www.gravatar.com/avatar/00000000000000000000000000000000
    emailstring

    Email

    Example: jane@example.com
    idinteger<int64>

    Identifier

    Example: 42
    namestring

    Name

    Example: Jane Doe
    rolestring

    Role

    Possible values: [primary_owner, owner, admin, member]

    Example: member
  • ]
  • approvedboolean

    The 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

    approved_by_meboolean

    The current member has approved the block

    can_editboolean

    The block's changes and status can be edited

    can_reviewboolean

    The block can be approved and applied

    changes object[]

    Changes; not populated in the request list

  • Array [
  • base object
    existsboolean

    The secret existed

    maskedboolean

    Value not returned: the block wasn't revealed with the reveal parameter

    notestring

    Note

    valuestring

    Value

    value_typestring

    Type

    Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]

    visibilitystring

    Visibility

    Possible values: [masked, unmasked, restricted]

    hiddenboolean

    The value and note were entered by another member, and the current member has no access to the environment

    maskedboolean

    Value not returned: the block wasn't revealed with the reveal parameter

    namestring

    Name

    notestring

    Note

    original_namestring

    Original name

    outdatedboolean

    The secret changed after the block was created or edited

    should_deleteboolean

    Delete

    valuestring

    Value

    value_typestring

    Type

    Possible values: [string, json, boolean, integer, decimal, email, url, yaml, xml, date, datetime]

    visibilitystring

    Visibility

    Possible values: [masked, unmasked, restricted]

  • ]
  • configstring

    Configuration alias

    created_atstring<date-time>

    Creation date

    environmentstring

    Environment alias

    idinteger<int64>

    Identifier

    outdatedboolean

    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

  • Array [
  • disallow_self_approvalboolean

    The request author's approval doesn't count

    idinteger<int64>

    Policy ID

    namestring

    Name

    rules object[]

    Rules with progress

  • Array [
  • approvalsinteger<int64>

    Number of approvals counted

    required_approvalsinteger<int64>

    Number of approvals required

    reviewers object[]

    Whose approvals count, with members who left marked active=false; empty means anyone who can approve

  • Array [
  • activeboolean

    Active flag

    avatar_urlstring

    Avatar

    Example: https://www.gravatar.com/avatar/00000000000000000000000000000000
    emailstring

    Email

    Example: jane@example.com
    idinteger<int64>

    Identifier

    Example: 42
    namestring

    Name

    Example: Jane Doe
    rolestring

    Role

    Possible values: [primary_owner, owner, admin, member]

    Example: member
  • ]
  • reviewers_can_satisfyboolean

    Same, but among assigned reviewers: only they are asked to approve. With no assigned reviewers, matches satisfiable

    satisfiableboolean

    The rule can still be met: counted approvals plus members who can approve the block in a way that counts reach the required number

  • ]
  • satisfiedboolean

    All rules are met

  • ]
  • reviewers_can_approveboolean

    At least one assigned reviewer can approve the block; true if none are assigned

    revisioninteger<int64>

    Block revision, passed when approving

    self_approval_disallowedboolean

    The current member is the request author, and a policy forbids them from approving the block

    statusstring

    Status: draft, open, canceled, applied

    Possible values: [draft, open, canceled, applied]

    updated_atstring<date-time>

    Updated date

  • ]
  • updated_atstring<date-time>

    Updated date