Skip to main content
Mutation

updateDay

Changes a shooting day. Omitted arguments are unchanged; null clears an optional field, including temperatures, weather, location and sunrise/sunset. The required date cannot be cleared. Moving the day carries its events to the same local times and attaches other events already on that date. Requires edit access to the project. Returns the day's ID.

Arguments

  • New date of the day, as YYYY-MM-DD. Omit to keep it; null is invalid.

  • dayIdID!

    ID of the day to change.

  • locationIdID

    ID of the Location the day shoots at.

  • locationNameString

    Display name of the day's location.

  • projectIdID!

    ID of the project.

  • sunriseLocalTime

    Sunrise as HH:MM in the project time zone.

  • sunsetLocalTime

    Sunset as HH:MM in the project time zone.

  • titleString

    Title of the day.

  • weatherString

    Short weather summary, such as "Light rain".

  • weatherConditionWeatherCondition

    Expected weather condition. Pass null to clear it.

  • weatherMaxTemperatureFloat

    Forecast high temperature, in the project's temperature unit.

  • weatherMinTemperatureFloat

    Forecast low temperature, in the project's temperature unit.

Returns

ScheduleMutationResult!

Example

mutation UpdateDay($date: LocalDate, $dayId: ID!, $locationId: ID, $locationName: String, $projectId: ID!, $sunrise: LocalTime, $sunset: LocalTime, $title: String, $weather: String, $weatherCondition: WeatherCondition, $weatherMaxTemperature: Float, $weatherMinTemperature: Float) {
  updateDay(
    date: $date
    dayId: $dayId
    locationId: $locationId
    locationName: $locationName
    projectId: $projectId
    sunrise: $sunrise
    sunset: $sunset
    title: $title
    weather: $weather
    weatherCondition: $weatherCondition
    weatherMaxTemperature: $weatherMaxTemperature
    weatherMinTemperature: $weatherMinTemperature
  ) {
    id
  }
}