Skip to main content
POST
Cancel Operation
Cancel an owned Modern Slides operation while it is queued or running. The response is the terminal operation with status: "cancelled" and a structured cancellation error.
Calling this endpoint again after cancellation returns the same cancelled operation. If the operation has already succeeded or failed, the API returns 409 Conflict.

Authorizations

Authorization
string
header
required

Your Alai API key. Get one from your account settings at app.getalai.com

Path Parameters

operation_id
string
required

Response

Successful Response

id
string
required
operation_type
enum<string>
required
Available options:
generate,
edit,
export
presentation_id
string
required
status
enum<string>
required
Available options:
queued,
running,
succeeded,
failed,
cancelled
progress
Progress · object | null
result
Result · object | null
error
ModernApiOperationError · object | null
created_at
string | null
started_at
string | null
completed_at
string | null