---
# System prepended metadata

title: Editing recurring schedules

---

# Editing recurring schedules


- Create new mutation for upsert setOneOnOneScheduleWithDirectReport
    - Accept a frequency arg
- Add frequency to schedule type
- Implement update nudging strategy
    - Command pattern?
        - Create schedule + create initial 1-1
        - Update schedule + move next meetings to match new rrule
- Add buttons in header/UI for editing schedule
    - Update the modal to call new edit endpoint
 

query {
  oneOneOne() {
    schedule {
      description
      frequency: WEEKLY | BIWEEKLY | MONTHLY
    }
  }
}

DTSTART=Friday
RRULE:FREQ=MONTHLY

DTSTART=2021
RRULE:FREQ=WEEKLY




schedule = RRule.from_rrule(rrule)

schedule.frequency == MONTHLY



<Modal
    value="weekly" | "monthly"
/>



- createOneOnOneScheduleWithDirectReport
    - subject_aggregate_id
    - rrule: RRULE
    - frequency: weekly | biweekly | monthly

- updateOneOnOneScheduleWithDirectReport
    - subject_aggregate_id
    - rrule: RRULE
    - frequency: weekly | biweekly | monthly

- setOneOnOneScheduleWithDirectReport
    - seems alright!

Upsert style?
PUT /1-1/{subject}/schedule


if create
    then create initial
else
    nudge any upcoming