Unblock Company
Details#
This endpoint unblocks the company specified by companyId. Also enables all the company's offers previously disabled with the same adminReason.
URL : /company/:companyId/unblock
Method :
PUT
Authentication
Auth is required to unblock a Company as an 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 Admin)#
Code :
200 OK
- Request
- Response
Example 2 - Logged-in as a Company#
Code :
401 UNAUTHORIZED
- Request
- Response
Example 3 - Non-Existing Company#
Code :
422 UNPROCESSABLE ENTITY
- Request
- Response