Companies

Reject company

PUT reject company(admin)

Endpoint

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

Request

Route

PUT /api/v1/companies/42/reject

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTkiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjM2MjYzNjQsImV4cCI6MTc2NjIxODM2NCwianRpIjoiMTc1NDE0Y2QtN2QxMi00OTBkLTkyNDAtNjVlYjg3ODFiOThjIn0.nesXTZlGkMunZIW8rssnNrlzFqnfUwkhuCM--SMVfms
Host: example.org
Cookie: 

Body

{
  "company": {
    "rejection_reason": "Consequuntur vel nemo vel."
  }
}

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/"d1f030610ab4e28a1636452718b96f5d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4f9f6f79-c2ef-4f60-9279-74d2c717b8e3
x-runtime: 0.015585
content-length: 201

Body

{
  "company": {
    "id": 42,
    "address": "Suite 177 684 O'Hara Track, Masonview, SD W1 7HA",
    "country": "GBR",
    "currency": "GBP",
    "license_number": "6640430725",
    "name": "Funk, Kessler and Romaguera",
    "state": "rejected"
  }
}