Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

An access token in Infisical

Body

application/json
projectId
string
required

The ID of the project where the secret is located.

environment
string
required

The slug of the environment where the secret is located.

secrets
object[]
required
Minimum array length: 1
secretPath
string
default:/

The default path for secrets to update or upsert, if not provided in the secret details.

mode
enum<string>
default:failOnNotFound

Defines how the system should handle missing secrets during an update.

Available options:
ignore,
upsert,
failOnNotFound

Response

Default Response

secrets
object[]
required