PATCH
/
api
/
v3
/
secrets
/
raw
/
{secretName}
curl --request PATCH \
  --url https://us.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",
  "tagIds": [
    "<string>"
  ],
  "metadata": {},
  "secretMetadata": [
    {
      "key": "<string>",
      "value": ""
    }
  ],
  "secretReminderNote": "<string>",
  "secretReminderRepeatDays": 123,
  "secretReminderRecipients": [
    "<string>"
  ],
  "newSecretName": "<string>",
  "secretComment": "<string>"
}'
{
  "secret": {
    "id": "<string>",
    "_id": "<string>",
    "workspace": "<string>",
    "environment": "<string>",
    "version": 123,
    "type": "<string>",
    "secretKey": "<string>",
    "secretValue": "<string>",
    "secretComment": "<string>",
    "secretReminderNote": "<string>",
    "secretReminderRepeatDays": 123,
    "skipMultilineEncoding": false,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "actor": {
      "actorId": "<string>",
      "actorType": "<string>",
      "name": "<string>",
      "membershipId": "<string>"
    },
    "isRotatedSecret": true,
    "rotationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "secretValueHidden": true
  }
}

Authorizations

Authorization
string
header
required

An access token in Infisical

Path Parameters

secretName
string
required

The name of the secret to update.

Minimum length: 1

Body

application/json

Response

200
application/json
Default Response

The response is of type object.