Companies

Freeze company

POST freeze company(admin)

Endpoint

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

Request

Route

POST /api/v1/companies/37/freeze

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjM2MjYzNjMsImV4cCI6MTc2NjIxODM2MywianRpIjoiM2Q4Nzg4MTMtOTU1MS00ZTg2LWE2YjAtNWYyM2ZkOTZlNDk5In0.0JsOgyt4dbLhVvfK5Jbx8qDmKFPsTcDACR7mDodXGoI
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/"6836e9eded7c0e0b8767b2f704455f5e"
cache-control: max-age=0, private, must-revalidate
x-request-id: 63c1f534-6057-4ebf-afe8-a2aaaa82efe2
x-runtime: 0.044544
content-length: 49

Body

{
  "message": "Company Rolfson Inc has been frozen"
}