Skip to content

getSavedSearches

GET
Use dark colors for code blocksCopy
1
/{orgId}/{itemId}/searches
Get saved searches

Get all the saved searches or charts, including searchId, name, folder, definition, search type, color ramp for charts and sort index.

Get Saved Searches Parameters:

ParameterDescriptionData Type
searchTypeOptional. The search type for returned saved searches. The accepted values are Standard, Chart and All. If not defined, the Standard searches are returned.String

Query parameters

NameTypeRequired
tokenstring¦null
searchTypestring¦null

Path parameters

NameTypeRequired
orgIdstring
itemIdstring

Response status

StatusMeaningDescriptionSchema
200OK

List of saved searches or charts

inline
400Bad Request

invalid object

WorkflowJsonExceptionDTO

Response details

Status Code 200

SavedSearches

NameTypeRequiredDescription
searches[SavedSearch]

Examples

Request

Use dark colors for code blocksCopy
1
2
3
# You can also use wget
curl -X GET /{orgId}/{itemId}/searches \
  -H 'Authorization: Bearer <YOUR_TOKEN>'

Response

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  "searches": [
    {
      "searchId": "string",
      "name": "string",
      "folder": "string",
      "definition": {
        "q": "string",
        "search": "string",
        "fields": [
          "string"
        ],
        "displayNames": [
          "string"
        ],
        "sortFields": [
          {
            "field": "string",
            "sortOrder": "Asc"
          }
        ],
        "spatialExtent": "string",
        "hasLocation": true,
        "start": 0,
        "num": 0,
        "returnAllRelatedProperties": true
      },
      "searchType": "Chart",
      "colorRamp": "string",
      "sortIndex": 0
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.