Skip to main content
POST
Update custom rule

Authorizations

X-ZeroPath-API-Token-Id
string
header
required
X-ZeroPath-API-Token-Secret
string
header
required

Body

application/json
ruleId
string
required
organizationId
string
name
string
rule
string

Natural language description of the security rule

globPattern
string

Glob pattern for files this rule applies to

sourceTypes
enum<string>[]
Available options:
HTTP_HANDLER,
FILE_HANDLER,
STDIN_HANDLER,
BROWSER_DATA,
WEBSOCKET,
SOCKET,
CLI_ARGUMENT,
MOBILE_INPUTS
repositoryIds
string[]

Response

Rule updated successfully

id
string
required
name
string
required
rule
string
required

Natural language description of the security rule

globPattern
string
required
sourceTypes
enum<string>[]
required
Available options:
HTTP_HANDLER,
FILE_HANDLER,
STDIN_HANDLER,
BROWSER_DATA,
WEBSOCKET,
SOCKET,
CLI_ARGUMENT,
MOBILE_INPUTS
repositoryIds
string[]
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required