Update Pattern Group

Updates a specified pattern group.

HTTP Request

PUT /api/sonar/pattern-groups/:guid
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -d name="Webshell" \
     -d description="Webshell patterns" \
     -X PUT \
     https://HOSTNAME/api/sonar/pattern-groups
Request Parameters
KeyRequiredTypeDescriptionNote
guidOStringPattern group GUID36 characters
nameOStringPattern group nameMinimum 1 to maximum 50 characters
descriptionXStringPattern group descriptionMaximum 50 characters

Success Response

{}

Error Responses

Required argument is missing

HTTP status code 400

{
    "error_code": "null-argument",
    "error_msg": "name should be not null"
}
Invalid argument length

HTTP status code 400

{
    "error_code": "invalid-argument",
    "error_msg": "'name' must be less than or equal to 50 characters."
}
Pattern group is not found

HTTP status code 500

{
    "error_code": "illegal-state",
    "error_msg": "pattern group not found: c1dfe306-abba-4ed8-862b-0e98e2effcb5"
}
Duplicated group name

HTTP status code 500

{
    "error_code": "illegal-state",
    "error_msg": "duplicated pattern group name: Webshell"
}
No privileges to update a pattern group

HTTP status code 500

{
    "error_code": "illegal-state",
    "error_msg": "no-permission"
}