Remove Procedures
Removes specified procedures.
Required Permissions
Requires the ADMIN role or higher.
HTTP Request
DELETE /api/sonar/procedures
cURL Example
curl -H "Authorization: Bearer <API_KEY>" \
-d guids=5ad13151-dbc1-41c0-92a7-dfeb5f534f4c \
-X DELETE https://HOSTNAME/api/sonar/procedures
Request Parameter
| Key | Requied | Type | Description | Note |
|---|---|---|---|---|
| guids | O | List of Strings | Procedure identifier list | Comma-separated GUID list |
Success Response
{
"failures": []
}
Error Responses
Procedure is not found
HTTP status code 200
{
"failures": [
{
"id": "c1dfe306-abba-4ed8-862b-0e98e2effcb6",
"reason": "procedure-not-found"
}
]
}
No administrative privilege
HTTP status code 500
{
"error_code": "illegal-state",
"error_msg": "no-permission"
}