SmartGare
API referenceEndpoints

Set a schedule's calling times

**Required permission:** `traffic.schedule:write`

PUT/traffic/v1/schedules/{id}/stop-times

Required permission: traffic.schedule:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*StopTimesRequest

Response Body

*/*

curl -X PUT "https://example.com/traffic/v1/schedules/string/stop-times" \  -H "Content-Type: application/json" \  -d '{    "calls": [      {        "service_kind": "BOARD_ONLY",        "stop_id": "string"      }    ]  }'
{  "stop_times": [    {      "announced_departure": true,      "arrival_time": "string",      "day_offset": 0,      "departure_time": "string",      "id": "string",      "service_kind": "BOARD_ONLY",      "stop_id": "string"    }  ]}