All pages
Powered by GitBook
1 of 1

Loading...

Delete a query

DeleteAssessmentQuery removes a query by ID.

By default, this operation does not delete assessments that are currently included in a report. Set the force option to true to delete an assessment regardless of its usage in reports.

Sample request:

curl -X 'DELETE' \
"$BASE_URL/api/v1/assessments/queries/c169c41c-2650-4f39-8930-f198f70f892b?force=true" \
-H "authorization: Bearer $VEZA_TOKEN"

Sample response:

A successful response will be empty:

{}
delete
Authorizations
Path parameters
idstringRequired
Query parameters
forcebooleanOptional
Responses
200
A successful response.
application/json
Responseobject
401
Authorization information is missing or invalid.
403
Returned when the user does not have permission to access the resource.
application/json
404
Returned when the resource does not exist.
500
Server error
502
Returned when the service is temporarily unavailable.
503
Returned when the resource is temporarily unavailable.
delete
DELETE /api/v1/assessments/queries/{id} HTTP/1.1
Host: 
Bearer: YOUR_API_KEY
Accept: */*
{}