POST ./edumarket/widget
Tags: admin-only
It is used to add a new widget to an offer.
POST parameters
| Name | Value Type | Validation | Details |
|---|---|---|---|
| ewTitlu | string | Required | Widget title. |
| ewContinut | string | Optional | Widget details. |
| ewIcon | int | Optional | Icon ID. |
| ewOrderId | int | Optional | Order ID. To set the order of widgets on the listing page. |
| ewOfertaId | int | Optional | The offer ID to which this widget is assigned. |
| ewIsDeleted | int | Optional | Deleted widget; 0-activ/ 1-inactiv. |
Validation
| Error Field | Error Code | Error Message |
|---|---|---|
| ewIcon | 102 | Invalid iconID |
| ewOfertaId | 103 | Invalid ofertaID |
Output example
{"success": true}
