update-secret
Update an existing Infisical secret's value, rename it, or change both in one call; omitted fields keep their current values.
Instructions
Change an existing secret's value, rename it, or both in one call. Fields left out keep their current value.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"environmentSlug": "<environmentSlug>",
"secretName": "<secretName>"
},
"name": "update-secret"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The ID of the project, from list-projects. A project slug or exact project name also works. | |
| secretName | Yes | The current name of the secret | |
| secretPath | No | The folder path, such as "/" for the root or "/backend/api" for a nested folder. Defaults to "/". | |
| secretValue | No | The new value. Leave out to keep the current value | |
| newSecretName | No | Set to rename the secret. Leave out to keep its name | |
| environmentSlug | Yes | The slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works. |