post
https://api.duodeal.app/api/filter-views
Creates a new filter view (saved filter configuration).
The created view is automatically owned by the authenticated user.
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
label | string | Yes | View display name |
scope | string | Yes | Entity scope (see Scopes below) |
share | boolean | Yes | Whether to share with other users |
favorite | boolean | Yes | Mark as favorite |
columns | array | No | List of column names to display |
filters | object | No | Filter criteria (see Filters below) |
sort | string | No | Field name to sort by |
direction | string | No | Sort direction: asc or desc |
Scopes
| Scope | Description |
|---|---|
deals | Deals/opportunities list |
customers | Customers/contacts list |
quotations | Quotations list |
products | Products catalog |
Filters Object
Filter criteria use field names as keys with operator objects:
{
"fieldName": {
"eq": "exact value",
"gte": 100,
"lte": 500,
"like": "partial"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Newly created filter view unique identifier |
label | string | View display name |
scope | string | Entity scope |
share | boolean | Shared status |
favorite | boolean | Favorite status |
columns | array | Column configuration |
filters | object | Filter criteria |
sort | string | Sort field |
direction | string | Sort direction |
owner | object | View owner (current user) |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
201 Created: Filter view successfully created400 Bad Request: Invalid request body or validation error401 Unauthorized: Invalid or missing API key
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
201Resource created
400Bad request
401Unauthorized
