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.eyJzdWIiOiIxMzciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MDgsImV4cCI6MTc0NTA1NjkwOCwianRpIjoiZjkxOTlhMTYtY2Q4Ni00NmM4LThiMWMtNmU4ZDcwYmQ1MjhhIn0.GS55dxtvHOuKHnqS16WQQPXDKDtn2k7mDrNS4NKe1Go
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/"d835f6b0ec1d5f3f22c93bbb38946375"
cache-control: max-age=0, private, must-revalidate
x-request-id: 62f74c7f-c3c3-4cca-8050-21654b836703
x-runtime: 0.054103
content-length: 55
Body
{
"message": "Company Konopelski-Casper has been frozen"
}