Approve Section
POST
/api/canvas/{deal_id}/sections/{section_key}/approve
const url = 'https://example.com/api/canvas/example/sections/example/approve';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"comment":"example","role":"example","quality_score":1,"conditions":["example"],"force":false}'};
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/sections/example/approve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "comment": "example", "role": "example", "quality_score": 1, "conditions": [ "example" ], "force": false }'Approve a section of the memo.
Phase 4: RequireEditor — editors and owners can approve sections.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” deal_id
required
Deal Id
string
section_key
required
Section Key
string
Request Body required
Section titled “Request Body required ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
ApprovalResponse
object
section_key
required
Section Key
string
approved_by
required
Approved By
string
approved_at
required
Approved At
string
conditions
Conditions
Array<object>
ConditionStatusEntryOne approval condition with resolution state. Mirrors
src/canvas/models/section_approval.ConditionStatus.to_dict().
all_conditions_resolved
All Conditions Resolved
boolean
notifications_delivered
Notifications Delivered
boolean
Example
{ "conditions": [ { "resolved": false } ], "all_conditions_resolved": true, "notifications_delivered": 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": {} } ]}