Skip to main content
Mutation

createDay

Adds a shooting day to a board. Days are renumbered by date, and events on the board that start on that date are attached to the new day. Requires edit access to the project. Returns the new day's ID.

Arguments

  • boardIdID!

    ID of the board to add the day to.

  • Date of the day, as YYYY-MM-DD.

  • 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.

  • weatherMaxTemperatureFloat

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

  • weatherMinTemperatureFloat

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

Returns

ScheduleMutationResult!

Example

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