Skip to content

Approve Document

POST
/api/canvas/{deal_id}/approve
curl --request POST \
--url https://example.com/api/canvas/example/approve \
--header 'Authorization: Bearer <token>'

Approve the memo document (editing -> approved).

Phase 4: RequireOwner — only deal owners can approve the full document. (Per-section approval by editors/commenters is handled in approval_routes.)

deal_id
required
Deal Id
string

Successful Response

Media type application/json
DocumentStateResponse

Response for document state transitions.

object
success
required
Success
boolean
from_state
required
From State
string
to_state
Any of:
string
error
Any of:
string
details
Any of:
object
key
additional properties
any
Example generated
{
"success": true,
"from_state": "example",
"to_state": "example",
"error": "example",
"details": {}
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
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": {}
}
]
}