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 Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
ApprovalResponse
object
section_key
required
Section Key
string
approved_by
required
Approved By
string
approved_at
required
Approved At
string
conditions
all_conditions_resolved
All Conditions Resolved
boolean
notifications_delivered
Notifications Delivered
boolean
bear_acknowledgement_required
Bear Acknowledgement Required
boolean
Example
{ "conditions": [ { "resolved": false } ], "all_conditions_resolved": true, "notifications_delivered": true, "bear_acknowledgement_required": false}Validation Error
Media typeapplication/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
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}