POST ./edumarket/widget

Tags: admin-only

It is used to add a new widget to an offer.

POST parameters

NameValue TypeValidationDetails
ewTitlustringRequiredWidget title.
ewContinutstringOptionalWidget details.
ewIconintOptionalIcon ID.
ewOrderIdintOptionalOrder ID. To set the order of widgets on the listing page.
ewOfertaIdintOptionalThe offer ID to which this widget is assigned.
ewIsDeletedintOptionalDeleted widget; 0-activ/ 1-inactiv.

Validation

Error FieldError CodeError Message
ewIcon102Invalid iconID
ewOfertaId103Invalid ofertaID

Output example

{
"success": true
}