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
Response
200 - application/json
secret
object
required