PATCH
/
api
/
v3
/
secrets
/
raw
/
{secretName}
curl --request PATCH \
  --url https://app.infisical.com/api/v3/secrets/raw/{secretName} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --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>"
  }
}

This endpoint requires you to disable end-to-end encryption. For more information, you should consult this note.

Authorizations

Authorization
string
header
required

An access token in Infisical

Path Parameters

secretName
string
required

The name of the secret to update.

Body

application/json

Response

200 - application/json

Default Response

The response is of type object.