Authorization: Bearer ********************
{
"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
}
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
}'
{
"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"
}
}