Skip to main content
PATCH
cURL

Path Parameters

projectId
string
required

The ID of the project the secret validation rule belongs to.

ruleId
string<uuid>
required

The ID of the secret validation rule to update.

Body

application/json
name
string

The name of the secret validation rule.

Required string length: 1 - 100
description
string | null

An optional description of the secret validation rule.

Maximum string length: 500
environmentSlug
string | null

The slug of the environment this rule is scoped to. Omit to leave the current scope unchanged; pass null to make the rule apply to every environment in the project.

Minimum string length: 1
secretPath
string

The secret path this rule is scoped to.

Minimum string length: 1
rule
object

The rule configuration: which secret type it targets and the constraints to enforce. Replaces the existing configuration as a whole, or omits to leave it untouched.

isActive
boolean

Whether the secret validation rule is active.

Response

Default Response

rule
object
required