Skip to main content
PUT
/
scheduler
/
schedules
/
{id}
Update a schedule
import requests

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

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.put(url, json=payload, headers=headers)

print(response.json())

Path Parameters

id
string
required

The schedule ID.

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