Sort instance by metric and attribute
PUT {{baseUrl}}/api/v2/reports/:reportId/instances/:instanceId
Body
PARAM
Key | Datatype | Required | Description |
offset
|
null | Starting point within the collection of returned results. Used to control paging behavior. Default value : 0 | |
limit
|
null | Maximum number of items returned for a single request. Used to control paging behavior. Use -1 for no limit. Default value : 1000 | |
standardDateFormat
|
null | Standard date format in ISO8601 | |
standardRawDateFormat
|
null | Standard raw date format in ISO8601 | |
fields
|
null | Field selector. This allows client to exclude unneeded information from response model. It can be either empty, or a combination of following exclusion rules separated by comma: '-data.metricValues.raw' / '-data.metricValues.formatted' / '-data.metricValues.extras'. |
HEADERS
Key | Datatype | Required | Description |
X-MSTR-AuthToken
|
string | (Required) | |
X-MSTR-ProjectID
|
s Curl curl -X PUT 'baseUrl/api/v2/reports/:reportId/instances/:instanceId?offset=&limit=&standardDateFormat=&standardRawDateFormat=&fields=' -H 'X-MSTR-AuthToken: authToken' -H 'X-MSTR-ProjectID: projectId' -d '{"sorting":[{"type":"metric","metric":{"id":"4C051DB611D3E877C000B3B2D86C964F","name":"Profit"}},{"type":"attribute","attribute":{"id":"8D679D5111D3E4981000E787EC6DE8A4","name":"Year"}}]}' ENDPOINTS |