pm_create_view
Create a view. type is one of list / board / table / dashboard / gantt / calendar / gallery. For a newly created list, prefer configuring its auto-created primary view with pm_update_view; add another view only for a distinct workflow. ALWAYS pass columns listing exactly what should be visible, in display order, INCLUDING every custom field you want shown — a view created without columns falls back to system defaults, so custom fields you just created will NOT appear and the view looks empty. This is the most common mistake here: do not create a view and forget to select its columns. If unsure which custom-field column identifiers exist for this scope, call pm_get_workspace_context first instead of guessing. Columns and filters are applied atomically with the create — invalid columnIdentifier or filter shape rolls the whole create back with 400, so a 201 always means the view exists and is fully configured. In columns, the list order is display order and omitted columns are hidden. Keep new custom-field/header names plain; custom-field icons belong in emoji/color metadata. API-key scope: views:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | ||
| scope | Yes | ||
| sortBy | No | ||
| account | No | Multi-account auth only: name of the account from X-Dutify-Accounts to use for this call. Ignored in single-account mode (X-API-Key header). When multiple accounts are configured and this is omitted, the call fails with ACCOUNT_REQUIRED listing the available names. list_accounts never requires a selection. | |
| columns | No | Visible columns in display order — strongly recommended on every create. Each item should include columnIdentifier, isMandatory, and optional fixed. Include every custom field you want viewable; omitted columns are hidden and leaving this out yields a defaults-only, effectively empty view. Headers come from the underlying system/custom-field names; keep names plain and use custom-field emoji/color metadata for icons. | |
| filters | No | Optional filter groups (FilterGroupDTO shape). | |
| groupBy | No | Field name to group by (status, priority, etc.) | |
| isPrivate | No | ||
| workspace | No | Workspace identifier or exact name for this call. Overrides the configured workspace. For personal keys, discover candidates with list_workspaces and select explicitly. Does not change other calls or expand a workspace key's access. | |
| sortDirection | No | ||
| scopeIdentifier | No |