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.eyJzdWIiOiIxNDkiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjA5NTA0MzUsImV4cCI6MTc2MzU0MjQzNSwianRpIjoiMzE0MDU1MDQtMWIzYS00NTEyLTljNjUtYWNlOWM4MzY2Mzk2In0.j6CHefhrOrQmg7eIRXrOkTnjDJHoa7VRwdZmV5hjr3g
Host: example.org
Cookie:
Body
{
"company": {
"rejection_reason": "Minima blanditiis et rerum."
}
}
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/"22201cea8613adc680b304f8270ca1ae"
cache-control: max-age=0, private, must-revalidate
x-request-id: 691cd8b7-125b-43e4-8e03-ee99edc74b63
x-runtime: 0.011596
content-length: 180
Body
{
"company": {
"id": 39,
"address": "833 Reinger Fort, Olsonland, AK UC7W 1LZ",
"country": "GBR",
"currency": "GBP",
"license_number": "5697739539",
"name": "Olson and Sons",
"state": "rejected"
}
}