cURL
curl --request POST \ --url https://zeropath.com/api/v2/rules/update \ --header 'Content-Type: application/json' \ --header 'X-ZeroPath-API-Token-Id: <api-key>' \ --header 'X-ZeroPath-API-Token-Secret: <api-key>' \ --data '{ "organizationId": "<string>", "ruleId": "<string>", "name": "<string>", "rule": "<string>", "globPattern": "<string>", "sourceTypes": [ "HTTP_HANDLER" ], "repositoryIds": [ "<string>" ] }'
{ "id": "<string>", "name": "<string>", "rule": "<string>", "globPattern": "<string>", "sourceTypes": [ "HTTP_HANDLER" ], "repositoryIds": [ "<string>" ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Update an existing natural language security rule
Natural language description of the security rule
Glob pattern for files this rule applies to
Show child attributes
Rule updated successfully