Adjust timer
Companies
POST adjust timer(admin)
Endpoint
PUT /api/v1/companies/adjust_timer
Parameters
Name | Description | Type | Items |
---|---|---|---|
company[company_ids] required | Company ids | array | {"type"=>"integer"} |
company[timer] required | Timer | integer |
Request
Route
PUT /api/v1/companies/adjust_timer
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMjQiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTIsImV4cCI6MTc0MDE0MzU1MiwianRpIjoiZjdiZThjZWYtMjgyNy00MmE1LWE4NWUtYzQ0MWY1NmZjMWZmIn0.tDbWVjz7C6D8_KSuskoF87IZl8_Acr37kc-UsAlJJE8
Host: example.org
Cookie:
Body
{
"company": {
"company_ids": [
28
],
"timer": 36000
}
}
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
per-page: 20
total: 1
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"1c11d5073478903efb3b6e78e23ed01d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 42ed9d94-8be9-4a56-88ca-c426519143e3
x-runtime: 0.025920
content-length: 152
Body
{
"companies": [
{
"id": 28,
"address": "8252 Kiehn Drives, Brekkeberg, WA YE0 6AB",
"license_number": "2971849215",
"name": "Bruen-Prohaska",
"state": "verified"
}
]
}