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.eyJzdWIiOiIxMzciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjA5NTA0MzUsImV4cCI6MTc2MzU0MjQzNSwianRpIjoiMzlhNDNlZDYtYWQ5OC00NTM3LWE0M2YtMmI3ODRkNzk3MDNiIn0.-Tsnkfc3KfspvVh0vFZui-X4xyCFtNXbaWAV-5gFBVI
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/"088c73b52ee042d41b5cc1326344d4bc"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2b5793be-7dd4-4cd8-83c5-200cc40c6180
x-runtime: 0.043210
content-length: 47
Body
{
"message": "Company Bruen Inc has been frozen"
}