Skip to main content
Mutation

reflowDayEvents

Lays a day's events out back to back in the given order, keeping each event's duration. Requires edit access to the project. Returns the day's ID.

Arguments

  • anchorStartString

    Start time of the first event, as an ISO 8601 date-time in UTC. Defaults to the current start of the first listed event.

  • dayIdID!

    ID of the day whose events to reflow.

  • orderedEventIds[ID!]!

    IDs of the day's events in their new order. Must not be empty; IDs of events not on this day are ignored.

  • projectIdID!

    ID of the project.

Returns

ScheduleMutationResult!

Example

mutation ReflowDayEvents($anchorStart: String, $dayId: ID!, $orderedEventIds: [ID!]!, $projectId: ID!) {
  reflowDayEvents(
    anchorStart: $anchorStart
    dayId: $dayId
    orderedEventIds: $orderedEventIds
    projectId: $projectId
  ) {
    id
  }
}