# CommandList

Represents list of command and related comment in YouTrack. Can be used to either apply a command or get command suggestions.

## Related Resources

Below you can find the list of resources that let you work with this entity.

* [Commands](resource-api-commands.html)

* [Command Suggestions](resource-api-commands-assist.html)

## Attributes

This table describes attributes of the `CommandList` 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 command list. `Read-only`.  |
|  comment  |  String  |  A comment to add to an issue. `Can be null`.  |
|  visibility  |  [CommandVisibility](api-entity-CommandVisibility.html)  |  Stores visibility settings for a comment added with the command.  |
|  query  |  String  |  Stores a command to apply. `Can be null`.  |
|  caret  |  Int  |  Current caret position. End of current command by default.  |
|  silent  |  Boolean  |  If true, the command is applied without notification. The default value is false.  |
|  runAs  |  String  |  Login for a user on whose behalf the command is executed. To use the runAs parameter, you must have the Low-level Administration permission. `Can be null`.  |
|  commands  |  [Array of ParsedCommands](api-entity-ParsedCommand.html)  |  Stores a collection of commands parsed from the provided query. `Read-only`.  |
|  issues  |  [Array of Issues](api-entity-Issue.html)  |  Stores a collection of issues to which the current command applies.  |
|  suggestions  |  [Array of Suggestions](api-entity-Suggestion.html)  |  Stores a collection of possible command suggestions. `Read-only`.  |

