cURL
curl --request PATCH \ --url https://app.infisical.com/api/v3/secrets/raw/{secretName} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "workspaceId": "<string>", "environment": "<string>", "secretValue": "<string>", "secretPath": "/", "skipMultilineEncoding": true, "type": "shared" }'
{ "secret": { "id": "<string>", "_id": "<string>", "workspace": "<string>", "environment": "<string>", "version": 123, "type": "<string>", "secretKey": "<string>", "secretValue": "<string>", "secretComment": "<string>" } }
Update secret
An access token in Infisical
An API Key in Infisical
The name of the secret to update.
Default Response
The response is of type object.
object
Was this page helpful?