Skip to content

Update Worker Task Input

Method: PUT

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

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}/inputUpdate worker task input
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
inputanyRequiredWorker input payload. Put Worker form fields under `input.parameters.custom`. If left empty in the playground, it will try to load schema defaults before sending.
versionstringOptionalOptional Worker version. Omit it unless you have confirmed a concrete available version for this Worker; not every Worker accepts `latest`.
Request body (JSON)

Use this endpoint to update the input parameters of a task template, optionally switching the Worker version.

  • 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
inputYesanyWorker input payload. Worker form fields usually belong under input.parameters.custom; read the Worker input schema first and build this object from that schema.
versionNostringOptional Worker version. Omit it unless you have confirmed a concrete available version for this Worker; not every Worker accepts latest as an explicit version value.
{
"input": {
"parameters": {
"custom": {
"keywords": [
"coffee"
],
"base_location": "New York,USA",
"max_results": 1
}
}
}
}
Terminal window
curl -X PUT "https://openapi.coreclaw.com/api/v2/worker-tasks/YOUR_WORKER_TASK_ID/input" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{"input":{"parameters":{"custom":{"keywords":["coffee"],"base_location":"New York,USA","max_results":1}}}}'
{
"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.
  • Build input from the target Worker input schema; form fields belong under input.parameters.custom.
  • version is optional and keeps the current version when omitted; pass a concrete available version to switch.
HTTP StatusApplication CodeMeaning
2000OK
40011000Bad Request
40112001Unauthorized
40411004Not Found
42211000Unprocessable Entity
42913000Too Many Requests
50010000Internal Server Error