Apply a brush to multiple sections
POST
/api/canvas/{deal_id}/batch-transform
const url = 'https://example.com/api/canvas/example/batch-transform';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"transform_type":"example","section_keys":["example"],"scope":"section"}'};
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/batch-transform \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "transform_type": "example", "section_keys": [ "example" ], "scope": "section" }'Streams batch brush results via Server-Sent Events. Events: batch_started, section_started, section_complete, section_failed, section_skipped, batch_done.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” deal_id
required
Deal Id
string
Request Body required
Section titled “Request Body required ” Media type application/json
BatchTransformRequest
Request body for batch brush application across multiple sections.
object
transform_type
required
Transform Type
Brush key: [‘audit_section’, ‘enrich’, ‘improve’, ‘market_context’, ‘quantify’, ‘source_it’]
string
section_keys
required
Section Keys
Section keys to apply the brush to (max 15)
Array<string>
scope
Scope
Brush scope (usually ‘section’ for batch operations)
string
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation 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": {} } ]}