train_schedule_exceptions

Create a train schedule exception

Changed on
post/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

disabledboolean required
occurrence_indexinteger nullable
train_schedule_idinteger required

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

disabledboolean required
idinteger required
keystring nullable
occurrence_indexinteger

If None the exception is created, otherwise it is a modified exception

timetable_idinteger required
train_schedule_idinteger required

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

    • info

      added the new optional request property ////

    • info

      added the optional property //// to the response with the status