Secrets
Update
Update secret
PATCH
/
api
/
v3
/
secrets
/
raw
/
{secretName}
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this note.
Authorizations
Authorization
string
headerrequiredAn access token in Infisical
Path Parameters
secretName
string
requiredThe name of the secret to update.
Body
application/json
workspaceId
string
requiredThe ID of the project to update the secret in.
environment
string
requiredThe slug of the environment where the secret is located.
secretValue
string
requiredThe new value of the secret.
secretPath
string
default: /The path of the secret to update.
skipMultilineEncoding
boolean
Skip multiline encoding for the secret value.
type
enum<string>
default: sharedThe type of the secret to update.
Available options:
shared
, personal
tagIds
string[]
The ID of the tags to be attached to the updated secret.
metadata
object
secretReminderNote
string | null
Note to be attached in notification email.
secretReminderRepeatDays
number | null
Interval for secret rotation notifications, measured in days.
newSecretName
string
The new name for the secret.
secretComment
string
Update comment to the secret.
Response
200 - application/json
secret
object
required