Platform API Guide
Get Platforms - Successfully
GET /v1/platforms
Query Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloids |
Array[String] |
true |
|
servicePointNumbers |
Array[Integer] |
true |
|
sloids |
Array[String] |
true |
|
statusRestrictions |
Array[String] |
true |
Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
createdAfter |
String |
true |
|
modifiedAfter |
String |
true |
|
validOn |
String |
true |
|
fromDate |
String |
true |
|
toDate |
String |
true |
|
validToFromDate |
String |
true |
|
page |
Integer |
true |
|
size |
Integer |
true |
|
sort |
Array[String] |
true |
Example request
$ curl 'http://localhost:8080/v1/platforms' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1383
{
"objects" : [ {
"additionalInformation" : null,
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : "TO_BE_COMPLETED",
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : "2026-03-30T09:40:27.815372",
"creator" : "e123456",
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : "2026-03-30T09:40:27.815384",
"editor" : "e123456",
"etagVersion" : 0,
"height" : 123.12,
"id" : 1052,
"inclination" : 123.12,
"inclinationLongitudinal" : 123.12,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ "ACOUSTIC_INFORMATION", "ELECTRONIC_VISUAL_INFORMATION_COMPLETE", "TEXT_TO_SPEECH_DEPARTURES" ],
"levelAccessWheelchair" : "NO",
"number" : {
"checkDigit" : 8,
"number" : 1234567,
"numberShort" : 34567,
"uicCountryCode" : 12
},
"parentServicePointSloid" : "ch:1:sloid:12345",
"partialElevation" : false,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : "TO_BE_COMPLETED",
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : "PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED",
"wheelchairAreaLength" : 456.321,
"wheelchairAreaWidth" : 321.123
} ],
"totalCount" : 1
}
Get Platforms by parentSloid - Successfully
GET /v1/platforms
Query Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloids |
Array[String] |
true |
|
servicePointNumbers |
Array[Integer] |
true |
|
sloids |
Array[String] |
true |
|
statusRestrictions |
Array[String] |
true |
Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
createdAfter |
String |
true |
|
modifiedAfter |
String |
true |
|
validOn |
String |
true |
|
fromDate |
String |
true |
|
toDate |
String |
true |
|
validToFromDate |
String |
true |
|
page |
Integer |
true |
|
size |
Integer |
true |
|
sort |
Array[String] |
true |
Example request
$ curl 'http://localhost:8080/v1/platforms?parentServicePointSloids=ch:1:sloid:12345' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1382
{
"objects" : [ {
"additionalInformation" : null,
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : "TO_BE_COMPLETED",
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : "2026-03-30T09:40:28.78473",
"creator" : "e123456",
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : "2026-03-30T09:40:28.784742",
"editor" : "e123456",
"etagVersion" : 0,
"height" : 123.12,
"id" : 1062,
"inclination" : 123.12,
"inclinationLongitudinal" : 123.12,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ "ACOUSTIC_INFORMATION", "ELECTRONIC_VISUAL_INFORMATION_COMPLETE", "TEXT_TO_SPEECH_DEPARTURES" ],
"levelAccessWheelchair" : "NO",
"number" : {
"checkDigit" : 8,
"number" : 1234567,
"numberShort" : 34567,
"uicCountryCode" : 12
},
"parentServicePointSloid" : "ch:1:sloid:12345",
"partialElevation" : false,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : "TO_BE_COMPLETED",
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : "PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED",
"wheelchairAreaLength" : 456.321,
"wheelchairAreaWidth" : 321.123
} ],
"totalCount" : 1
}
Get Platforms by Sloid - Successfully
GET /v1/platforms/ch:1:sloid:12345:1
Path Variables
| Path Variable | Type | Optional | Description |
|---|---|---|---|
sloid |
String |
false |
Example request
$ curl 'http://localhost:8080/v1/platforms/ch:1:sloid:12345:1' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1269
[ {
"additionalInformation" : null,
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : "TO_BE_COMPLETED",
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : "2026-03-30T09:40:28.341456",
"creator" : "e123456",
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : "2026-03-30T09:40:28.341469",
"editor" : "e123456",
"etagVersion" : 0,
"height" : 123.12,
"id" : 1058,
"inclination" : 123.12,
"inclinationLongitudinal" : 123.12,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ "ACOUSTIC_INFORMATION", "ELECTRONIC_VISUAL_INFORMATION_COMPLETE", "TEXT_TO_SPEECH_DEPARTURES" ],
"levelAccessWheelchair" : "NO",
"number" : {
"checkDigit" : 8,
"number" : 1234567,
"numberShort" : 34567,
"uicCountryCode" : 12
},
"parentServicePointSloid" : "ch:1:sloid:12345",
"partialElevation" : false,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : "TO_BE_COMPLETED",
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : "PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED",
"wheelchairAreaLength" : 456.321,
"wheelchairAreaWidth" : 321.123
} ]
Get Platforms with filter - Successfully
GET /v1/platforms
Query Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloids |
Array[String] |
true |
|
servicePointNumbers |
Array[Integer] |
true |
|
sloids |
Array[String] |
true |
|
statusRestrictions |
Array[String] |
true |
Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
createdAfter |
String |
true |
|
modifiedAfter |
String |
true |
|
validOn |
String |
true |
|
fromDate |
String |
true |
|
toDate |
String |
true |
|
validToFromDate |
String |
true |
|
page |
Integer |
true |
|
size |
Integer |
true |
|
sort |
Array[String] |
true |
Example request
$ curl 'http://localhost:8080/v1/platforms?numbers=12345&sloids=ch:1:sloid:12345:1&fromDate=2000-01-01&statusRestrictions=VALIDATED&toDate=2000-12-31&validOn=2000-06-28&createdAfter=2026-03-30%2009:40:27&modifiedAfter=2026-03-30%2009:40:28' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1383
{
"objects" : [ {
"additionalInformation" : null,
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : "TO_BE_COMPLETED",
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : "2026-03-30T09:40:28.987644",
"creator" : "e123456",
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : "2026-03-30T09:40:28.987656",
"editor" : "e123456",
"etagVersion" : 0,
"height" : 123.12,
"id" : 1065,
"inclination" : 123.12,
"inclinationLongitudinal" : 123.12,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ "ACOUSTIC_INFORMATION", "ELECTRONIC_VISUAL_INFORMATION_COMPLETE", "TEXT_TO_SPEECH_DEPARTURES" ],
"levelAccessWheelchair" : "NO",
"number" : {
"checkDigit" : 8,
"number" : 1234567,
"numberShort" : 34567,
"uicCountryCode" : 12
},
"parentServicePointSloid" : "ch:1:sloid:12345",
"partialElevation" : false,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : "TO_BE_COMPLETED",
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : "PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED",
"wheelchairAreaLength" : 456.321,
"wheelchairAreaWidth" : 321.123
} ],
"totalCount" : 1
}
Get Platform Overview - Successfully
GET /internal/platforms/overview/ch:1:sloid:7000
Path Variables
| Path Variable | Type | Optional | Description |
|---|---|---|---|
parentSloid |
String |
false |
Example request
$ curl 'http://localhost:8080/internal/platforms/overview/ch:1:sloid:7000' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 134
[ {
"recordingStatus" : "INCOMPLETE",
"sloid" : "ch:1:sloid:12345:1",
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31"
} ]
Create Complete Platforms - Successfully
POST /v1/platforms
Request Body Fields
| Path | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloid |
String |
false |
Parent Service Point Sloid: Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771 Length must be between 1 and 500 |
boardingDevice |
String |
true |
Wheelchair aids Must be one of ["TO_BE_COMPLETED","NO","NOT_APPLICABLE","RAMPS","LIFTS"] |
adviceAccessInfo |
String |
true |
Information on access to transport Length must be between 0 and 2000 |
additionalInformation |
String |
true |
Additional Information Length must be between 0 and 2000 |
shuttle |
String |
true |
Shuttle Must be one of ["TO_BE_COMPLETED","YES","NO"] |
contrastingAreas |
String |
true |
Tactile-visual marking of platform surfaces Must be one of ["TO_BE_COMPLETED","YES","NO"] |
dynamicAudio |
String |
true |
Acoustic information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
dynamicVisual |
String |
true |
Dynamic optical information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
height |
Decimal |
true |
Height [cm] |
inclination |
Decimal |
true |
Cross-platform slope [%] |
inclinationLongitudinal |
Decimal |
true |
Longitudinal inclination of the holding edge [%] |
inclinationWidth |
Decimal |
true |
Platform longitudinal inclination [%] |
infoOpportunities |
Array[String] |
true |
Information options Must be one of ["TO_BE_COMPLETED","STATIC_VISUAL_INFORMATION","ELECTRONIC_VISUAL_INFORMATION_DEPARTURES","ELECTRONIC_VISUAL_INFORMATION_COMPLETE","ACOUSTIC_INFORMATION","TEXT_TO_SPEECH_DEPARTURES","TEXT_TO_SPEECH_COMPLETE"] |
levelAccessWheelchair |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
partialElevation |
Boolean |
true |
|
superelevation |
Decimal |
true |
Track superelevation value [mm] |
tactileSystem |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
attentionField |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
vehicleAccess |
String |
true |
Must be one of ["TO_BE_COMPLETED","PLATFORM_ACCESS_WITHOUT_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED","PLATFORM_NOT_WHEELCHAIR_ACCESSIBLE"] |
wheelchairAreaLength |
Decimal |
true |
Wheelchair Area Length [mm] |
wheelchairAreaWidth |
Decimal |
true |
Wheelchair Area Width [mm] |
sloid |
String |
true |
Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771:1 Length must be between 1 and 500 |
id |
Integer |
true |
This ID helps identify versions of a prm object in the use case front end and/or update. This ID can be deleted if the version is no longer present. Do not use this ID to map your object to a prm object. To do this, use the sloid or parentServicePointSloid in combination with the data range (valid from/valid until). Example value: 1 |
validFrom |
String |
false |
Valid from |
validTo |
String |
false |
Valid to |
etagVersion |
Integer |
true |
Optimistic locking version - instead of ETag HTTP Header (see RFC7232:Section 2.3) Example value: 5 |
status |
String |
true |
Status Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
creationDate |
String |
true |
Object creation date Example value: 01.01.2000 |
creator |
String |
true |
User creator Example value: u123456 |
editionDate |
String |
true |
Last edition date Example value: 01.01.2000 |
editor |
String |
true |
User editor Example value: u123456 |
Example request
$ curl 'http://localhost:8080/v1/platforms' -i -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-d '{
"additionalInformation" : "additional info",
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : null,
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : null,
"creator" : null,
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : null,
"editor" : null,
"etagVersion" : null,
"height" : null,
"id" : null,
"inclination" : 123.12,
"inclinationLongitudinal" : null,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ ],
"levelAccessWheelchair" : "NO",
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : null,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : null,
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : null,
"wheelchairAreaLength" : null,
"wheelchairAreaWidth" : null
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 1102
{
"additionalInformation" : "additional info",
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : null,
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : "2026-03-30T09:40:28.209846",
"creator" : "e123456",
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : "2026-03-30T09:40:28.209857",
"editor" : "e123456",
"etagVersion" : 0,
"height" : null,
"id" : 1057,
"inclination" : 123.12,
"inclinationLongitudinal" : null,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ ],
"levelAccessWheelchair" : "NO",
"number" : {
"checkDigit" : 3,
"number" : 8507000,
"numberShort" : 7000,
"uicCountryCode" : 85
},
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : null,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : null,
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : null,
"wheelchairAreaLength" : null,
"wheelchairAreaWidth" : null
}
Create Reduced Platforms - Successfully
POST /v1/platforms
Request Body Fields
| Path | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloid |
String |
false |
Parent Service Point Sloid: Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771 Length must be between 1 and 500 |
boardingDevice |
String |
true |
Wheelchair aids Must be one of ["TO_BE_COMPLETED","NO","NOT_APPLICABLE","RAMPS","LIFTS"] |
adviceAccessInfo |
String |
true |
Information on access to transport Length must be between 0 and 2000 |
additionalInformation |
String |
true |
Additional Information Length must be between 0 and 2000 |
shuttle |
String |
true |
Shuttle Must be one of ["TO_BE_COMPLETED","YES","NO"] |
contrastingAreas |
String |
true |
Tactile-visual marking of platform surfaces Must be one of ["TO_BE_COMPLETED","YES","NO"] |
dynamicAudio |
String |
true |
Acoustic information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
dynamicVisual |
String |
true |
Dynamic optical information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
height |
Decimal |
true |
Height [cm] |
inclination |
Decimal |
true |
Cross-platform slope [%] |
inclinationLongitudinal |
Decimal |
true |
Longitudinal inclination of the holding edge [%] |
inclinationWidth |
Decimal |
true |
Platform longitudinal inclination [%] |
infoOpportunities |
Array[String] |
true |
Information options Must be one of ["TO_BE_COMPLETED","STATIC_VISUAL_INFORMATION","ELECTRONIC_VISUAL_INFORMATION_DEPARTURES","ELECTRONIC_VISUAL_INFORMATION_COMPLETE","ACOUSTIC_INFORMATION","TEXT_TO_SPEECH_DEPARTURES","TEXT_TO_SPEECH_COMPLETE"] |
levelAccessWheelchair |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
partialElevation |
Boolean |
true |
|
superelevation |
Decimal |
true |
Track superelevation value [mm] |
tactileSystem |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
attentionField |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
vehicleAccess |
String |
true |
Must be one of ["TO_BE_COMPLETED","PLATFORM_ACCESS_WITHOUT_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED","PLATFORM_NOT_WHEELCHAIR_ACCESSIBLE"] |
wheelchairAreaLength |
Decimal |
true |
Wheelchair Area Length [mm] |
wheelchairAreaWidth |
Decimal |
true |
Wheelchair Area Width [mm] |
sloid |
String |
true |
Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771:1 Length must be between 1 and 500 |
id |
Integer |
true |
This ID helps identify versions of a prm object in the use case front end and/or update. This ID can be deleted if the version is no longer present. Do not use this ID to map your object to a prm object. To do this, use the sloid or parentServicePointSloid in combination with the data range (valid from/valid until). Example value: 1 |
validFrom |
String |
false |
Valid from |
validTo |
String |
false |
Valid to |
etagVersion |
Integer |
true |
Optimistic locking version - instead of ETag HTTP Header (see RFC7232:Section 2.3) Example value: 5 |
status |
String |
true |
Status Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
creationDate |
String |
true |
Object creation date Example value: 01.01.2000 |
creator |
String |
true |
User creator Example value: u123456 |
editionDate |
String |
true |
Last edition date Example value: 01.01.2000 |
editor |
String |
true |
User editor Example value: u123456 |
Example request
$ curl 'http://localhost:8080/v1/platforms' -i -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-d '{
"additionalInformation" : null,
"adviceAccessInfo" : null,
"attentionField" : null,
"boardingDevice" : null,
"contrastingAreas" : null,
"creationDate" : null,
"creator" : null,
"dynamicAudio" : null,
"dynamicVisual" : null,
"editionDate" : null,
"editor" : null,
"etagVersion" : null,
"height" : 333.12,
"id" : null,
"inclination" : null,
"inclinationLongitudinal" : 123.12,
"inclinationWidth" : null,
"infoOpportunities" : [ "ACOUSTIC_INFORMATION", "ELECTRONIC_VISUAL_INFORMATION_COMPLETE", "TEXT_TO_SPEECH_DEPARTURES" ],
"levelAccessWheelchair" : null,
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : null,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : null,
"tactileSystem" : "TO_BE_COMPLETED",
"validFrom" : "2003-01-01",
"validTo" : "2003-12-31",
"vehicleAccess" : "PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED",
"wheelchairAreaLength" : 456.321,
"wheelchairAreaWidth" : 321.123
}'
Example response
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 1203
{
"additionalInformation" : null,
"adviceAccessInfo" : null,
"attentionField" : "TO_BE_COMPLETED",
"boardingDevice" : null,
"contrastingAreas" : null,
"creationDate" : "2026-03-30T09:40:28.690479",
"creator" : "e123456",
"dynamicAudio" : null,
"dynamicVisual" : null,
"editionDate" : "2026-03-30T09:40:28.690489",
"editor" : "e123456",
"etagVersion" : 0,
"height" : 333.12,
"id" : 1061,
"inclination" : null,
"inclinationLongitudinal" : 123.12,
"inclinationWidth" : null,
"infoOpportunities" : [ "ACOUSTIC_INFORMATION", "TEXT_TO_SPEECH_DEPARTURES", "ELECTRONIC_VISUAL_INFORMATION_COMPLETE" ],
"levelAccessWheelchair" : null,
"number" : {
"checkDigit" : 3,
"number" : 8507000,
"numberShort" : 7000,
"uicCountryCode" : 85
},
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : null,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : null,
"tactileSystem" : "TO_BE_COMPLETED",
"validFrom" : "2003-01-01",
"validTo" : "2003-12-31",
"vehicleAccess" : "PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED",
"wheelchairAreaLength" : 456.321,
"wheelchairAreaWidth" : 321.123
}
Create Reduced Platforms - Unsuccessfully
POST /v1/platforms
Request Body Fields
| Path | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloid |
String |
false |
Parent Service Point Sloid: Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771 Length must be between 1 and 500 |
boardingDevice |
String |
true |
Wheelchair aids Must be one of ["TO_BE_COMPLETED","NO","NOT_APPLICABLE","RAMPS","LIFTS"] |
adviceAccessInfo |
String |
true |
Information on access to transport Length must be between 0 and 2000 |
additionalInformation |
String |
true |
Additional Information Length must be between 0 and 2000 |
shuttle |
String |
true |
Shuttle Must be one of ["TO_BE_COMPLETED","YES","NO"] |
contrastingAreas |
String |
true |
Tactile-visual marking of platform surfaces Must be one of ["TO_BE_COMPLETED","YES","NO"] |
dynamicAudio |
String |
true |
Acoustic information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
dynamicVisual |
String |
true |
Dynamic optical information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
height |
Decimal |
true |
Height [cm] |
inclination |
Decimal |
true |
Cross-platform slope [%] |
inclinationLongitudinal |
Decimal |
true |
Longitudinal inclination of the holding edge [%] |
inclinationWidth |
Decimal |
true |
Platform longitudinal inclination [%] |
infoOpportunities |
Array[String] |
true |
Information options Must be one of ["TO_BE_COMPLETED","STATIC_VISUAL_INFORMATION","ELECTRONIC_VISUAL_INFORMATION_DEPARTURES","ELECTRONIC_VISUAL_INFORMATION_COMPLETE","ACOUSTIC_INFORMATION","TEXT_TO_SPEECH_DEPARTURES","TEXT_TO_SPEECH_COMPLETE"] |
levelAccessWheelchair |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
partialElevation |
Boolean |
true |
|
superelevation |
Decimal |
true |
Track superelevation value [mm] |
tactileSystem |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
attentionField |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
vehicleAccess |
String |
true |
Must be one of ["TO_BE_COMPLETED","PLATFORM_ACCESS_WITHOUT_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED","PLATFORM_NOT_WHEELCHAIR_ACCESSIBLE"] |
wheelchairAreaLength |
Decimal |
true |
Wheelchair Area Length [mm] |
wheelchairAreaWidth |
Decimal |
true |
Wheelchair Area Width [mm] |
sloid |
String |
true |
Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771:1 Length must be between 1 and 500 |
id |
Integer |
true |
This ID helps identify versions of a prm object in the use case front end and/or update. This ID can be deleted if the version is no longer present. Do not use this ID to map your object to a prm object. To do this, use the sloid or parentServicePointSloid in combination with the data range (valid from/valid until). Example value: 1 |
validFrom |
String |
false |
Valid from |
validTo |
String |
false |
Valid to |
etagVersion |
Integer |
true |
Optimistic locking version - instead of ETag HTTP Header (see RFC7232:Section 2.3) Example value: 5 |
status |
String |
true |
Status Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
creationDate |
String |
true |
Object creation date Example value: 01.01.2000 |
creator |
String |
true |
User creator Example value: u123456 |
editionDate |
String |
true |
Last edition date Example value: 01.01.2000 |
editor |
String |
true |
User editor Example value: u123456 |
Example request
$ curl 'http://localhost:8080/v1/platforms' -i -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-d '{
"additionalInformation" : "additional info",
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : null,
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : null,
"creator" : null,
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : null,
"editor" : null,
"etagVersion" : null,
"height" : 123.12,
"id" : null,
"inclination" : 123.12,
"inclinationLongitudinal" : 123.12,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ "ACOUSTIC_INFORMATION", "ELECTRONIC_VISUAL_INFORMATION_COMPLETE", "TEXT_TO_SPEECH_DEPARTURES" ],
"levelAccessWheelchair" : "NO",
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : false,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : "TO_BE_COMPLETED",
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : "PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED",
"wheelchairAreaLength" : 456.321,
"wheelchairAreaWidth" : 321.123
}'
Example response
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 4028
{
"status" : 400,
"message" : "PlatformVersion with sloid [ch:1:sloid:12345:1] cannot be save: Attempting to save a Reduced object with wrong properties population!",
"error" : null,
"details" : [ {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "inclination"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "inclination",
"message" : "Must be null for Reduced Object"
}, {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "boardingDevice"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "boardingDevice",
"message" : "Must be null for Reduced Object"
}, {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "adviceAccessInfo"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "adviceAccessInfo",
"message" : "Must be null for Reduced Object"
}, {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "levelAccessWheelchair"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "levelAccessWheelchair",
"message" : "Must be null for Reduced Object"
}, {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "dynamicAudio"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "dynamicAudio",
"message" : "Must be null for Reduced Object"
}, {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "superelevation"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "superelevation",
"message" : "Must be null for Reduced Object"
}, {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "contrastingAreas"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "contrastingAreas",
"message" : "Must be null for Reduced Object"
}, {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "inclinationWidth"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "inclinationWidth",
"message" : "Must be null for Reduced Object"
}, {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "dynamicVisual"
}, {
"key" : "detail",
"value" : "Must be null for Reduced Object"
}, {
"key" : "reduced",
"value" : "true"
} ]
},
"field" : "dynamicVisual",
"message" : "Must be null for Reduced Object"
} ]
}
Create Complete Platforms - Unsuccessfully
POST /v1/platforms
Request Body Fields
| Path | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloid |
String |
false |
Parent Service Point Sloid: Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771 Length must be between 1 and 500 |
boardingDevice |
String |
true |
Wheelchair aids Must be one of ["TO_BE_COMPLETED","NO","NOT_APPLICABLE","RAMPS","LIFTS"] |
adviceAccessInfo |
String |
true |
Information on access to transport Length must be between 0 and 2000 |
additionalInformation |
String |
true |
Additional Information Length must be between 0 and 2000 |
shuttle |
String |
true |
Shuttle Must be one of ["TO_BE_COMPLETED","YES","NO"] |
contrastingAreas |
String |
true |
Tactile-visual marking of platform surfaces Must be one of ["TO_BE_COMPLETED","YES","NO"] |
dynamicAudio |
String |
true |
Acoustic information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
dynamicVisual |
String |
true |
Dynamic optical information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
height |
Decimal |
true |
Height [cm] |
inclination |
Decimal |
true |
Cross-platform slope [%] |
inclinationLongitudinal |
Decimal |
true |
Longitudinal inclination of the holding edge [%] |
inclinationWidth |
Decimal |
true |
Platform longitudinal inclination [%] |
infoOpportunities |
Array[String] |
true |
Information options Must be one of ["TO_BE_COMPLETED","STATIC_VISUAL_INFORMATION","ELECTRONIC_VISUAL_INFORMATION_DEPARTURES","ELECTRONIC_VISUAL_INFORMATION_COMPLETE","ACOUSTIC_INFORMATION","TEXT_TO_SPEECH_DEPARTURES","TEXT_TO_SPEECH_COMPLETE"] |
levelAccessWheelchair |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
partialElevation |
Boolean |
true |
|
superelevation |
Decimal |
true |
Track superelevation value [mm] |
tactileSystem |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
attentionField |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
vehicleAccess |
String |
true |
Must be one of ["TO_BE_COMPLETED","PLATFORM_ACCESS_WITHOUT_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED","PLATFORM_NOT_WHEELCHAIR_ACCESSIBLE"] |
wheelchairAreaLength |
Decimal |
true |
Wheelchair Area Length [mm] |
wheelchairAreaWidth |
Decimal |
true |
Wheelchair Area Width [mm] |
sloid |
String |
true |
Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771:1 Length must be between 1 and 500 |
id |
Integer |
true |
This ID helps identify versions of a prm object in the use case front end and/or update. This ID can be deleted if the version is no longer present. Do not use this ID to map your object to a prm object. To do this, use the sloid or parentServicePointSloid in combination with the data range (valid from/valid until). Example value: 1 |
validFrom |
String |
false |
Valid from |
validTo |
String |
false |
Valid to |
etagVersion |
Integer |
true |
Optimistic locking version - instead of ETag HTTP Header (see RFC7232:Section 2.3) Example value: 5 |
status |
String |
true |
Status Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
creationDate |
String |
true |
Object creation date Example value: 01.01.2000 |
creator |
String |
true |
User creator Example value: u123456 |
editionDate |
String |
true |
Last edition date Example value: 01.01.2000 |
editor |
String |
true |
User editor Example value: u123456 |
Example request
$ curl 'http://localhost:8080/v1/platforms' -i -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-d '{
"additionalInformation" : "additional info",
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : null,
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : null,
"creator" : null,
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : null,
"editor" : null,
"etagVersion" : null,
"height" : 123.1,
"id" : null,
"inclination" : 123.12,
"inclinationLongitudinal" : null,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ ],
"levelAccessWheelchair" : "NO",
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : null,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : null,
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : null,
"wheelchairAreaLength" : null,
"wheelchairAreaWidth" : null
}'
Example response
HTTP/1.1 400 Bad Request
Content-Type: application/json
Content-Length: 620
{
"status" : 400,
"message" : "PlatformVersion with sloid [ch:1:sloid:12345:1] cannot be save: Attempting to save a Complete object with wrong properties population!",
"error" : null,
"details" : [ {
"displayInfo" : {
"code" : "ERROR.PRM.RECODING_VARIANTS.BAD_REQUEST",
"parameters" : [ {
"key" : "field",
"value" : "height"
}, {
"key" : "detail",
"value" : "Must be null for Completed Object"
}, {
"key" : "reduced",
"value" : "false"
} ]
},
"field" : "height",
"message" : "Must be null for Completed Object"
} ]
}
Update Platforms - Successfully
PUT /v1/platforms/1064
Path Variables
| Path Variable | Type | Optional | Description |
|---|---|---|---|
id |
Integer |
false |
Request Body Fields
| Path | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloid |
String |
false |
Parent Service Point Sloid: Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771 Length must be between 1 and 500 |
boardingDevice |
String |
true |
Wheelchair aids Must be one of ["TO_BE_COMPLETED","NO","NOT_APPLICABLE","RAMPS","LIFTS"] |
adviceAccessInfo |
String |
true |
Information on access to transport Length must be between 0 and 2000 |
additionalInformation |
String |
true |
Additional Information Length must be between 0 and 2000 |
shuttle |
String |
true |
Shuttle Must be one of ["TO_BE_COMPLETED","YES","NO"] |
contrastingAreas |
String |
true |
Tactile-visual marking of platform surfaces Must be one of ["TO_BE_COMPLETED","YES","NO"] |
dynamicAudio |
String |
true |
Acoustic information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
dynamicVisual |
String |
true |
Dynamic optical information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
height |
Decimal |
true |
Height [cm] |
inclination |
Decimal |
true |
Cross-platform slope [%] |
inclinationLongitudinal |
Decimal |
true |
Longitudinal inclination of the holding edge [%] |
inclinationWidth |
Decimal |
true |
Platform longitudinal inclination [%] |
infoOpportunities |
Array[String] |
true |
Information options Must be one of ["TO_BE_COMPLETED","STATIC_VISUAL_INFORMATION","ELECTRONIC_VISUAL_INFORMATION_DEPARTURES","ELECTRONIC_VISUAL_INFORMATION_COMPLETE","ACOUSTIC_INFORMATION","TEXT_TO_SPEECH_DEPARTURES","TEXT_TO_SPEECH_COMPLETE"] |
levelAccessWheelchair |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
partialElevation |
Boolean |
true |
|
superelevation |
Decimal |
true |
Track superelevation value [mm] |
tactileSystem |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
attentionField |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
vehicleAccess |
String |
true |
Must be one of ["TO_BE_COMPLETED","PLATFORM_ACCESS_WITHOUT_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED","PLATFORM_NOT_WHEELCHAIR_ACCESSIBLE"] |
wheelchairAreaLength |
Decimal |
true |
Wheelchair Area Length [mm] |
wheelchairAreaWidth |
Decimal |
true |
Wheelchair Area Width [mm] |
sloid |
String |
true |
Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771:1 Length must be between 1 and 500 |
id |
Integer |
true |
This ID helps identify versions of a prm object in the use case front end and/or update. This ID can be deleted if the version is no longer present. Do not use this ID to map your object to a prm object. To do this, use the sloid or parentServicePointSloid in combination with the data range (valid from/valid until). Example value: 1 |
validFrom |
String |
false |
Valid from |
validTo |
String |
false |
Valid to |
etagVersion |
Integer |
true |
Optimistic locking version - instead of ETag HTTP Header (see RFC7232:Section 2.3) Example value: 5 |
status |
String |
true |
Status Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
creationDate |
String |
true |
Object creation date Example value: 01.01.2000 |
creator |
String |
true |
User creator Example value: u123456 |
editionDate |
String |
true |
Last edition date Example value: 01.01.2000 |
editor |
String |
true |
User editor Example value: u123456 |
Example request
$ curl 'http://localhost:8080/v1/platforms/1064' -i -X PUT \
-H 'Content-Type: application/json;charset=UTF-8' \
-d '{
"additionalInformation" : "additional 2",
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : null,
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : "2026-03-30T09:40:28.864699",
"creator" : "e123456",
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : "2026-03-30T09:40:28.864711",
"editor" : "e123456",
"etagVersion" : 0,
"height" : null,
"id" : null,
"inclination" : 123.12,
"inclinationLongitudinal" : null,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ ],
"levelAccessWheelchair" : "NO",
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : null,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : null,
"superelevation" : 321.123,
"tactileSystem" : null,
"validFrom" : "2001-01-01",
"validTo" : "2001-12-31",
"vehicleAccess" : null,
"wheelchairAreaLength" : null,
"wheelchairAreaWidth" : null
}'
Example response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2204
[ {
"additionalInformation" : "additional 1",
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : null,
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : "2026-03-30T09:40:28.857059",
"creator" : "e123456",
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : "2026-03-30T09:40:28.85707",
"editor" : "e123456",
"etagVersion" : 1,
"height" : null,
"id" : 1063,
"inclination" : 123.12,
"inclinationLongitudinal" : null,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ ],
"levelAccessWheelchair" : "NO",
"number" : {
"checkDigit" : 8,
"number" : 1234567,
"numberShort" : 34567,
"uicCountryCode" : 12
},
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : null,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : null,
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : null,
"wheelchairAreaLength" : null,
"wheelchairAreaWidth" : null
}, {
"additionalInformation" : "additional 2",
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : null,
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : "2026-03-30T09:40:28.864699",
"creator" : "e123456",
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : "2026-03-30T09:40:28.93022",
"editor" : "e123456",
"etagVersion" : 2,
"height" : null,
"id" : 1064,
"inclination" : 123.12,
"inclinationLongitudinal" : null,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ ],
"levelAccessWheelchair" : "NO",
"number" : {
"checkDigit" : 8,
"number" : 1234567,
"numberShort" : 34567,
"uicCountryCode" : 12
},
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : null,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : null,
"validFrom" : "2001-01-01",
"validTo" : "2001-12-31",
"vehicleAccess" : null,
"wheelchairAreaLength" : null,
"wheelchairAreaWidth" : null
} ]
Create Platforms without Stop Point- Unsuccessfully
POST /v1/platforms
Request Body Fields
| Path | Type | Optional | Description |
|---|---|---|---|
parentServicePointSloid |
String |
false |
Parent Service Point Sloid: Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771 Length must be between 1 and 500 |
boardingDevice |
String |
true |
Wheelchair aids Must be one of ["TO_BE_COMPLETED","NO","NOT_APPLICABLE","RAMPS","LIFTS"] |
adviceAccessInfo |
String |
true |
Information on access to transport Length must be between 0 and 2000 |
additionalInformation |
String |
true |
Additional Information Length must be between 0 and 2000 |
shuttle |
String |
true |
Shuttle Must be one of ["TO_BE_COMPLETED","YES","NO"] |
contrastingAreas |
String |
true |
Tactile-visual marking of platform surfaces Must be one of ["TO_BE_COMPLETED","YES","NO"] |
dynamicAudio |
String |
true |
Acoustic information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
dynamicVisual |
String |
true |
Dynamic optical information Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
height |
Decimal |
true |
Height [cm] |
inclination |
Decimal |
true |
Cross-platform slope [%] |
inclinationLongitudinal |
Decimal |
true |
Longitudinal inclination of the holding edge [%] |
inclinationWidth |
Decimal |
true |
Platform longitudinal inclination [%] |
infoOpportunities |
Array[String] |
true |
Information options Must be one of ["TO_BE_COMPLETED","STATIC_VISUAL_INFORMATION","ELECTRONIC_VISUAL_INFORMATION_DEPARTURES","ELECTRONIC_VISUAL_INFORMATION_COMPLETE","ACOUSTIC_INFORMATION","TEXT_TO_SPEECH_DEPARTURES","TEXT_TO_SPEECH_COMPLETE"] |
levelAccessWheelchair |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO","NOT_APPLICABLE"] |
partialElevation |
Boolean |
true |
|
superelevation |
Decimal |
true |
Track superelevation value [mm] |
tactileSystem |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
attentionField |
String |
true |
Must be one of ["TO_BE_COMPLETED","YES","NO"] |
vehicleAccess |
String |
true |
Must be one of ["TO_BE_COMPLETED","PLATFORM_ACCESS_WITHOUT_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE","PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED","PLATFORM_NOT_WHEELCHAIR_ACCESSIBLE"] |
wheelchairAreaLength |
Decimal |
true |
Wheelchair Area Length [mm] |
wheelchairAreaWidth |
Decimal |
true |
Wheelchair Area Width [mm] |
sloid |
String |
true |
Unique code for locations that is used in customer information. The structure is described in the “Swiss Location ID” specification, chapter 4.2. The document is available here: transportdatamanagement.ch/standards/ Example value: ch:1:sloid:18771:1 Length must be between 1 and 500 |
id |
Integer |
true |
This ID helps identify versions of a prm object in the use case front end and/or update. This ID can be deleted if the version is no longer present. Do not use this ID to map your object to a prm object. To do this, use the sloid or parentServicePointSloid in combination with the data range (valid from/valid until). Example value: 1 |
validFrom |
String |
false |
Valid from |
validTo |
String |
false |
Valid to |
etagVersion |
Integer |
true |
Optimistic locking version - instead of ETag HTTP Header (see RFC7232:Section 2.3) Example value: 5 |
status |
String |
true |
Status Must be one of ["DRAFT","VALIDATED","IN_REVIEW","WITHDRAWN","REVOKED"] |
creationDate |
String |
true |
Object creation date Example value: 01.01.2000 |
creator |
String |
true |
User creator Example value: u123456 |
editionDate |
String |
true |
Last edition date Example value: 01.01.2000 |
editor |
String |
true |
User editor Example value: u123456 |
Example request
$ curl 'http://localhost:8080/v1/platforms' -i -X POST \
-H 'Content-Type: application/json;charset=UTF-8' \
-d '{
"additionalInformation" : "additional info",
"adviceAccessInfo" : "Access Information Advice",
"attentionField" : null,
"boardingDevice" : "LIFTS",
"contrastingAreas" : "YES",
"creationDate" : null,
"creator" : null,
"dynamicAudio" : "NOT_APPLICABLE",
"dynamicVisual" : "TO_BE_COMPLETED",
"editionDate" : null,
"editor" : null,
"etagVersion" : null,
"height" : 123.12,
"id" : null,
"inclination" : 123.12,
"inclinationLongitudinal" : 123.12,
"inclinationWidth" : 123.12,
"infoOpportunities" : [ "ACOUSTIC_INFORMATION", "ELECTRONIC_VISUAL_INFORMATION_COMPLETE", "TEXT_TO_SPEECH_DEPARTURES" ],
"levelAccessWheelchair" : "NO",
"parentServicePointSloid" : "ch:1:sloid:7000",
"partialElevation" : false,
"shuttle" : "NO",
"sloid" : "ch:1:sloid:12345:1",
"status" : "VALIDATED",
"superelevation" : 321.123,
"tactileSystem" : "TO_BE_COMPLETED",
"validFrom" : "2000-01-01",
"validTo" : "2000-12-31",
"vehicleAccess" : "PLATFORM_ACCESS_WITH_ASSISTANCE_WHEN_NOTIFIED",
"wheelchairAreaLength" : 456.321,
"wheelchairAreaWidth" : 321.123
}'
Example response
HTTP/1.1 412 Precondition Failed
Content-Type: application/json
Content-Length: 133
{
"status" : 412,
"message" : "The stop point with sloid ch:1:sloid:7000 does not exist.",
"error" : null,
"details" : null
}