Reject company
Companies
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.eyJzdWIiOiIxNDkiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MDgsImV4cCI6MTc0NTA1NjkwOCwianRpIjoiNmM0MDU3OTMtMTA4Ni00OGYzLTg3ZjktMjljZjEzNjE2ODJlIn0.uhv9SkYpnBAfx8AFwvxCRFxHIoOan6y2om0GTk7S6JU
Host: example.org
Cookie:
Body
{
"company": {
"rejection_reason": "Vero asperiores ea enim."
}
}
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/"0192cc2560cd00d635b9b10be4696260"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6c82edd6-5086-462d-99e9-2da4d21f3886
x-runtime: 0.013830
content-length: 160
Body
{
"company": {
"id": 39,
"address": "Suite 448 42032 Tomika Trail, Sungborough, CO UV9 6NF",
"license_number": "7418410447",
"name": "Monahan-Schumm",
"state": "rejected"
}
}