train_schedule_exceptions
Create a train schedule exception
Changed onpost/timetable/{id}/train_schedule_exception
Request
- Base URL: https://demo.osrd.fr/api
- URL: https://demo.osrd.fr/api/timetable/{id}/train_schedule_exception
- Auth: none declared
Path parameters
idinteger required
A timetable ID
Request body
Example request
{
"change_groups": {
"path_and_schedule": {
"margins": {
"values": [
"5%",
"2min/100km"
]
},
"schedule": [
{
"arrival": "PT2H",
"reference_base_arrival": "PT2H",
"stop_for": "PT2H"
}
]
}
}
}Response
The train schedule exception has been created
Example response
{
"change_groups": {
"path_and_schedule": {
"margins": {
"values": [
"5%",
"2min/100km"
]
},
"schedule": [
{
"arrival": "PT2H",
"reference_base_arrival": "PT2H",
"stop_for": "PT2H"
}
]
}
}
}Changes
- breaking
added the new required request property
//// - breaking
removed the required property
////from the response with the status - warning
removed the request property
//// - info
added the required property
////to the response with the status
- breaking
- info
added the new optional request property
//// - info
added the optional property
////to the response with the status
- info