Enable Company

Details#

This endpoint enables the company specified by companyId. Also enables all the company's offers that were hidden when the company was disabled.

URL : /company/:companyId/enable

Method :

PUT

Authentication

Auth is required to enable a Company as the 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 (Logged-in as Company)#

Code :

200 OK

/company/431859ea531e53a45a443de0/enable

Example 2 - Valid Request (Logged-in as Admin)#

Code :

200 OK

/company/431859ea531e53a45a443de0/enable

Example 3 - Non-Existing Company#

Code :

422 UNPROCESSABLE ENTITY

/company/62601cb7cb39d3001b3664d9/enable

Example 4 - Logged-in as a Different Company#

Code :

403 FORBIDDEN

/company/62601cb7cb39d3001b3664d9/enable