Entur Developer
Partner
REST
Products

timebands

Server

Retrieves all time bands

GET
https://api.entur.io/products
/timebands

Retrieves all time bands › query Parameters

orgId
​string · style: form · explode: true

The unique id to identify an organisation

fareFrameId
​string · style: form · explode: true

The unique id to identify a dataset to an organisation

minimizeDataLoad
​boolean · style: form · explode: true

Retrieves all time bands › Headers

ET-Client-Name
​string · style: simple

Entur Client Header. It is required that all consumers identify themselves by using this header. Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers. The structure of ET-Client-Name should be: <company>-<application>.

X-Correlation-Id
​string · style: simple

Correlation id

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves all time bands › Responses

Returns the info

​Timeband[]
The TimeBand describe during which the assignment applies
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

dayOffset
​integer · int32 · required

Days offset. This will determine if endTime is x number of days from today. ie. 1 is tomorrow 0 is today.

Example: 1
​TextInLanguage[] · required

Description represented in different languages. Language codes are ISO-639

endTime
​string · required

End time.

Example: 11:11:11
​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:Timeband:2HoursValidPlus1
modification
​string · enum · readOnly · required

Modification status.

Enum values:
NEW
REVISE
DELETE
Example: NEW
​TextInLanguage[] · required

The name of the luggage allowance represented in different languages. Language codes are ISO-639

nameOfClass
​string · readOnly · required

Name of class.

Example: TimeBand
startTime
​string · required

Start time.

Example: 11:11:11
status
​string · enum · readOnly · required

Status.

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
compatibleWithVersionRef
​string · readOnly

Compatible with version.

derivedFromVersionRef
​string · readOnly

Derived from version.

timeZone
​string

Time zone.

Example: Europe/Oslo
Default: Europe/Oslo
​ValidityCondition[]

ValidityConditions sequence.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z…

Version.

Example: NSB:Version:V1

Create a time band

POST
https://api.entur.io/products
/timebands

Create a time band › Headers

ET-Client-Name
​string · style: simple

Entur Client Header. It is required that all consumers identify themselves by using this header. Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers. The structure of ET-Client-Name should be: <company>-<application>.

X-Correlation-Id
​string · style: simple

Correlation id

Create a time band › Request Body

The TimeBand describe during which the assignment applies
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

dayOffset
​integer · int32 · required

Days offset. This will determine if endTime is x number of days from today. ie. 1 is tomorrow 0 is today.

Example: 1
​TextInLanguage[] · required

Description represented in different languages. Language codes are ISO-639

endTime
​string · required

End time.

Example: 11:11:11
​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:Timeband:2HoursValidPlus1
modification
​string · enum · readOnly · required

Modification status.

Enum values:
NEW
REVISE
DELETE
Example: NEW
​TextInLanguage[] · required

The name of the luggage allowance represented in different languages. Language codes are ISO-639

nameOfClass
​string · readOnly · required

Name of class.

Example: TimeBand
startTime
​string · required

Start time.

Example: 11:11:11
status
​string · enum · readOnly · required

Status.

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
compatibleWithVersionRef
​string · readOnly

Compatible with version.

derivedFromVersionRef
​string · readOnly

Derived from version.

timeZone
​string

Time zone.

Example: Europe/Oslo
Default: Europe/Oslo
​ValidityCondition[]

ValidityConditions sequence.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z…

Version.

Example: NSB:Version:V1

Create a time band › Responses

Entity created successfully

No data returned

Retrieves time band for id and version

GET
https://api.entur.io/products
/timebands/{id}/{version}

Retrieves time band for id and version › path Parameters

id
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The id to identify a Timeband

version
​string · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

The id for the version of the Timeband

Retrieves time band for id and version › Headers

ET-Client-Name
​string · style: simple

Entur Client Header. It is required that all consumers identify themselves by using this header. Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers. The structure of ET-Client-Name should be: <company>-<application>.

X-Correlation-Id
​string · style: simple

Correlation id

If-None-Match
​string · style: simple

Used to make conditional requests. It allows the client to provide an ETag value, and the server will process the request only if the ETag does not match the current version of the resource.

Retrieves time band for id and version › Responses

Returns the info

The TimeBand describe during which the assignment applies
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

dayOffset
​integer · int32 · required

Days offset. This will determine if endTime is x number of days from today. ie. 1 is tomorrow 0 is today.

Example: 1
​TextInLanguage[] · required

Description represented in different languages. Language codes are ISO-639

endTime
​string · required

End time.

Example: 11:11:11
​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:Timeband:2HoursValidPlus1
modification
​string · enum · readOnly · required

Modification status.

Enum values:
NEW
REVISE
DELETE
Example: NEW
​TextInLanguage[] · required

The name of the luggage allowance represented in different languages. Language codes are ISO-639

nameOfClass
​string · readOnly · required

Name of class.

Example: TimeBand
startTime
​string · required

Start time.

Example: 11:11:11
status
​string · enum · readOnly · required

Status.

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
compatibleWithVersionRef
​string · readOnly

Compatible with version.

derivedFromVersionRef
​string · readOnly

Derived from version.

timeZone
​string

Time zone.

Example: Europe/Oslo
Default: Europe/Oslo
​ValidityCondition[]

ValidityConditions sequence.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z…

Version.

Example: NSB:Version:V1

Update a time band

PUT
https://api.entur.io/products
/timebands/{id}/{version}

Update a time band › path Parameters

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple
version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required · style: simple

Update a time band › Headers

ET-Client-Name
​string · style: simple

Entur Client Header. It is required that all consumers identify themselves by using this header. Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers. The structure of ET-Client-Name should be: <company>-<application>.

X-Correlation-Id
​string · style: simple

Correlation id

Update a time band › Request Body

The TimeBand describe during which the assignment applies
changed
​string · readOnly · required

Changed datetime.

created
​string · readOnly · required

Created datetime.

dayOffset
​integer · int32 · required

Days offset. This will determine if endTime is x number of days from today. ie. 1 is tomorrow 0 is today.

Example: 1
​TextInLanguage[] · required

Description represented in different languages. Language codes are ISO-639

endTime
​string · required

End time.

Example: 11:11:11
​VersionOfObjectRef · required

Fare frame ref.

id
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z… · required

Id.

Example: NSB:Timeband:2HoursValidPlus1
modification
​string · enum · readOnly · required

Modification status.

Enum values:
NEW
REVISE
DELETE
Example: NEW
​TextInLanguage[] · required

The name of the luggage allowance represented in different languages. Language codes are ISO-639

nameOfClass
​string · readOnly · required

Name of class.

Example: TimeBand
startTime
​string · required

Start time.

Example: 11:11:11
status
​string · enum · readOnly · required

Status.

Enum values:
DRAFT
PROPOSED
VERSIONED
DEPRECATED
Example: DRAFT
compatibleWithVersionRef
​string · readOnly

Compatible with version.

derivedFromVersionRef
​string · readOnly

Derived from version.

timeZone
​string

Time zone.

Example: Europe/Oslo
Default: Europe/Oslo
​ValidityCondition[]

ValidityConditions sequence.

version
​string · minLength: 1 · pattern: ^([A-Z]{3}):([A-Za-z…

Version.

Example: NSB:Version:V1

Update a time band › Responses

Entity updated successfully


Did you find what you were looking for?