Delete report queries API for commercial marketplace
This API deletes user-defined queries.
Request syntax
Method | Request URI |
---|---|
DELETE | https://api.partnercenter.microsoft.com/insights/v1.1/cmp/ScheduledQueries/{queryId} |
Request header
Header | Type | Description |
---|---|---|
Authorization | string | Required. The Microsoft Entra access token in the form Bearer <token> |
Content-Type | string | Application/JSON |
Path parameter
Parameter name | Type | Description |
---|---|---|
queryId |
string | Filter to get details of only queries with the ID given in this argument |
Query parameter
None
Request payload
None
Glossary
None
Response
The response payload is structured as follows in JSON format.
Response code: 200, 400, 401, 403, 404, 500
Response payload:
{
"Value": [
{
"QueryId": "string",
"Name": "string",
"Description": "string",
"Query": "string",
"Type": "string",
"User": "string",
"CreatedTime": "string",
}
],
"TotalCount": 0,
"Message": "string",
"StatusCode": 0
}
Glossary
This table lists the key definitions of elements in the response.
Parameter | Description |
---|---|
QueryId |
Unique UUID of the query that was deleted. |
Name |
Name of the query that was deleted |
Description |
Description of the deleted query |
Query |
Report query string of the deleted query |
Type |
userDefined |
User |
User ID who created the query |
CreatedTime |
Time the query was created |
TotalCount |
Number of datasets in the Value array |
StatusCode |
Result Code. The possible values are 200, 400, 401, 403, 500 |