Actions38
- Environment Actions
- Folder Actions
- Project Actions
- Secret Actions
- Secret Import Actions
- Secret Tag Actions
Secret → Update Many
AI-generatedSummary
Update multiple secrets within a specified Infisical project and environment, allowing changes to secret values, names, comments, multiline encoding settings, and metadata in batch.
Inputs
- Project ID (required) — The ID of the Infisical project containing the secrets to update.
- Environment (required) — The environment slug (e.g., dev, staging, prod) where the secrets exist.
- Secret Path — The folder path inside the environment where the secrets are located (default is '/').
- Secrets (required) — A collection of secrets to update, each specifying the current secret key and optional new value, new name, comment, multiline encoding flag, and metadata key/value pairs.
- Additional Fields — Options for handling secrets that are not found (fail, upsert, or ignore) and an optional override for the secret path to apply for all secrets in this batch update.
Output shape
a list of updated secret objects
Returns an array containing the API response for each updated secret. If the response indicates approval or policy gating instead of direct secret data, the entire response object is returned for that item.
Examples
Example 1: Update multiple secrets' values and rename one secret in an environment
Specify the Project ID, Environment, optionally set the Secret Path, and provide multiple secrets with their current keys and updates: new values, new names, comments, and metadata tags.
