Hide Offer

Details#

This endpoint hides the offer specified by offerId.

URL : /offers/:offerId/hide

Method :

POST

info

This is an action that can be reverted by the company. If you're looking for something more permanent, check disable.

Authentication

Auth is required to hide an Offer as a Company or Admin. Otherwise, if in god mode, god_token must be provided.

Parameters#

god_token#

Body 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 Request#

Code :

200 OK

/offers/62601cb7cb39d3001b3664d9/hide

Example 2 - Non-Existing Offer#

Code :

422 UNPROCESSABLE ENTITY

/offers/62601cb7cb39d3001b3664d9/hide

Example 3 - Hidden Offer#

Code :

403 FORBIDDEN

/offers/62601cb7cb39d3001b3664d9/hide

Example 4 - Disabled Company#

Code :

403 FORBIDDEN

/offers/62601cb7cb39d3001b3664d9/hide

Example 5 - Offer Already Hidden#

Code :

403 FORBIDDEN

/offers/62601cb7cb39d3001b3664d9/hide

Example 6 - Logged-in as a Different Company#

Code :

403 FORBIDDEN

/offers/62601cb7cb39d3001b3664d9/hide