Disable Collab
POST
/api/canvas/{deal_id}/collab/disable
const url = 'https://example.com/api/canvas/example/collab/disable';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://example.com/api/canvas/example/collab/disable \ --header 'Authorization: Bearer <token>'Disable OT collaborative editing for a document.
Serializes the current collab document to markdown, saves to session, cleans up collab Redis keys, and sets collab_enabled=False. Broadcasts DOCUMENT_STATE_CHANGED so all clients switch back to REST save.
Phase C2: RequireOwner — only deal owners can toggle collab mode.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” deal_id
required
Deal Id
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
DisableCollabResponse
Response for POST /api/canvas/{deal_id}/collab/disable.
object
success
required
Success
boolean
collab_enabled
required
Collab Enabled
boolean
Example generated
{ "success": true, "collab_enabled": true}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}