> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# supportViewCreate

> Create a view every member of the store sees in the help desk sidebar, after the store's other views. Creating one with a deleted shared view's name restores that view with its id. Throws a 409 CONFLICT error when another shared view has the name, and a 404 NOT_FOUND error when the folder doesn't exist.

**Required scopes:** [`support_config_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_write)

## Arguments

**input** `[SupportViewCreateInput!](/docs/api-reference/v3/reference/support/support-view-create-input)` *required*

The new view.

**fields**

**filters** `[SupportViewFiltersInput!](/docs/api-reference/v3/reference/support/support-view-filters-input)` *required*

Which tickets the view lists.

**fields**

**assigneeIds** `[ID!]`

Tickets assigned to any of these team members, at most 100. `assigneeIds`, `assigneeTypes` and `includeUnassigned` match as one OR.

**assigneeTypes** `[\[SupportTicketAssigneeType!\]](/docs/api-reference/v3/reference/support/support-ticket-assignee-type)`

Tickets with any of these kinds of assignee.

**channels** `[\[MessageChannel!\]](/docs/api-reference/v3/reference/support/message-channel)`

On any of these channels.

**closedAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Closed after this instant.

**closedBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Closed before this instant.

**createdAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Created after this instant.

**createdBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Created before this instant.

**excludedTagIds** `[ID!]`

Has none of these tags, at most 100.

**includeUnassigned** `Boolean`

Also match tickets with no assignee.

**lastResponseAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Last message, from the customer or the team, after this instant.

**lastResponseBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Last message, from the customer or the team, before this instant.

**query** `String`

The inbox search: message and subject words, the customer's name, email or phone, order numbers. At most 200 characters.

**statuses** `[\[SupportTicketStatus!\]](/docs/api-reference/v3/reference/support/support-ticket-status)`

Any of these. Omitted or empty: every status but ARCHIVED, as the help desk lists tickets; name ARCHIVED to include archived tickets.

**tagIds** `[ID!]`

Has any of these tags, at most 100.

**folderId** `ID`

The folder to put the view in. Omitted: no folder.

**name** `String!` *required*

The view's name, unique among the store's shared views, at most 255 characters.

**orderBy** `[SupportTicketSortKey](/docs/api-reference/v3/reference/support/support-ticket-sort-key)`

How the view sorts its tickets. Default LAST\_RESPONSE\_AT.

**reverse** `Boolean`

Reverses `orderBy`, oldest or lowest first.

## Returns

**supportViewCreate** `[SupportView!](/docs/api-reference/v3/reference/support/support-view)` *required*

A saved ticket list in the help desk sidebar: filters and an order, shared by everyone in the store. Views a team member keeps private aren't in the API.

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the view was created.

**filters** `[SupportViewFilters](/docs/api-reference/v3/reference/support/support-view-filters)`

The view's filters. Null when the view uses a filter, or a combination, the API has no field for; `tickets` still lists its tickets.

**fields**

**assigneeIds** `[ID!]!` *required*

Tickets assigned to any of these team members. `assigneeIds`, `assigneeTypes` and `includeUnassigned` match as one OR.

**assigneeTypes** `[\[SupportTicketAssigneeType!\]!](/docs/api-reference/v3/reference/support/support-ticket-assignee-type)` *required*

Tickets with any of these kinds of assignee.

**channels** `[\[MessageChannel!\]!](/docs/api-reference/v3/reference/support/message-channel)` *required*

On any of these channels.

**closedAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Closed after this instant.

**closedBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Closed before this instant.

**createdAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Created after this instant.

**createdBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Created before this instant.

**excludedTagIds** `[ID!]!` *required*

Has none of these tags.

**includeUnassigned** `Boolean!` *required*

Whether tickets with no assignee also match.

**lastResponseAfter** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Last message, from the customer or the team, after this instant.

**lastResponseBefore** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Last message, from the customer or the team, before this instant.

**query** `String`

The inbox search text. Null when there is none.

**statuses** `[\[SupportTicketStatus!\]!](/docs/api-reference/v3/reference/support/support-ticket-status)` *required*

Any of these statuses. Empty: every status but ARCHIVED, as `supportTickets` reads no `statuses`.

**tagIds** `[ID!]!` *required*

Has any of these tags.

**folder** `[SupportViewFolder](/docs/api-reference/v3/reference/support/support-view-folder)`

The folder the view sits in. Null when it's in none.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**fields**

**id** `ID!` *required*

The id of this folder.

**name** `String!` *required*

The folder's name, unique within the store.

**views** `[SupportViewConnection!](/docs/api-reference/v3/pagination)` *required*

The folder's shared views, in sidebar order.

**Requires:** [`support_config_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_config_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns views after it.

**before** `String`

Backward pagination cursor — returns views before it.

**first** `Int`

Forward pagination: returns the first N views (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N views (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[SupportViewEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[SupportView!\]!](/docs/api-reference/v3/reference/support/support-view)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**id** `ID!` *required*

The id of this view.

**name** `String!` *required*

The view's name, unique among the store's shared views.

**orderBy** `[SupportTicketSortKey!](/docs/api-reference/v3/reference/support/support-ticket-sort-key)` *required*

How the view sorts its tickets. LAST\_RESPONSE\_AT when it saved no order.

**reverse** `Boolean!` *required*

Whether the view reverses `orderBy`, oldest or lowest first.

**tickets** `[SupportTicketConnection](/docs/api-reference/v3/pagination)`

The view's tickets in its saved order, as the help desk lists them: spam and the AI agent's tickets are left out unless the view's filters ask for them. Null when the saved filters can't be read. Search-indexed, so it can trail writes by a few seconds.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns tickets after it.

**before** `String`

Backward pagination cursor — returns tickets before it.

**first** `Int`

Forward pagination: returns the first N tickets (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N tickets (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[SupportTicketEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[SupportTicket!](/docs/api-reference/v3/reference/support/support-ticket)` *required*

The item at this edge.

**nodes** `[\[SupportTicket!\]!](/docs/api-reference/v3/reference/support/support-ticket)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

**assignee** `[TeamMember](/docs/api-reference/v3/reference/common/team-member)`

The team member the ticket is assigned to. Null unless `assigneeType` is TEAM\_MEMBER, and null when they've left the team.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**assigneeType** `[SupportTicketAssigneeType](/docs/api-reference/v3/reference/support/support-ticket-assignee-type)`

What kind of assignee the ticket has. Null when unassigned.

**channels** `[\[MessageChannel!\]!](/docs/api-reference/v3/reference/support/message-channel)` *required*

Every channel the ticket's threads are on, each once, in no set order. Detached threads are left out, as in `threads`.

**closureReason** `[SupportTicketClosureReason](/docs/api-reference/v3/reference/support/support-ticket-closure-reason)`

Why the ticket was closed. Null unless `status` is CLOSED.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the ticket was created.

**customer** `[Customer](/docs/api-reference/v3/reference/customers/customer)`

The customer the ticket is with: the primary contact on its most recently added thread that has one. Detached and deleted threads are left out, as in `threads`. Null when no thread has one.

**Requires:** [`customers_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-customers_read)

**customerSentiment** `[SupportTicketCustomerSentiment](/docs/api-reference/v3/reference/support/support-ticket-customer-sentiment)`

How the customer seems to feel, from the AI's read of the ticket. Null until it has one.

**draftPreview** `String`

The text of the team's most recently edited unsent reply, on any of the ticket's threads. Null when there's no draft.

**id** `ID!` *required*

The id of this ticket.

**lastCustomerMessageAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the customer last wrote. Null if they haven't written yet.

**lastMerchantMessageAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the team, the AI agent or an automation last wrote to the customer. Null if none has.

**lastMessage** `[Message](/docs/api-reference/v3/reference/support/message)`

The ticket's newest message with text, internal notes included. It skips the messages the ticket's `messages` list leaves out. Null when it has none.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**mergedInto** `[SupportTicket](/docs/api-reference/v3/reference/support/support-ticket)`

The ticket this one was merged into. Null unless it was merged, which also closes it as DUPLICATE.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**mergedTickets** `[SupportTicketConnection!](/docs/api-reference/v3/pagination)` *required*

The tickets merged directly into this one, oldest first.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns tickets after it.

**before** `String`

Backward pagination cursor — returns tickets before it.

**first** `Int`

Forward pagination: returns the first N tickets (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N tickets (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**messages** `[MessageConnection!](/docs/api-reference/v3/pagination)` *required*

The ticket's messages, oldest first, internal notes included. Messages of tickets merged into it stay on those tickets. A thread can hold messages from other tickets, which this leaves out; `thread.messages` has them all.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns messages after it.

**before** `String`

Backward pagination cursor — returns messages before it.

**first** `Int`

Forward pagination: returns the first N messages (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N messages (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**priority** `[SupportTicketPriority!](/docs/api-reference/v3/reference/support/support-ticket-priority)` *required*

How urgent the ticket is.

**readAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the team last read the ticket. Null if no one has opened it.

**snoozedUntil** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the ticket reopens on its own. Null unless `status` is SNOOZED.

**status** `[SupportTicketStatus!](/docs/api-reference/v3/reference/support/support-ticket-status)` *required*

Where the ticket is in its lifecycle.

**statusUpdatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When `status` last changed.

**summary** `String`

The AI's summary of the ticket. Null until one has been written.

**tags** `[SupportTagConnection!](/docs/api-reference/v3/pagination)` *required*

The tags on the ticket, ordered by name.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns tags after it.

**before** `String`

Backward pagination cursor — returns tags before it.

**first** `Int`

Forward pagination: returns the first N tags (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N tags (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**threads** `[MessageThreadConnection!](/docs/api-reference/v3/pagination)` *required*

The threads the ticket's conversation is on, oldest first.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns threads after it.

**before** `String`

Backward pagination cursor — returns threads before it.

**first** `Int`

Forward pagination: returns the first N threads (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N threads (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**ticketNumber** `Int`

The ticket number the help desk shows, unique within the store. Null for some older tickets.

**timeline** `[SupportTicketEventConnection!](/docs/api-reference/v3/pagination)` *required*

What happened on the ticket, oldest first.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns events after it.

**before** `String`

Backward pagination cursor — returns events before it.

**first** `Int`

Forward pagination: returns the first N events (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N events (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**unread** `Boolean!` *required*

Whether the customer wrote after the team last read the ticket. False when the customer hasn't written.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the ticket last changed.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the view last changed.

## Example

```graphql theme={null}
mutation {
  supportViewCreate(input: { ... }) {
    createdAt
    id
    name
    orderBy
    reverse
    tickets {
      nodes {
        assigneeType
        channels
        closureReason
        createdAt
        customerSentiment
        draftPreview
        id
        lastCustomerMessageAt
        # ...
      }
      pageInfo { hasNextPage endCursor }
    }
    updatedAt
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.