POST ./edumarket/oferta
Tags: admin-only
It is used to add a new offer.
Observation: The default permissions will be [0, 0, 0, 0]. For permission for all user we will use [1, 2, 3, 5]. 1 - Student; 2 - Parent; 3 - Teacher; 5 - County School Inspectorate;
POST parameters
Name | Value Type | Validation | Details |
---|---|---|---|
emoOfertantID | int | Required | Tenderer ID |
emoNume | string | Required | Offer name |
emoDescriere | string | Optional | Short description of the offer |
emoContinut | string | Optional | Offer details |
emoCover | string | Optional | Cover offer; Base64 encoded image |
emoLink | string | Optional | External link |
emoObservatii | string | Optional | Internal observations |
permisiuni[] | array | Required | The types of users who can view the offer. |
ani_studiu[] | array | Required | Study years that can visualize the offer |
licee[] | array | Required | The list with highschools where the offer will be available |
emoIsDeleted | int | Optional | Deleted offer; in_list[0,1] |
Validation
Error Field | Error Code | Error Message |
---|---|---|
ani_studiu | 105 | Invalid ID |
Output example
{"success": true}