Edit Offer
#
DetailsThis endpoint is used to edit offers. Both Admins and Companies can use it.
URL : /offers/edit/:offerId
Method :
Authentication
Auth is required to edit an Offer as a Company or Admin. Otherwise, if in god mode, god_token must be provided.
Concurrent Offers
The time when the offer is published must not make the respective company exceed the maximum number of concurrent active offers.
#
Parameters#
god_tokenIf set, will use this for validating the usage of god mode (in case no session details are available, i.e., no logged-in user).
#
ownerIf the logged-in user is a company, this is not required.
Otherwise, it specifies the company to link this offer to.
#
titleThe title of the offer, used in search.
#
publishDateThe date when the offer will be made public (published).
Must be in the future.
#
publishEndDateThe date when the offer will be "hidden" from the application (will be invisible to search).
- Must be after
now
(in the future). - Must be after the publishDate, if present.
- Must not exceed 6 months after publishDate.
#
jobMinDurationThe duration of the work itself (in months).
- Must be an Integer (positive).
#
jobMaxDurationThe duration of the work itself (in months).
- Must be an Integer (positive).
#
jobStartDateThe date when the job is expected to begin.
#
descriptionThe offer description. Text that is shown when users request info about a specific offer.
#
contactsList of contacts regarding offer information.
#
isPaidInforms if the offer has paid compensation.
#
vacanciesNumber of vacancies available.
- Must be an Integer (positive)
#
jobTypeType of offer.
caution
Must be a valid Job Type (
currently ["FULL-TIME", "PART-TIME", "SUMMER INTERNSHIP", "CURRICULAR INTERNSHIP", "RESEARCH GRANT", "OTHER"]
).
#
fieldsSpecifies the fields (areas) the offer corresponds to.
caution
Must be a valid Field Type ( see list).
#
technologiesSpecifies the technologies the offer is looking for.
caution
Must be a valid Technology Type ( see list).
#
isHiddenIf true, the offer will not show up in search by default. However, the owner and admins can still see it, by activating
the showHidden
flag when searching.
#
locationWhere the work will be done (usually in City, Country
format).
#
coordinatesThe coordinates of the workplace, so that a map can be shown in the UI.
#
requirementsAn array of strings containing job requirements in list form. Useful to list them in a more straightforward way.
#
applyURLURL that users can use to apply to the offer. Must use http, https or mailto protocols.
Must respect the following regex: https?://S+.\S+
#
Request examples#
Example 1 - Valid Request (Logged-in as Company)Code :
- Request
- Response
#
Example 2 - Publish Date in the PastCondition : If publishDate
is in the past.
Code :
- Request
- Response
#
Example 3 - Publish time over 6 month limitCondition : If publishEndDate
is more than 6 months after publishDate
.
Code :
- Request
- Response
#
Example 4 - Maximum number of concurrent offers exceededCondition : If the owner has more than 5 offers active (published and non-hidden) at a same point in time.
Code :
- Request
- Response
#
Example 5 - Disabled company (Logged-in as Admin)Condition : If the owner is disabled.
Code :
- Request
- Response
#
Example 6 - Offer blocked (With god token)Condition : If the offer has been blocked by an Admin.
Code :
- Request
- Response