Get a Saved Search by Name
GET /user/search/{savedQuery}
Get saved search by name
GET /rest/user/search/{savedQuery}
Name | Type | Description |
---|---|---|
savedQuery | searchName | Name of a saved search to get. |
Samples
Sample 1
GET http://localhost:8081/rest/user/search/Query%20name
Cookie: $Version=0; JSESSIONID=1h2t265efsl30fhu4777pu8z6; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/
HTTP/1.1 200 OK
Content-Type: application/xml;charset=UTF-8
Content-Length: 184
Server: Jetty(7.2.0.v20101020)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<search name="Query name" projectShortName="HBR" visibleForGroup="idea-developers" updatableByGroup="idea-admins">#Fixed</search>
Sample 2
GET http://localhost:8081/rest/user/search/Query%20name
Cookie: $Version=0; JSESSIONID=1h2t265efsl30fhu4777pu8z6; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/
HTTP/1.1 404 Not Found
Content-Type: application/xml;charset=UTF-8
Content-Length: 106
Server: Jetty(7.2.0.v20101020)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error>Saved search [Query name] not found.</error>
Last modified: 2 February 2017