DayPart

Subdivides a ConventionDay. You must have the everything ConventionPrivilege to access this. Day Parts are accessed via /api/daypart.

Properties

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

Complete details in DayPartProperties.

Related Objects

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

convention

The Convention this day part belongs to.

conventionday

The ConventionDay this day part belongs to.

Relationships

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

alternateevents

The list of Events that use this day part as their alternate start time.

alternateeventsessions

The list of EventSessions that use this day part as their alternate start time.

alternateeventsubmissions

The list of EventSubmissions that use this day part as their alternate start time.

alternatesubmissionsessions

The list of EventSubmissionSessions that use this day part as their alternate start time.

preferredevents

The list of Events that use this day part as their preferred start time.

preferredeventsessions

The list of EventSessions that use this day part as their preferred start time.

preferredeventsubmissions

The list of EventSubmissions that use this day part as their preferred start time.

preferredsubmissionsessions

The list of EventSubmissionSessions that use this day part as their preferred start time.

eventstarts

The list of Events that use this day part as their actual scheduled start time.

sessionstarts

The list of EventSessions that use this day part as their actual scheduled start time.

slots

The list of Slots that were generated for this day part.

Includes

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

borders_missing_dayparts

Adds two additional properties: missing_daypart_before and missing_daypart_after. 1 if this daypart is missing a daypart before or after, respectively, 0 if not.

is_on_schedule

Adds two additional properties: is_on_schedule, which is if any slots for this daypart have been assigned to an event, and is_requested_for_schedule, which is any slots for this daypart were chosen as preferred or alternate start times for any events or event sessions. For both, 1 is returned if true, 0 if not.

Services

The services used to fetch and manipulate day parts.

Search Day Parts

This will search across all conventions. To search on a single convention see "Relationships" in Convention.

 GET /api/daypart
Optional Params
query

Searches a partial name.

Returns:

 {
    "paging" : {...},
    "items" : [
        {
          "id" : "xxx",
          "name" : "Friday",
          ...
        },
        ...
    ]
 }

Create Day Part

The endpoint /api/daypart no longer supports the create (POST) action. See "Add Day Part to Convention Day" in ConventionDay.

Read Day Part

 GET /api/daypart/xxx

Returns:

 {
   "id" : "xxx",
   "name" : "Friday",
   ...
 }

Update Day Part

Day Parts can no longer be updated (except for via name changes to the DayPart's ConventionDay).

Delete Day Part

 DELETE /api/daypart/xxx

Returns:

 {
   "success" : 1
 }