Freeze company
Companies
POST freeze company(admin)
Endpoint
POST /api/v1/companies/:id/freeze
Request
Route
POST /api/v1/companies/34/freeze
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMzciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzIsImV4cCI6MTc1NTg1ODE3MiwianRpIjoiY2Q0YjdhMTAtOWE0MC00NDlkLWE1MTEtNzMxZDhjNWZmNDY1In0.XQKjX74VQ7kDCSJyA9gkhiFli9yydYuaKfToEAv_RGQ
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/"72fd8c05d6c788995c1795fe67f22da6"
cache-control: max-age=0, private, must-revalidate
x-request-id: ccfbaa39-3990-4df9-818c-8adbebb91ae7
x-runtime: 0.041593
content-length: 64
Body
{
"message": "Company Ratke, Langworth and Robel has been frozen"
}