Event and EventSession Union View

This is a view that unifies Events and EventSessions in a single set of results.

Events and EventSessions are stored in entirely different tables in the database, but share many different properties because Events was the original table, with EventSessions added later to allow for multi-session Events.

Properties

See "Object Properties" in Introduction for basic shared properties.

Complete details in EventSessionUnion Properties.

Within the context of this union view, objects and their properties are read-only. To edit the Event or EventSession objects, see their specific API documents.

Note, with regard to unique IDs:

object_type

The type of object represented by the record, in all lowercase.

In this result set, this will be only either event or eventsession.

id

The id for the specific object in question. It is only unique within its object type.

Related Objects

See "Related Objects" in Introduction for how to use them.

alternatedaypart

convention

The Convention this Event or Session belongs to.

preferreddaypart

room

The Room this Event or Session is scheduled in, if it is only one.

space

The Space this Event or Session is scheduled in, if it is only one.

startdaypart

The DayPart on which this Event or Session is scheduled to start.

type [eventtype]

The EventType for this Event, or this Session's Event.

Relationships

See "Relationships" in Introduction for how to use them.

[self]

Note that the normal self relationship will be specific to the object type. That is, it will be:

/api/event/xxx
/api/eventsession/xxx

Requesting specific Event Session Union records by ID, in the normal Wing way, under the union endpoints available, is not supported. (Review "Properties" above if unclear why.)

event

EventSessions in the returned results will have an Event relationship. Events, of course, will not.

Includes

See "Includes" in Introduction for how to use them.

There are currently no includes for this view.

Services

The services used to fetch objects in this result set.

Note that only read only services are provided here. To edit or manipulate one of the objects received in a request to one of these services, use its self relationship (see "Relationships"), and refer to the API document for the object in question (Event or EventSession).

Search Unified Events/Event Sessions

This section describes basic searchability of Event-Session union, which is available across several endpoints.

Available Endpoints

To request events, a user must make a request via an endpoint for a parent object. The parent objects for which this consolidated search behavior is valid are:

Convention
DayPart scheduled session starts
Room
Space

Departures/differences from basic behavior will be discussed in the documentation for the specific parent object relationship.

Returns:

 {
    "paging" : {...},
    "items" : [
        {
          "id" : "xxx",
          "name" : "Super Event!",
          ...
        },
        ...
    ]
 }
Optional Params
Queryables

Pass a string query to search for a partial match in specifically allowed text fields.

Queryable fields
name

(Event name.)

room_name

(can be searched only by specifying field with query_field=room_name; see options below)

session_name
space_name

(can be searched only by specifying field with query_field=space_name; see options below)

startdaypart_name

(can be searched only by specifying field with query_field=startdaypart_name; see options below)

Queryable options
query_field

Use of query will search only in the text fields name and session_name by default. To search in a different field (see above), or in just one of the default fields, set query_field to the field you want to search in.

Qualifiers
alternatedaypart_id
event_id
event_number
is_cancelled
is_scheduled
name
preferreddaypart_id
published_to_schedule
room_id
session_name
space_id
startdaypart_id
type_id

Create, Update, Delete Unified Event/Event Session

You can't edit, write, or manipulate an object through this View.

Read Unified Event/Event Session

Specific objects cannot be requested by ID through this View. See "Properties".