Companies

Reject company

PUT reject company(admin)

Endpoint

PUT /api/v1/companies/:id/reject

Request

Route

PUT /api/v1/companies/34/reject

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMzgiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTIsImV4cCI6MTc0MDE0MzU1MiwianRpIjoiNDExOTQ1NTYtMTFlYS00NzdjLWE4MzgtMGUzOTdhMjIxMmQ1In0.SXJCHo1IvnA_UeCMj28j5_9sSQyY15XcR-VLaw7M3CA
Host: example.org
Cookie: 

Body

{
  "company": {
    "rejection_reason": "Ipsum quidem error itaque."
  }
}

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/"6d308949154359f64e7d6ac8da62e2e1"
cache-control: max-age=0, private, must-revalidate
x-request-id: 988a0f12-1635-4007-9760-0ed3886e9a8a
x-runtime: 0.023312
content-length: 167

Body

{
  "company": {
    "id": 34,
    "address": "21949 Isaac Crest, North Gavinfurt, ID W6 2TB",
    "license_number": "6407026403",
    "name": "Kertzmann, Shields and Murray",
    "state": "rejected"
  }
}