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

NameValue TypeValidationDetails
emoOfertantIDintRequiredTenderer ID
emoNumestringRequiredOffer name
emoDescrierestringOptionalShort description of the offer
emoContinutstringOptionalOffer details
emoCoverstringOptionalCover offer; Base64 encoded image
emoLinkstringOptionalExternal link
emoObservatiistringOptionalInternal observations
permisiuni[]arrayRequiredThe types of users who can view the offer.
ani_studiu[]arrayRequiredStudy years that can visualize the offer
licee[]arrayRequiredThe list with highschools where the offer will be available
emoIsDeletedintOptionalDeleted offer; in_list[0,1]

Validation

Error FieldError CodeError Message
ani_studiu105Invalid ID

Output example

{
"success": true
}