Skip to content

Stop Workbook

POST
/api/workbooks/{workbook_id}/stop
curl --request POST \
--url http://localhost:8000/api/workbooks/example/stop \
--header 'Authorization: Bearer <token>'

Stop a running workbook.

Sets the workbook to paused (the run handler polls this and halts within a couple seconds, before its next cell) and cancels the in-flight job so the sequential worker is freed immediately instead of waiting out the run.

workbook_id
required
Workbook Id
string
x-workspace-id
Any of:
string

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}