Enable Offer
#
DetailsThis endpoint enables the offer specified by offerId.
URL : /offers/:offerId/enable
Method :
PUT
Authentication
Auth is required to hide an Offer as a Company or Admin. Otherwise, if in god mode, god_token must be provided. If the offer was disabled by an admin, then the company cannot enable it.
Concurrent Offers
The time when the offer is enabled must not make the respective company exceed the maximum number of concurrent active offers.
#
Parameters#
god_tokenBody Parameter
Optional
String
If set, will use this for validating the usage of god mode (in case no session details are available, i.e., no logged-in user).
#
Request examples#
Example 1 - Valid RequestCode :
200 OK
- Request
- Response
#
Example 2 - Non-Existing OfferCode :
422 UNPROCESSABLE ENTITY
- Request
- Response
#
Example 3 - Blocked Offer (Logged-in as the Company)Code :
403 FORBIDDEN
- Request
- Response
#
Example 4 - Disabled CompanyCode :
403 FORBIDDEN
- Request
- Response
#
Example 5 - Maximum number of concurrent offers exceededCode :
422 UNPROCESSABLE ENTITY
- Request
- Response
#
Example 6 - Logged-in as a Different CompanyCode :
403 FORBIDDEN
- Request
- Response