Skip to main content
POST
cURL

Path Parameters

projectId
string
required

The ID of the project to create the secret validation rule in.

Body

application/json
name
string
required

The name of the secret validation rule.

Required string length: 1 - 100
secretPath
string
required

The secret path this rule is scoped to.

Minimum string length: 1
rule
object
required

The rule configuration: which secret type it targets and the constraints to enforce.

description
string | null

An optional description of the secret validation rule.

Maximum string length: 500
environmentSlug
string

The slug of the environment this rule is scoped to. Omit to apply the rule to every environment in the project.

Minimum string length: 1

Response

Default Response

rule
object
required