Change a scheduled delivery
Changes a scheduled delivery. The update is partial -- only the fields the body carries are laid over the stored row -- and the result is validated as a whole, so a change that would leave an incomplete row is refused. Two rows cannot be updated at all and answer 409: one whose delivery depends on a condition (NOT_EDITABLE_BY_API) and one built from the system email template (SCHEDULE_USES_SYSTEM_TEMPLATE); a schedule created from the client portal is refused the same way. The confirmation is CONDITIONAL: it is asked for only when the body touches the recipients, the frequency, the day of the week or of the month, the hour, the attachment format, the email template, the body format or any of the six email fields -- that is, everything except report_key. if_version is not accepted. Refusals: 400 VALIDATION_FAILED, UNKNOWN_PARAM or INVALID_VALUE, 403 WRITE_ACCESS_DISABLED, 404 NOT_FOUND, 409 NOT_EDITABLE_BY_API, SCHEDULE_USES_SYSTEM_TEMPLATE, SCHEDULE_QUEUED or ACCOUNT_HAS_NO_OWNER plus the confirmation and idempotency conflicts. It does NOT spend the daily email budget, so it never answers EMAIL_QUOTA_REACHED. The same two warnings a creation can carry apply here.
Every write endpoint reads dry_run and idempotency_key; see the Write guarantees section of the introduction.
Request
- Base URL: https://api.reportingninja.com/v1
- URL: https://api.reportingninja.com/v1/schedules/update
- Auth: HTTP bearer
Request body
Response
The call succeeded. This endpoint reports its errors with a real HTTP status, so a 200 always carries status=ok.
Changes
No recorded changes to this operation across all 1 revision of this API.