Companies

Reject company

PUT reject company(admin)

Endpoint

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

Request

Route

PUT /api/v1/companies/39/reject

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDkiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzIsImV4cCI6MTc1NTg1ODE3MiwianRpIjoiYTlkZTY4MWMtMzc1MC00NTBmLTk0NGMtOWVkZDc2ZmU2YWFjIn0.XFHthkrTolTFwLWE7wZATjtQrJonkssJQIQuSi7C-RM
Host: example.org
Cookie: 

Body

{
  "company": {
    "rejection_reason": "Laudantium rerum harum est."
  }
}

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/"0df9e1c8a05a4e416a3e40b2255f60b1"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5265d535-7ed1-406a-b9c5-01e829270931
x-runtime: 0.014656
content-length: 140

Body

{
  "company": {
    "id": 39,
    "address": "9086 Edna Walk, Naderview, KY RH0W 6XJ",
    "license_number": "1959787633",
    "name": "Feest LLC",
    "state": "rejected"
  }
}