GET /api/persontravelinformations

Description

Get travel information for a person's sign on to an event. For now, we are only exposing the possibility to get a single, current PersonTravelInformation object for a person/event, no listings of multiple PersonTravelInformations (that may come in a later version)

Parameters

user_name

String. User name for user in question. If not provided, will look up PersonTravelInformation for logged in user.

event_id

Int. Mandatory. ID for event we are looking at.

view

String. Optional. "full" or "simple". Which type of object view to return.

Security

Superuser, manager, course admin or self

fields

String. Optional. See Field customization.

Return

Array of single PersonTravelInformation object.

POST /api/persontravelinformations

Description

Create new travel information for a person's sign on to an event.

Parameters

user_name

String. User name for user in question. If not provided, will look up PersonTravelInformation for logged in user.

event_id

Int. Mandatory. ID for event we are looking at.

travelinformation_id

Int. Mandatory. ID for TravelInformation.

view

String. Optional. "full" or "simple". Which type of object view to return.

arrival_time

Date. Indicates arrival time for participant.

arrival_location

String. Indicates arrival location for participant.

arrival_info

String. Extra information about arrival. Interpretation is dependant on the TravelInformation object's configuration.

departure_time

Date. Indicates departure time for participant.

departure_location

String.Indicates departure location for participant.

departure_info

String. Extra information about departure. Interpretation is dependant on the TravelInformation object's configuration.

comment

String. Participant's comment for the travel info.

hotel

Boolean. Whether or not participant wants to/needs to have a hotel room booked.

hotel_room_type

String. "double"/"single"/empty string. Double or single room.

hotel_roomie_name

String. Indicates who the participant wishes to share room with.

pick_up

Boolean. Indicates whether or not participant wants to/needs to be picked up at arrival location

fields

String. Optional. See Field customization.

Security

Superuser, manager, course admin or self

Return

Array of single PersonTravelInformation object.

PUT /api/persontravelinformations

Description

Update travel information for a person's sign on to an event.

Parameters

user_name

String. User name for user in question. If not provided, will look up PersonTravelInformation for logged in user.

event_id

Int. Mandatory. ID for event we are looking at.

travelinformation_id

Int. Mandatory. ID for TravelInformation.

view

String. Optional. "full" or "simple". Which type of object view to return.

arrival_time

Date. Indicates arrival time for participant.

arrival_location

String. Indicates arrival location for participant.

arrival_info

String. Extra information about arrival. Interpretation is dependant on the TravelInformation object's configuration.

departure_time

Date. Indicates departure time for participant.

departure_location

String.Indicates departure location for participant.

departure_info

String. Extra information about departure. Interpretation is dependant on the TravelInformation object's configuration.

comment

String. Participant's comment for the travel info.

hotel

Boolean. Whether or not participant wants to/needs to have a hotel room booked.

hotel_room_type

String. "double"/"single"/empty string. Double or single room.

hotel_roomie_name

String. Indicates who the participant wishes to share room with.

pick_up

Boolean. Indicates whether or not participant wants to/needs to be picked up at arrival location

fields

String. Optional. See Field customization.

Security

Superuser, manager, course admin or self

Return

Array of single PersonTravelInformation object.