curl --request POST \
--url https://api.example.com/schedules/{schedule_id} \
--header 'Content-Type: application/json' \
--cookie fastapiusersauth= \
--data '
{
"inputs": {},
"cron": "<string>",
"every": "<string>",
"offset": "<string>",
"start_at": "2023-11-07T05:31:56Z",
"end_at": "2023-11-07T05:31:56Z",
"status": "online"
}
'{
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"every": "<string>",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"status": "online",
"cron": "<string>",
"inputs": {},
"offset": "<string>",
"start_at": "2023-11-07T05:31:56Z",
"end_at": "2023-11-07T05:31:56Z",
"timeout": 123
}Update a schedule from a workflow. You cannot update the Workflow Definition, but you can update other fields.
curl --request POST \
--url https://api.example.com/schedules/{schedule_id} \
--header 'Content-Type: application/json' \
--cookie fastapiusersauth= \
--data '
{
"inputs": {},
"cron": "<string>",
"every": "<string>",
"offset": "<string>",
"start_at": "2023-11-07T05:31:56Z",
"end_at": "2023-11-07T05:31:56Z",
"status": "online"
}
'{
"owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"every": "<string>",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"status": "online",
"cron": "<string>",
"inputs": {},
"offset": "<string>",
"start_at": "2023-11-07T05:31:56Z",
"end_at": "2023-11-07T05:31:56Z",
"timeout": 123
}sch-[0-9a-f]{32}ISO 8601 duration string
ISO 8601 duration string
ISO 8601 datetime string
ISO 8601 datetime string
online, offline Successful Response
ISO 8601 duration string
ISO 8601 duration string
ISO 8601 datetime string
ISO 8601 datetime string
The maximum number of seconds to wait for the workflow to complete
Was this page helpful?