Magidoc

insertRecurringAction
Mutation

Create a recurring action. You must call insertActions first to create the action.

Parameters:

  • actionId: ID of the action to make recurring (must exist)
  • type: Recurrence type (daily, weekly, monthly, annually)
  • startDate: Start date in ISO 8601 format
  • endDate: End date in ISO 8601 format
  • interval: Interval of recurrence (min: 1, max: 12)
  • endingType: How recurrence ends (never, after, date)
  • endingAfter: Number of occurrences before ending (min: 1, max: 52)
  • days: Days of the week (Mon, Tue, Wed, Thu, Fri, Sat, Sun)
  • showOnDueDate: Show the action on its due date (default: false)

Access: Requires user access to the action.

Errors: Throws error if action not found or user lacks permission.

Arguments

#

actionId

ID !
Non-null

ID of the action to make recurring

type

Recurrence type (daily, weekly, monthly, annually)

dayType

Day type (calendar day, workday)

startDate

Start date of the recurring action

endDate

End date of the recurring action

interval

Interval of recurrence (min: 1, max: 12)

endingType

How recurrence ends (never, after, date)

endingAfter

Number of occurrences before ending (min: 1, max: 52)

days

Days of the week (Mon, Tue, Wed, Thu, Fri, Sat, Sun)

showOnDueDate

Show the action on its due date

recurringId

Existing recurring ID to link to

Response

#

Returns RecurringAction .

Example

#