Skip to content

Files

Latest commit

1012dde · Mar 14, 2022

History

History
91 lines (69 loc) · 2.1 KB

analytics-api-delete-report-queries.md

File metadata and controls

91 lines (69 loc) · 2.1 KB
title description ms.service ms.subservice ms.topic author ms.author ms.reviewer ms.date
Delete report queries API
Use this API to delete user-defined queries for commercial marketplace analytics.
marketplace
partnercenter-marketplace-publisher
article
smannepalle
smannepalle
sroy
03/14/2022

Delete report queries API

This API deletes user-defined queries.

Request syntax

Method Request URI
DELETE https://api.partnercenter.microsoft.com/insights/v1/cmp/ScheduledQueries/{queryId}

Request header

Header Type Description
Authorization string Required. The Azure Active Directory (Azure AD) 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",
      "ModifiedTime": "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
ModifiedTime Null
TotalCount Number of datasets in the Value array
StatusCode Result Code. The possible values are 200, 400, 401, 403, 500