Knock.Workflows.bulk_create_schedules

You're seeing just the function bulk_create_schedules, go back to Knock.Workflows module for more information.
Link to this function

bulk_create_schedules(client, schedules)

View Source

Specs

bulk_create_schedules(Knock.Client.t(), [map()]) :: Knock.Api.response()

Creates schedule instances in bulk.

Accepts a list of schedules and creates them asynchronously. The endpoint returns a BulkOperation.

Each schedule in the list should contain:

  • recipient: recipient for the schedule to be created for
  • actor: actor to be used when trigger the target workflow
  • repeats: repeat rules to specify when the workflow must be triggered
  • data: data to be used as variables when the workflow runs
  • tenant: tenant to be used for when the workflow runs
  • scheduled_at: ISO-8601 formatted date time for when the schedule should start
  • ending_at: ISO-8601 formatted date time for when the schedule should end