Operations with Specific SavedQuery
This resource lets you access and work with saved searches in YouTrack.
Resource | /api/savedQueries/{queryID} |
Returned entity | SavedQuery. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
|
SavedQuery attributes
Represents a saved search.
Related Resources
Below you can find the list of resources that let you work with this entity.
Extends WatchFolder
Attributes
This table describes attributes of the SavedQuery
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The ID of the saved search. |
query | String | The query that is saved in this search. |
issues | Array of Issues | The collection of issues that match this saved search. |
visibleFor | UserGroup | Deprecated. Use the Group of users that can see this saved search. If the saved search is visible only to its owner, this property is null. Can be null . |
updateableBy | UserGroup | Deprecated. Use the Group of users that can update this saved search. If only the owner of the saved search can update it, this property is null. Can be null . |
readSharingSettings | WatchFolderSharingSettings | Users and groups that can see this saved search. If the saved search is visible only to its owner, this property contains an empty array. |
updateSharingSettings | WatchFolderSharingSettings | Users and groups that can update this saved search. If only the owner of the saved search can update it, this property contains an empty array. |
owner | User | The user who created the watch folder. |
name | String | The name of the issue folder. |
Read a Specific SavedQuery
Read settings of the saved search with the specified ID.
Required permissions
To view a saved search, the user should be either its author or be a part of the user group the saved search is shared with.
Request syntax
{queryID} | Database ID of the saved search. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of SavedQuery attributes that should be returned in the response. If no field is specified, only the |
Sample
Sample request
Sample response body
Update a Specific SavedQuery
Update settings of the saved search with the specified ID.
Required permissions
To update a saved search, the user should be either its author or be a part of the user group that can edit this saved search.
Request syntax
{queryID} | Database ID of the saved search. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of SavedQuery attributes that should be returned in the response. If no field is specified, only the |
Sample
Sample request
Sample request body
Sample response body
Delete a Specific SavedQuery
Delete the saved search with the specified ID.
Required permissions
To delete a saved search, the user should be either its author or be a part of the user group that can edit this saved search.
Request syntax
{queryID} | Database ID of the saved search. |
Request parameters
Parameter | Type | Description |
---|---|---|
fields | String | A list of SavedQuery attributes that should be returned in the response. If no field is specified, only the |