Skip to main content

Create Featured

POST /v2/product/featured

Creates featured items for one or multiple tenants by associating products or services with featured status. This endpoint automatically filters out duplicate items that are already assigned and supports assigning to a single tenant ID, an array of tenant IDs, or the keyword "all" to use all child tenants. If all items are already assigned to the specified tenant(s), the endpoint will return an error.

Request Body

{
"tenant": "685498954146b339e63e71b1",
"items": ["4991ba15-5bdc-4eac-b4b7-4de6803d74ca"]
}

Response Example

{
"items": [
{
"group_id": "41dce70d-818e-4477-93a9-13814d165569",
"name": "iPhone 16 MAX black",
"description": "",
"ingress": "",
"media": [],
"type": 3,
"price": 13900
},
{
"group_id": "93c47ca1-00f4-41f3-a973-a83b1bdff1a6",
"name": "SFP, 1 GbE, DDM, 550m, I-Temp",
"description": "",
"media": [],
"type": 3,
"price": 11.79
},
{
"id": "67165acb5184d1a1f532324f",
"name": "Subscription service",
"description": "{\"blocks\":[{\"key\":\"adu9o\",\"text\":\"\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
"image": "https://api.zit.red/v1/files/product/6065a9eb6783e09eb34bb844/67165acb5184d1a1f532324f/logo.png",
"type": 1
}
],
"assignedTo": [
"6401cd426edb8f9e16ffc0d1",
"65f30de934f1cc0977ded014"
]
}