Skip to main content
POST
/
scheduler
/
schedules
Create a schedule
import requests

url = "https://{FUSION HOST}/api/scheduler/schedules"

payload = {
    "id": "<string>",
    "creatorType": "<string>",
    "creatorId": "<string>",
    "createTime": "2023-11-07T05:31:56Z",
    "startTime": "2023-11-07T05:31:56Z",
    "endTime": "2023-11-07T05:31:56Z",
    "repeatUnit": "MILLISECOND",
    "interval": 123,
    "active": True,
    "callParams": {
        "uri": "<string>",
        "method": "GET",
        "queryParams": {},
        "headers": {},
        "entity": {}
    }
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
{}

Body

application/json

JSON-formatted schedule configuration values.

id
string
creatorType
string
creatorId
string
createTime
string<date-time>
startTime
string<date-time>
endTime
string<date-time>
repeatUnit
enum<string>
Available options:
MILLISECOND,
SECOND,
MINUTE,
HOUR,
DAY,
WEEK,
MONTH
interval
integer
active
boolean
callParams
object

Response

200 - application/json

successful operation

{key}
object