sub_categories

post/sub_category

Request

  • Base URL: https://demo.osrd.fr/api
  • URL: https://demo.osrd.fr/api/sub_category
  • Auth: none declared

Request body

background_colorstring required

Represents a color for a sub-category in hexadecimal format #RRGGBB.

codestring required
colorstring required

Represents a color for a sub-category in hexadecimal format #RRGGBB.

hovered_colorstring required

Represents a color for a sub-category in hexadecimal format #RRGGBB.

main_category'HIGH_SPEED_TRAIN' | 'INTERCITY_TRAIN' | 'REGIONAL_TRAIN' | 'NIGHT_TRAIN' | 'COMMUTER_TRAIN' | 'FREIGHT_TRAIN' | 'FAST_FREIGHT_TRAIN' | 'TRAM_TRAIN' | 'TOURISTIC_TRAIN' | 'WORK_TRAIN' required
namestring required

Response

Create sub categories

background_colorstring required

Represents a color for a sub-category in hexadecimal format #RRGGBB.

codestring required
colorstring required

Represents a color for a sub-category in hexadecimal format #RRGGBB.

hovered_colorstring required

Represents a color for a sub-category in hexadecimal format #RRGGBB.

main_category'HIGH_SPEED_TRAIN' | 'INTERCITY_TRAIN' | 'REGIONAL_TRAIN' | 'NIGHT_TRAIN' | 'COMMUTER_TRAIN' | 'FREIGHT_TRAIN' | 'FAST_FREIGHT_TRAIN' | 'TRAM_TRAIN' | 'TOURISTIC_TRAIN' | 'WORK_TRAIN' required
namestring required

Changes

No recorded changes to this operation across all 89 revisions of this API.