Skip to content

Update Worker Task

Method: PUT

Endpoint: /api/v2/worker-tasks/{workerTaskId}

Authentication: Supports Authorization: Bearer <YOUR_API_KEY>, api-key: <YOUR_API_KEY>, and ?token=<YOUR_API_KEY>. Prefer Bearer token.

PUT/api/v2/worker-tasks/{workerTaskId}Update worker task
AuthenticationRequired

Stored only in this browser tab. Sent only to https://openapi.coreclaw.com.

Parameters
path · stringRequired

Saved Worker task template slug. Get it from the `data.list[].slug` field of `GET /api/v2/worker-tasks`. The playground prefills a sample slug; replace it with your own.

Request BodyRequiredapplication/json
FieldTypeRequiredDescription
descriptionstringOptionalTask description. Omit to keep current description.
schedule_dayintegerOptionalDay of month for monthly schedule (1-31). Constraints: range 1-31.
schedule_enabledenum: 0, 1OptionalSchedule switch. 0=disabled, 1=enabled. Constraints: allowed values: `0`, `1`.
schedule_once_datestringOptionalOnce schedule date in YYYY-MM-DD.
schedule_timestringOptionalSchedule time in HH:mm.
schedule_typeenum: 1, 2, 3, 4OptionalSchedule type. 1=daily, 2=weekly, 3=monthly, 4=once. Constraints: allowed values: `1`, `2`, `3`, `4`.
schedule_weekdayenum: 1, 2, 3, 4, 5, 6, 7OptionalWeekday for weekly schedule. 1=Monday ... 7=Sunday. Constraints: range 1-7; allowed values: `1`, `2`, `3`, `4`, `5`, `6`, `7`.
titlestringOptionalTask title. Omit to keep current title.
Request body (JSON)

Use this endpoint to update the title, description, or schedule of a task template. Omitted fields keep their current values.

  • workerTaskId is the saved task template slug.
ParameterRequiredTypeDescription
workerTaskIdYesstringSaved Worker task template slug. Get it from the data.list[].slug field of GET /api/v2/worker-tasks.

Send the request body with Content-Type: application/json. Required/Optional describes each field; the Try it Request Body badge shows whether the body itself is required.

FieldRequiredTypeDescription
descriptionNostringTask template description. Optional.
schedule_dayNointegerDay of month for monthly schedules (1-31).
schedule_enabledNoenum: 0, 1Schedule switch: 1 enabled, 0 disabled.
schedule_once_dateNostringDate for one-time schedules, YYYY-MM-DD.
schedule_timeNostringSchedule time of day, HH:mm.
schedule_typeNoenum: 1, 2, 3, 4Schedule type: 1=daily, 2=weekly, 3=monthly, 4=once.
schedule_weekdayNoenum: 1, 2, 3, 4, 5, 6, 7Day of week for weekly schedules (1=Monday … 7=Sunday).
titleNostringTask template title, used for display and search.
{
"description": "Scrape Google Maps business records on a schedule.",
"schedule_day": 1,
"schedule_enabled": 0,
"schedule_once_date": "2026-08-01",
"schedule_time": "09:00",
"schedule_type": 1,
"schedule_weekday": 1,
"title": "Google Maps Scraper (Task)"
}
Terminal window
curl -X PUT "https://openapi.coreclaw.com/api/v2/worker-tasks/YOUR_WORKER_TASK_ID" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{"description":"Scrape Google Maps business records on a schedule.","schedule_day":1,"schedule_enabled":0,"schedule_once_date":"2026-08-01","schedule_time":"09:00","schedule_type":1,"schedule_weekday":1,"title":"Google Maps Scraper (Task)"}'
{
"code": 0,
"message": "success",
"request_id": "req-123"
}
  • API v2 supports Bearer token, the legacy api-key header, and query token. Prefer Bearer token for new integrations.
  • PUT is a partial update: omitted fields keep their current values; you do not need to resend the whole task object.
  • To update the task input parameters themselves (not the title or schedule), use PUT /api/v2/worker-tasks/{workerTaskId}/input.
HTTP StatusApplication CodeMeaning
2000OK
40011000Bad Request
40112001Unauthorized
40411004Not Found
42211000Unprocessable Entity
42913000Too Many Requests
50010000Internal Server Error