Skip to content

Unpublish workflow

POST
/api/v1/workflows/{id}/unpublish
curl --request POST \
--url https://dashboard.justcrawl.io/api/v1/workflows/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/unpublish \
--header 'Authorization: Bearer <token>'

Revert a published workflow back to draft and clear its route. Dispatch resolution will skip the workflow until it’s re-published with a route.

id
required
string format: uuid

The workflow ID.

Workflow status flipped to draft; route cleared.

Media type application/json
object
workflowId
string format: uuid
status
string
Allowed values: draft
Example
{
"status": "draft"
}

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."
}

Resource not found

Media type application/json
object
error
string
Example
{
"error": "Workflow not found"
}

Unexpected server error. Logs and PostHog $exception capture

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