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.eyJzdWIiOiIxNDUiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjM2MjYzNjMsImV4cCI6MTc2NjIxODM2MywianRpIjoiOGQxNDI5YzgtY2ZmNi00OGE1LTllYWYtOGYzNzY0ZjUxMWE3In0.vdAT8653aiQ8IvtaiAd-tokRiPab3yPnvxwtsnrXars
Host: example.org
Cookie:
Body
{
"company": {
"company_ids": [
36
],
"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/"73621239362fe3bec5eb53f2f5f253ae"
cache-control: max-age=0, private, must-revalidate
x-request-id: d2be1ff8-9d71-4122-9a9b-a96ce666a550
x-runtime: 0.027141
content-length: 192
Body
{
"companies": [
{
"id": 36,
"address": "980 Leonel Fort, North Shirleenland, SD B8 6AT",
"country": "GBR",
"currency": "GBP",
"license_number": "5797770924",
"name": "Mertz-Bartoletti",
"state": "verified"
}
]
}