Infisical icon

Infisical

Interact with Infisical secrets management API

Secret → Update

AI-generated

Summary

Update a single secret in an Infisical project environment, optionally modifying its name, value, comment, type, encoding, and metadata.

Inputs

  • Project ID (required) — The ID of the Infisical project containing the secret to update
  • Environment (required) — The environment slug where the secret is located (e.g., dev, staging, prod)
  • Secret Path — The folder path inside the environment (default is '/')
  • Secret Key (required) — The current name of the secret to update
  • Additional Fields — Optional fields including new secret name, updated secret comment, new secret value, whether to skip multiline encoding, and secret type (shared or personal)
  • Secret Metadata — Key/value metadata tags to associate with the secret

Output shape

a single JSON object representing the updated secret response

Returns the Infisical API's response containing updated secret details; output includes paired item index and error handling if configured to continue on failure.

Examples

Example 1: Update a secret's value and rename it in the 'dev' environment at path '/' of a project

Set 'Project ID', 'Environment' to 'dev', 'Secret Path' to '/', 'Secret Key' to current secret name, and in 'Additional Fields' provide 'New Secret Name' and 'Secret Value'. Optionally add metadata entries.

Links

Discussion