Sort instance by metric and attribute
PUT {{baseUrl}}/api/v2/reports/:reportId/instances/:instanceId
Request Params
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'. |
Request Body
{"sorting"=>[{"type"=>"metric", "metric"=>{"id"=>"4C051DB611D3E877C000B3B2D86C964F", "name"=>"Profit"}}, {"type"=>"attribute", "attribute"=>{"id"=>"8D679D5111D3E4981000E787EC6DE8A4", "name"=>"Year"}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-MSTR-AuthToken | string | (Required) | |
X-MSTR-ProjectID | string | (Required) |