A view consists of one or more conditions that define a collection of tickets to display. If the conditions are met, the ticket is included in the view. For example, a view can display all open tickets that were last updated more than 24 hours ago.

For more information, see Creating views to manage ticket workflow.

JSON format

Views are represented as JSON objects with the following properties:

NameTypeRead-onlyMandatoryDescription
activebooleanfalsefalseWhether the view is active
conditionsobjectfalsefalseDescribes how the view is constructed. See Conditions reference
created_atstringtruefalseThe time the view was created
defaultbooleantruefalseIf true, the view is a default view
descriptionstringfalsefalseThe description of the view
executionobjectfalsefalseDescribes how the view should be executed. See Execution
idintegertruefalseAutomatically assigned when created
positionintegerfalsefalseThe position of the view
restrictionobjectfalsefalseWho may access this view. Is null when everyone in the account can access it
titlestringfalsefalseThe title of the view
updated_atstringtruefalseThe time the view was last updated

Execution

A view's execution object is a read-only object that describes how to display a collection of tickets in the view.

NameTypeComment
group_by, sort_bystringSort or group the tickets by a column in the View columns table. The subject and submitter columns are not supported
group_order, sort_orderstringEither "asc" or "desc"
columnsarrayThe ticket fields to display. Custom fields have an id, title, type, and url referencing the ticket field
groupobjectWhen present, the structure indicating how the tickets are grouped
sortobjectThe column structure of the field used for sorting

Example

{    "execution": {      "columns": [        { "id": "status",  "title": "Status" },        { "id": "updated", "title": "Updated" },        {          "id": 5, "title": "Account", "type": "text",          "url": "https://example.zendesk.com/api/v2/ticket_fields/5"        },        ...      ]      "group": { "id": "status", "title"