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.eyJzdWIiOiIxNDkiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDg1MTY0OTcsImV4cCI6MTc1MTEwODQ5NywianRpIjoiZmM5YmZkYjItMWU0OS00YTk5LWIwM2YtMTkzZmVmNGRlY2QyIn0.J_YpkafdViErOJcP5AoW3mlThvVEEhwuMKmw9tqKGXs
Host: example.org
Cookie:
Body
{
"company": {
"rejection_reason": "Cum et eveniet nostrum."
}
}
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/"b450310e87f20f5247a059725754a691"
cache-control: max-age=0, private, must-revalidate
x-request-id: 1f39529a-9d4c-4e7d-9744-582c8c147fab
x-runtime: 0.012521
content-length: 162
Body
{
"company": {
"id": 39,
"address": "7897 Maryland Landing, South Colbyland, KY SC6 4PJ",
"license_number": "1893341790",
"name": "Wuckert-Oberbrunner",
"state": "rejected"
}
}