YouTrack InCloud 7.0 Help

Create New Saved Search for a User

PUT /user/search/{savedQuery}

Create new user's saved search

PUT /rest/user/search/{searchName}?{projectShortName}&{visibleForGroup}&{updatableByGroup}&{q}

Parameters:

Name Type Description
savedQuery string Name of the saved search.
projectShortName string
projectId
visibleForGroup string Name of a user group, to which the saved search will be visible.
updatableByGroup string Name of a user group, to which should be granted permissions to update the saved search.
q string Search query of the saved search.

Sample

Request

PUT http://localhost:8081/rest/user/search/Query%20name?projectShortName=HBR&visibleForGroup=idea-developers&updatableByGroup=idea-admins&q=%23Fixed Cookie: $Version=0; JSESSIONID=1h2t265efsl30fhu4777pu8z6; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/

Response

HTTP/1.1 201 Created Content-Type: application/xml;charset=UTF-8 Location: http://unit-258.labs.intellij.net:8080/charisma/rest/user/search/Query%20name Content-Length: 0 Server: Jetty(7.2.0.v20101020)
Last modified: 29 September 2016