Unpublish workflow
POST
/api/v1/workflows/{id}/unpublish
const url = 'https://dashboard.justcrawl.io/api/v1/workflows/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/unpublish';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
The workflow ID.
Responses
Section titled “ Responses ”Workflow status flipped to draft; route cleared.
Media type application/json
object
workflowId
string format: uuid
status
string
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"}