Create View
gorgias_create_viewCreate a customized ticket list view with filters, sorting, and shared visibility to streamline helpdesk workflows.
Instructions
POST /api/views — Create a new view with filters, sorting, and visibility settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name of the view (default: empty string) | |
| type | No | Type of objects the view applies to. Only 'ticket-list' is supported (default: 'ticket-list') | |
| fields | No | Ticket attribute names to display as UI columns | |
| search | No | Free-text search query to filter matching items | |
| filters | No | JavaScript-style filter expression. Supports template variables e.g. eq(ticket.assignee_user.id, '{{current_user.id}}') && eq(ticket.status, 'open') | |
| order_by | No | Ticket attribute used to sort view items (default: 'updated_datetime') | |
| order_dir | No | Sort direction for view items (default: 'desc') | |
| decoration | No | Display configuration for the view | |
| section_id | No | ID of the view section to place this view in | |
| visibility | No | Access level: 'public' (all users), 'shared' (specific users/teams plus admins), 'private' (single user). Default: 'public' | |
| shared_with_teams | No | IDs of teams to share the view with. Used when visibility is 'shared'. Max 100 items. | |
| shared_with_users | No | IDs of users to share the view with. Used when visibility is 'shared' or 'private'. Max 100 items. |