Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Schedules
  • Back to home
  • Omni
  • Installation
  • Document APIs
  • Contact APIs
  • Audit APIs
  • Tasks
    • Schedules
      • List all scheduled tasks
        GET
      • Get scheduled task details
        GET
      • Update scheduled task
        PATCH
      • Update scheduled task (full update)
        PUT
    • Get task details
      GET
    • Update task
      PATCH
    • Update task (full update)
      PUT
  • Core APIs
    • Get Enums
      GET
  • Review
  • Authz
    • Exchange Token
      POST
    • Send OTP
      POST
    • Verify OTP
      POST
    • well know
      GET
    • Login User
      POST
  • Workflow
    • Runner
      • Create Runner
      • Retrieve Runner
      • Executer
    • Flow
      • Create Flow
      • List Flow
  1. Schedules

Update scheduled task (full update)

preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
PUT
/tasks/schedules/{id}/
Last modified:2025-08-24 09:59:10
Full update of a scheduled task's configuration

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "name": "Daily Report Generation",
    "task": "reports.tasks.generate_report",
    "interval": {
        "every": 1,
        "period": "days"
    },
    "crontab": {
        "minute": "0",
        "hour": "9",
        "day_of_week": "1-5",
        "day_of_month": "*",
        "month_of_year": "*",
        "timezone": "UTC"
    },
    "args": [
        "daily",
        "financial"
    ],
    "kwargs": {
        "report_type": "daily",
        "include_charts": true
    },
    "headers": {},
    "expires": "2019-08-24T14:15:22Z",
    "expires_at": "2019-08-24T14:15:22Z",
    "one_off": false,
    "start_time": "2019-08-24T14:15:22Z",
    "enabled": true,
    "description": "Generate daily financial reports"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://preprod.api.crego.io/tasks/schedules//' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Daily Report Generation",
    "task": "reports.tasks.generate_report",
    "interval": {
        "every": 1,
        "period": "days"
    },
    "crontab": {
        "minute": "0",
        "hour": "9",
        "day_of_week": "1-5",
        "day_of_month": "*",
        "month_of_year": "*",
        "timezone": "UTC"
    },
    "args": [
        "daily",
        "financial"
    ],
    "kwargs": {
        "report_type": "daily",
        "include_charts": true
    },
    "headers": {},
    "expires": "2019-08-24T14:15:22Z",
    "expires_at": "2019-08-24T14:15:22Z",
    "one_off": false,
    "start_time": "2019-08-24T14:15:22Z",
    "enabled": true,
    "description": "Generate daily financial reports"
}'

Responses

🟢200OK
application/json
Scheduled task updated successfully
Body

Example
{
    "id": 1,
    "name": "Daily Report Generation",
    "task": "reports.tasks.generate_report",
    "interval": {
        "id": 1,
        "every": 1,
        "period": "days"
    },
    "crontab": {
        "id": 1,
        "minute": "0",
        "hour": "9",
        "day_of_week": "1-5",
        "day_of_month": "*",
        "month_of_year": "*",
        "timezone": "UTC"
    },
    "args": [
        "daily",
        "financial"
    ],
    "kwargs": {
        "report_type": "daily",
        "include_charts": true
    },
    "headers": {},
    "expires": "2019-08-24T14:15:22Z",
    "expires_at": "2019-08-24T14:15:22Z",
    "one_off": false,
    "start_time": "2019-08-24T14:15:22Z",
    "enabled": true,
    "total_run_count": 45,
    "last_run_at": "2019-08-24T14:15:22Z",
    "date_changed": "2019-08-24T14:15:22Z",
    "description": "Generate daily financial reports"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Modified at 2025-08-24 09:59:10
Previous
Update scheduled task
Next
Get task details
Built with