Set scheduler


put https://api.trivi.com/v2/templates/{templateId}/scheduler

Path Variables
templateId
integer   required
Format int64
Body
TemplateScheduler
start
string   required
Format date
end
string   optional

If generateMaxCount is filled, this has to be empty.

Format date
generateMaxCount
integer   optional

If end is filled, this has to be empty.

frequency
integer   required

1 - Daily, 2 - Weekly, 3 - Monthly, 4 - Yearly

useWorkflow
boolean   required

If false, the accounting document will be created in Draft state. If true, we will try to move the accounting document to the closest state to Draft according to the Workflow setting on the organization.

generateOnEndOfMonth
boolean   optional

If true, frequency has to be Monthly and only month and year is taken from start

emailRecipients
Array of Object   optional

If null or empty no email will be sent.

emailTemplateId
integer   optional

Email template has to be of type 2 - AccountingDocument.

Format int64
TemplateScheduler
start
string   required
Format date
end
string   optional

If generateMaxCount is filled, this has to be empty.

Format date
generateMaxCount
integer   optional

If end is filled, this has to be empty.

frequency
integer   required

1 - Daily, 2 - Weekly, 3 - Monthly, 4 - Yearly

useWorkflow
boolean   required

If false, the accounting document will be created in Draft state. If true, we will try to move the accounting document to the closest state to Draft according to the Workflow setting on the organization.

generateOnEndOfMonth
boolean   optional

If true, frequency has to be Monthly and only month and year is taken from start

emailRecipients
Array of Object   optional

If null or empty no email will be sent.

emailTemplateId
integer   optional

Email template has to be of type 2 - AccountingDocument.

Format int64