YouTrack Standalone 2017.2 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 https://example.com/youtrack/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: https://example.com/youtrack/rest/user/search/Query%20name Content-Length: 0
Last modified: 7 March 2019