Api::V1::ToursController API

Tours

Update tour that the user did not created

PATCH api/v1/tours/:id

Parameters

Name Description
id id
token token
tour[tour_type] Tour tour type
tour[vehicle_type] Tour vehicle type
tour[distance] Tour distance
tour[start_time] Tour start time

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

PATCH api/v1/tours/21

Body

{"token":"foobar166","tour":{"distance":10.02}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE
Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY
Content-Type: text/html
Cache-Control: no-cache
X-Request-Id: df20fcda-95b9-4e02-8e50-b953f5cb322b
X-Runtime: 0.006464
Content-Length: 0

Status

403 Forbidden