Administrator
- Administrator
- All Products
/public/core/v3/schedule
Field
| Type
| Required
| Description
|
---|---|---|---|
name
| String
| Yes
| Schedule name.
|
description
| String
| -
| Description of the schedule.
|
status
| String
| -
| Status of the schedule. Use one of the following values:
Default is enabled.
|
startTime
| Date/time
| Yes
| Date and time when the schedule starts running, in UTC format.
|
endTime
| Date/time
| -
| Date and time when the schedule stops running. If you do not use this parameter, the schedule runs indefinitely.
|
interval
| String
| Yes
| Interval or repeat frequency at which the schedule runs tasks. Use one of the following options:
To indicate when tasks should run, use dayOfWeek with weekOfMonth, such as the First Monday. Or use dayOfMonth, such as 1.
Tip: To run tasks on the last day of the month, use the Last weekOfMonth parameter with the Day dayOfWeek parameter.
Default is no interval.
|
frequency
| Int
| Yes
| Repeat frequency for tasks. Use one of the following values:
Use with Minutely, Hourly, and Daily intervals only.
|
rangeStartTime
| Date/time
| -
| The start of the time range within a day that you want tasks to run. Enter a date and time using standard date/time format. Only the time portion is used.
Use with Minutely, Hourly, and Daily intervals only.
|
rangeEndTime
| Date/time
| -
| The end of the time range within a day that you want tasks to run. Enter a date and time using standard date/time format. Only the time portion is used.
Use with Minutely, Hourly, and Daily intervals only.
|
sun
| Boolean
| -
| Runs tasks on Sunday at the configured time.
You can use the sun - sat parameters to run tasks on several days of the week.
Use with Minutely, Hourly, Weekly, and Biweekly intervals only.
|
mon
| Boolean
| -
| Runs tasks on Monday at the configured time.
See description for sun.
|
tue
| Boolean
| -
| Runs tasks on Tuesday at the configured time.
See description for sun.
|
wed
| Boolean
| -
| Runs tasks on Wednesday at the configured time.
See description for sun.
|
thu
| Boolean
| -
| Runs tasks on Thursday at the configured time.
See description for sun.
|
fri
| Boolean
| -
| Runs tasks on Friday at the configured time.
See description for sun.
|
sat
| Boolean
| -
| Runs tasks on Saturday at the configured time.
See description for sun.
|
weekDay
| Boolean
| -
| Runs tasks on weekdays. Use one of the following options:
Use with the Daily interval only.
|
dayOfMonth
| Int
| -
| Date of the month that tasks should run. Use a date between 1-28.
Use with the Monthly interval only.
Tip: To run tasks on the last day of the month, use the Last weekOfMonth parameter with the Day dayOfWeek parameter.
|
weekOfMonth
| String
| -
| Week of the month that tasks should run. Use with dayOfWeek to specify the day and week of the month that tasks should run. For example, the First Day or the Last Wednesday of the month.
Use one of the following options:
Use with the Monthly interval only.
|
dayOfWeek
| String
| -
| Day of the week that tasks should run. Use with weekOfMonth to specify the day and week of the month that tasks should run. For example, the First Day or the Last Wednesday of the month.
Use one of the following options:
Use with the Monthly interval only.
|
timeZoneId
| String
| -
| Time zone that the schedule uses for the dayOfMonth, weekOfMonth, and dayOfWeek fields.
Default is UTC.
For more information, see Appendix A,
Time zone codes
|
POST <baseApiUrl>/public/core/v3/schedule Accept: application/json INFA-SESSION-ID: <sessionId> { "name": "my_schedule_1", "startTime" : "2023-09-18T22:00:00.000Z", "interval" : "Minutely", "frequency" : 5, "mon" : true, "wed" : true, "status" : "enabled" }
{ "id": "8oKIw0ib9qMg1lGIWNPzkdD000000000000H", "createTime": "2023-09-10T11:48:28.000Z", "updateTime": "2023-09-10T11:48:28.000Z", "createdBy": "dev_scott", "updatedBy": "dev_scott", "name": "my_schedule_1", "rangeStartTime": null, "rangeEndTime": null, "status": "enabled", "frequency": 5, "description": null, "mon": true, "tue": false, "wed": true, "thu": false, "fri": false, "sat": false, "sun": false, "weekDay": false, "dayOfMonth": 0, "weekOfMonth": null, "dayOfWeek": null, "scheduleFederatedId": "1BrVocfYMAzeQHwXaaMWe7", "startTime": "2020-12-25T12:00:00.000Z", "endTime": null, "interval": "Minutely", "timeZoneId": "America/Los Angeles" }