update-secret
Update an existing secret's value or name in a specified project and environment, optionally selecting its secret path.
Instructions
Update a secret in Infisical
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 to update the secret in (required) | |
| secretName | Yes | The current name of the secret to update (required) | |
| secretPath | No | The path of the secret to update (Defaults to /) | |
| secretValue | No | The new value of the secret to update (Optional) | |
| newSecretName | No | The new name of the secret to update (Optional) | |
| environmentSlug | Yes | The slug of the environment to update the secret in (required) |