Create Saved Search
Create a saved search using the REST API.
Request
Parameters | Name | Required | Details |
---|---|---|---|
Headers | Authorization |
Yes | Information about authentication access token in format "Bearer
<accessToken> " (see details in Authentication API ). |
Content-Type |
Yes | Should be "Content-Type: application/json" . |
|
Body | Yes |
JSON Array with objects representing saved search request objects to create. Each object must have "name" and "query" properties, all other are optional. |
|
Query |
onBehalfOf
|
No | If current user is tenant admin, he can specify user name in this field for whom he is going to create saved search request. |
Response
Array with results for each element of a request. Each result will have the following properties:
index
- index of request object in responded JSON Array.URI
- URI of entity object that is created. Returned only if an object was created successfully.object
- request object created.-
error
- if an object can't be created for some reason. Contains details of the problem. Returns only if an object wasn't created. (See details in Error /*link*/).- Possible Errors:
warning
- if object is created but there were some problems.status
- result of operation; possible values are "OK" or "failed"
- Possible Errors:
Request
If you need to use a semicolon in a query, percent encode the semicolon character. The percent
encoding of the semicolon character is 3B
. Here is an example
of the string "test;aftersemicolon
" using percent encoding: