Logo
MicroStrategy REST API API Documentation

Get results from a search object using quick search

GET {{baseUrl}}/api/searchObjects/:searchObjectId/results

Use an existing search object for Quick Search engine to return search results and display them as a list. You obtain the authorization token needed to execute the request using POST /auth/login; you obtain the project ID using GET /projects. You pass the authorization token and the project ID in the request header. You specify the search criteria using query parameters in the request; criteria can include the root folder ID, the type of object, whether to return ancestors of the object, a search pattern such as Begins With or Exactly, and the certified status of the object being searched for. You use the offset and limit query parameters to control paging behavior. The offset parameter specifies where to start returning search results, and the limit parameter specifies how many results to return.

 

Body PARAM

Key Datatype Required Description 
offset
number Starting point within the collection of returned results. Used to control paging behavior.
limit
number Maximum number of items returned for a single request. Used to control paging behavior. Use -1 for no limit.
includeAncestors
boolean Specifies whether to return the list of ancestors for each object
includeAcl
boolean Specifies whether to return the list of ACL for each object
result.subtypes
null This parameter is used to filter the objects in the result to include only the ones whose “subtype” is included in the values of this parameter
fields
null Comma-separated, top-level field whitelist that allows the client to selectively retrieve part of the response model. If specified, extra filtering is applied, and for top-level object (if root model is an array, each array element), only the listed fields are kept in the response. For example, "id,elements" keeps only the "id" field and whole "elements" array field, omitting all other fields in the top-level response model.



HEADERS

Curl
curl -X GET 'baseUrl/api/searchObjects/:searchObjectId/results?offset=0&limit=50&includeAncestors=false&includeAcl=false&result.subtypes=&fields=' -H 'X-MSTR-AuthToken: authToken' -H 'X-MSTR-ProjectID: projectId'

ENDPOINTS

    Key