post
https://api.duodeal.app/api/deal-views
Creates a new deal view template.
Deal views define which fields are visible when a deal is shared externally via a deal view link.
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | View template name |
byDefault | boolean | No | Set as default view template (default: false) |
fields | array | No | Configuration of fields to display (see Fields below) |
Fields Array
Each field object in the array can contain:
| Field | Type | Description |
|---|---|---|
name | string | Field name/identifier |
visible | boolean | Whether the field is visible in this view |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Newly created deal view unique identifier |
name | string | View template name |
fields | array | Fields configuration |
byDefault | boolean | Default view status |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
201 Created: Deal 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
