Tours
| 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 |
Content-Type: application/json Host: example.org Cookie:
PATCH api/v1/tours/20
{"token":"foobar164","tour":{"distance":10.02}}
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: application/json; charset=utf-8 ETag: W/"07e6b0f472d37c10a64c6d559148806a" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: c8e369de-cd34-414c-a5e8-b059d286ba9c X-Runtime: 0.014470 Content-Length: 479
200 OK
{
"tour": {
"id": 20,
"uuid": "20",
"tour_type": "medical",
"status": "ongoing",
"vehicle_type": "feet",
"distance": 10,
"organization_name": "Association 75",
"organization_description": "Association description",
"start_time": "2022-06-02T17:16:46.419+02:00",
"end_time": null,
"number_of_people": 1,
"join_status": "not_requested",
"number_of_unread_messages": 0,
"updated_at": "2022-06-02T17:16:46.427+02:00",
"tour_points": [
],
"author": {
"id": 166,
"display_name": "John D.",
"avatar_url": null,
"partner": null
}
}
}