Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Tasks
  • Back to home
  • Omni
  • Installation
  • Document APIs
  • Contact APIs
  • Audit APIs
  • Tasks
    • Schedules
      • List all scheduled tasks
      • Get scheduled task details
      • Update scheduled task
      • Update scheduled task (full update)
    • 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. Tasks

Update task

preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
PATCH
/tasks/{task_name}/
Last modified:2025-08-24 09:59:10
Update a task's configuration. Only Celery settings can be modified.
Task creation is disabled and most fields are read-only.

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
{
    "queue": "high_priority",
    "exchange": "celery",
    "routing_key": "reports",
    "priority": 5,
    "link": "notifications.tasks.send_notification",
    "link_error": "error_handling.tasks.log_error",
    "soft_time_limit": 300,
    "time_limit": 600,
    "is_active": true
}

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 PATCH 'https://preprod.api.crego.io/tasks//' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "queue": "high_priority",
    "exchange": "celery",
    "routing_key": "reports",
    "priority": 5,
    "link": "notifications.tasks.send_notification",
    "link_error": "error_handling.tasks.log_error",
    "soft_time_limit": 300,
    "time_limit": 600,
    "is_active": true
}'

Responses

🟢200OK
application/json
Task updated successfully
Body

Example
{
    "name": "reports.tasks.generate_report",
    "description": "Generate and store financial reports",
    "parameters": {
        "input_schema": {
            "type": "object",
            "properties": {
                "report_type": {
                    "type": "string",
                    "enum": [
                        "monthly",
                        "quarterly",
                        "annual"
                    ]
                },
                "date_range": {
                    "type": "object",
                    "properties": {
                        "start_date": {
                            "type": "string",
                            "format": "date"
                        },
                        "end_date": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                }
            }
        }
    },
    "queue": "reports",
    "exchange": "celery",
    "routing_key": "reports",
    "priority": 5,
    "link": "notifications.tasks.send_notification",
    "link_error": "error_handling.tasks.log_error",
    "soft_time_limit": 300,
    "time_limit": 600,
    "is_active": true,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "created_by": {
        "id": 1,
        "username": "john_doe",
        "email": "john.doe@example.com",
        "first_name": "John",
        "last_name": "Doe"
    },
    "updated_by": {
        "id": 1,
        "username": "john_doe",
        "email": "john.doe@example.com",
        "first_name": "John",
        "last_name": "Doe"
    }
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Modified at 2025-08-24 09:59:10
Previous
Get task details
Next
Update task (full update)
Built with