Skip to content

Campaigns Schedule ​

lindris campaigns schedule

Schedule a draft campaign for future delivery

Synopsis ​

POST /api/campaigns/{id}/schedule — schedules a draft campaign to send at a future time. --at is an ISO 8601 datetime that MUST carry a timezone: 'Z' for UTC (e.g. 2030-01-15T14:30:00Z) or an offset (e.g. 2030-01-15T11:30:00-03:00); seconds are optional (2030-01-15T14:30Z). Use the offset in force on the send date — after a daylight-saving change it differs from today's. A value without a timezone is rejected. At a terminal, the prompt shows the time you asked for; --output text prints the time the API stored. Both show this machine's zone with the UTC instant beside it, so a wrong offset shows as the wrong local hour. The default JSON output is the campaign the API returns, its scheduledAt as stored. It must be in the future — the API rejects a past time with a clear 422. The API stores whole minutes, rounding seconds up.

Same draft, builder-review (--force), and sending-limit rules as campaigns send apply. The command confirms first; --yes skips the prompt and is required when stdin is not a terminal. The CLI and the API cannot undo a schedule; the dashboard can cancel it.

bash
lindris campaigns schedule <id> --at=<iso-with-timezone> [flags]

Examples ​

bash
$ lindris campaigns schedule 123 --at=2030-01-15T14:30:00Z
$ lindris campaigns schedule 123 --at=2030-01-15T09:30:00-05:00 --yes
$ lindris campaigns schedule 123 --at=2030-01-15T14:30:00Z --force --yes

Options ​

  • --at string - Send time as ISO 8601 WITH a timezone, e.g. 2030-01-15T14:30:00Z or 2030-01-15T11:30:00-03:00; shown in this machine's zone and UTC — required
  • --force - Schedule even if the campaign hasn't been reviewed in the builder
  • -o, --output string - Output format: json|text. Default: json
  • --yes - Skip the confirmation prompt (required when stdin is not a terminal)

See Also ​