Companies

Freeze company

POST freeze company(admin)

Endpoint

POST /api/v1/companies/:id/freeze

Request

Route

POST /api/v1/companies/29/freeze

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTIsImV4cCI6MTc0MDE0MzU1MiwianRpIjoiMGQ0ZDA5YjQtNzhjNy00YzI0LWI2ZTItZmUzMjc3NzNhNThiIn0.v9ijtHGMIp3jtFU_Dn4Gx6dd9yJnbDeRnT1Mk1H2qqI
Host: example.org
Cookie: 

Body

{
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"077c8106cb2f2a4638a49a90c9a144c8"
cache-control: max-age=0, private, must-revalidate
x-request-id: b5e2f9cc-4880-4cbd-be32-bbc98377f497
x-runtime: 0.062423
content-length: 54

Body

{
  "message": "Company Wintheiser Group has been frozen"
}