Update a reusable batch job
const url = 'https://api.justcrawl.io/api/v1/batch-jobs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","workflowId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","input":{"kind":"tags","tags":["example"]},"discoveryPolicy":{"additionalTags":["example"],"inheritParentTags":true}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.justcrawl.io/api/v1/batch-jobs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "workflowId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "input": { "kind": "tags", "tags": [ "example" ] }, "discoveryPolicy": { "additionalTags": [ "example" ], "inheritParentTags": true } }'Requires jobs:submit; setting discovery tags or inheritance additionally requires urls:write. A nonempty partial patch merges atomically with the stored definition; omitted fields retain their current values. Creator provenance and already accepted runs do not change. Schedule definitions also require schedules:write and verified email, checked inside the binding lock. Dataset definitions accept name-only patches; supplied configuration fields return dataset_definition_readonly (409). Schedule definitions accept tag inputs; a manifest input is invalid. Authority fields are rejected. Hidden and foreign definitions return not_found. Nonblocking selector-growth warning codes accompany the saved definition.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Frozen for each run. Setting additional tags or inheritance requires urls:write; generated provenance tag prefixes are reserved.
object
Responses
Section titled “Responses”Update a reusable batch job.
object
object
Frozen for each run. Setting additional tags or inheritance requires urls:write; generated provenance tag prefixes are reserved.
object
Immutable dataset owner identity. Output only; it remains protected after owner deletion.
Stored dataset workflow version, selected by provisioning. Null for other definition kinds.
Nonblocking successful-save warnings; show them alongside the saved configuration.
Example
{ "definition": { "input": { "kind": "tags" }, "kind": "standard" }, "warnings": [ "discovery_tags_overlap_selector" ]}Validation failed — request body or query is missing/invalid
object
Example
{ "error": "Missing or invalid \"url\" field"}Missing or invalid authentication token
object
Example
{ "error": "Missing or invalid authentication token"}Insufficient permissions for this operation
object
Example
{ "error": "No organization. Complete onboarding first."}Resource not found
object
Example
{ "error": "Workflow not found"}Operation conflicts with current resource state
object
Example
{ "error": "Resource already exists"}Unexpected server error. Logs and PostHog $exception capture
object
Example
{ "error": "Something went wrong"}