post
https://api.duodeal.app/api/products
Creates a new product in the catalog.
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Product name |
reference | string | No | Product reference/SKU |
description | string | No | Product description |
active | boolean | No | Whether product is active (default: true) |
archived | boolean | No | Whether product is archived (default: false) |
url | string | No | External URL (e.g., supplier link) |
tips | string | No | Additional tips or notes |
customFields | object | No | Custom field values |
unity | object | No | Unit of measure: {"id": <unity_id>} |
medias | array | No | Associated media files: [{"id": <media_id>}, ...] |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Newly created product unique identifier |
name | string | Product name |
reference | string | Product reference/SKU |
description | string | Product description |
active | boolean | Whether product is active |
archived | boolean | Whether product is archived |
url | string | External URL |
tips | string | Additional tips or notes |
customFields | object | Custom field values |
unity | object | Unit of measure |
medias | array | Associated media files |
prices | array | Product prices (empty on creation) |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
201 Created: Product 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
