Edit custom rule
Edit a custom semgrep rule
put/repositories/sast/custom-rules/{rule_id}
Request
- Base URLhttps://app.aikido.dev/api/public/v1
- URLhttps://app.aikido.dev/api/public/v1/repositories/sast/custom-rules/{rule_id}
- AuthOAuth 2Client credentialsToken URL: https://app.aikido.io/api/oauth/token scopes: custom_sast_rules:write
Path parameters
rule_idinteger required
The ID of the custom rule
Request body
Example request
{
"semgrep_rule": "rules:\n- id: CUSTOM-RULE-1\n pattern: console.log(...)\n message: Semgrep found a debug statement\n languages: [javascript]\n severity: WARNING",
"issue_title": "console.log",
"priority": 20,
"tldr": "console.log should be avoided in frontend applications",
"how_to_fix": "remove the console.log",
"language": "JS"
}Response
The custom rule has successfully been updated
Example response
{
"success": 1
}Changes
No recorded changes to this operation across all 1 revision of this API.