Skip to content

Toggle input config

PATCH
/api/v1/integrations/inputs/{id}/toggle
Code sample: cURL
curl -X PATCH 'https://dashboard.justcrawl.io/api/v1/integrations/inputs/iq_01ABC/toggle' \
-H 'Authorization: Bearer $JUSTCRAWL_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"isEnabled":false}'

Pauses or resumes the input source without deleting it. A paused SQS config stays in the dashboard, keeps its credentials encrypted at rest, and resumes from the next poll cycle when re-enabled. A paused webhook config begins returning 404 on its signed ingest URL until re-enabled. Use this for incident-mode pauses; use DELETE to remove permanently. Requires the org:manage permission.

id
required
string
Media type application/json
object
isEnabled
required
boolean
Example generated
{
"isEnabled": true
}

Toggled. Body echoes { id, isEnabled }.

Media type application/json
object
id
string
isEnabled
boolean
Example generated
{
"id": "example",
"isEnabled": true
}

Validation failed — request body or query is missing/invalid

Media type application/json
object
error
string
Example
{
"error": "Missing or invalid \"url\" field"
}

Missing or invalid authentication token

Media type application/json
object
error
string
Example
{
"error": "Missing or invalid authentication token"
}

Insufficient permissions for this operation

Media type application/json
object
error
string
Example
{
"error": "No organization. Complete onboarding first."
}

Input queue config not found.

Unexpected server error. Logs and PostHog $exception capture

Media type application/json
object
error
string
Example
{
"error": "Something went wrong"
}