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.eyJzdWIiOiIxMzUiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NjA5NTA0MzUsImV4cCI6MTc2MzU0MjQzNSwianRpIjoiY2UxZjE4YTUtMTdiYy00YTc3LTg4ZWMtY2U3YTFlMGI4OWU1In0.o4FT9I2qN9UZW3dixJwJ8iACrQSfMj9b_6qjFBshJxc
Host: example.org
Cookie:
Body
{
"company": {
"company_ids": [
33
],
"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/"ac7ca05029a573b7efc45f09e1ca0b7c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 37a6fd60-63d5-4f53-9c8f-8b6c2f28f56f
x-runtime: 0.018393
content-length: 187
Body
{
"companies": [
{
"id": 33,
"address": "8091 Cremin Bridge, Juanmouth, KY RV4A 4AY",
"country": "GBR",
"currency": "GBP",
"license_number": "9674234854",
"name": "Mayert and Sons",
"state": "verified"
}
]
}