Companies

Adjust timer

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.eyJzdWIiOiIxMzUiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzEsImV4cCI6MTc1NTg1ODE3MSwianRpIjoiNTVmMzRjMDktOGEwOC00ODY2LTk2NzEtNjRjM2JjZjBmNzM1In0.gfV8UPXCUkLszsQ8CDqIY8AX8tMW7h66J_zCcVwwSYg
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/"2a181c07cb1e99bcaeeb4508e337f4be"
cache-control: max-age=0, private, must-revalidate
x-request-id: cf62203e-5ab3-41e0-a218-551cd98e6e1d
x-runtime: 0.020737
content-length: 175

Body

{
  "companies": [
    {
      "id": 33,
      "address": "Apt. 554 8283 Hilary Ways, Steubertown, CT U60 7ZL",
      "license_number": "3736155214",
      "name": "Fadel, Feeney and Vandervort",
      "state": "verified"
    }
  ]
}