Skip to content
Navigation

updateSecret

PATCH
/api/v1/secrets/{secretId}

Authorization

  • session
    optional
    API key in cookie
  • token
    optional
    HTTP Bearer

    Authorization: Bearer <token>

Path parameters

  • secretId
    string
    required

Request body JSON required

  • name
    optional
    string
    maxLength: 100 · minLength: 1
  • value
    optional
    string
    minLength: 1
  • rule
    optional
    object
    • hosts
      array of
      string
      required

      Exact host names or "*.example.com".

    • header
      string
      required
    • template
      string
      required

      Header value; {{.Value}} is the secret. Function: base64.

Returns

200

Updated.

JSON
  • id
    string
    required
  • workspaceId
    string
    required
  • name
    string
    required
  • rule
    object
    required
    • hosts
      array of
      string
      required

      Exact host names or "*.example.com".

    • header
      string
      required
    • template
      string
      required

      Header value; {{.Value}} is the secret. Function: base64.

  • placeholder
    string
    required

    What sandboxes see instead of the value.

  • owner
    object
    required
    • id
      string
      required
    • email
      string
      required
    • name
      string
      required
    • avatarUrl
      string
      required
  • canManage
    boolean
    required
  • createdAt
    string
    required
    format: date-time
  • updatedAt
    string
    required
    format: date-time

400

Error.
JSON
  • error
    string
    required

403

Error.
JSON
  • error
    string
    required

404

Error.
JSON
  • error
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close