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
dateLocalDateNew date of the day, as
YYYY-MM-DD. Omit to keep it; null is invalid.dayIdID!ID of the day to change.
locationIdIDID of the
Locationthe day shoots at.locationNameStringDisplay name of the day's location.
projectIdID!ID of the project.
sunriseLocalTimeSunrise as
HH:MMin the project time zone.sunsetLocalTimeSunset as
HH:MMin the project time zone.titleStringTitle of the day.
weatherStringShort weather summary, such as "Light rain".
weatherConditionWeatherConditionExpected weather condition. Pass null to clear it.
weatherMaxTemperatureFloatForecast high temperature, in the project's temperature unit.
weatherMinTemperatureFloatForecast 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
}
}