Update Workbook
PUT
/api/workbooks/{workbook_id}
const url = 'http://localhost:8000/api/workbooks/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"columns_config":[{"channels":{},"condition":"example","destination":"example","destination_config":{},"formula":"example","http_body":"example","http_extract":"example","http_headers":{},"http_method":"example","http_url":"example","icp":{},"id":"example","input_columns":["example"],"lead_field":"example","max_steps":1,"name":"example","output_format":"example","prompt":"example","provider":"example","target_field":"example","target_rows":1,"type":"lead_field","verify":true,"waterfall":["example"],"width":200}],"description":"example","filter_criteria":{"city":"example","company_size":"example","has_email":true,"has_phone":true,"has_website":true,"job_ids":["example"],"max_score":1,"min_score":1,"score_tier":"example","search":"example","source":"example","specialization":"example","state":"example","status":"example"},"name":"example","status":"example","sync_to_leads":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8000/api/workbooks/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "columns_config": [ { "channels": {}, "condition": "example", "destination": "example", "destination_config": {}, "formula": "example", "http_body": "example", "http_extract": "example", "http_headers": {}, "http_method": "example", "http_url": "example", "icp": {}, "id": "example", "input_columns": [ "example" ], "lead_field": "example", "max_steps": 1, "name": "example", "output_format": "example", "prompt": "example", "provider": "example", "target_field": "example", "target_rows": 1, "type": "lead_field", "verify": true, "waterfall": [ "example" ], "width": 200 } ], "description": "example", "filter_criteria": { "city": "example", "company_size": "example", "has_email": true, "has_phone": true, "has_website": true, "job_ids": [ "example" ], "max_score": 1, "min_score": 1, "score_tier": "example", "search": "example", "source": "example", "specialization": "example", "state": "example", "status": "example" }, "name": "example", "status": "example", "sync_to_leads": true }'Update workbook metadata, filter, or columns.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workbook_id
required
Workbook Id
string
Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
WorkbookUpdate
Update workbook metadata.
object
columns_config
Any of:
Array<object>
ColumnConfigConfiguration for a single workbook column.
object
id
required
Id
Unique column identifier
string
input_columns
Any of:
Array<string>
null
name
required
Name
Display name
string
type
Type
Column type: lead_field, enrichment, waterfall, ai_formula, conditional, output
string
waterfall
Any of:
Array<string>
null
width
Width
Column width in pixels
integer
null
filter_criteria
Any of:
FilterCriteria
Filter to select which leads to snapshot into a workbook.
object
job_ids
Any of:
Array<string>
null
null
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
WorkbookResponse
Workbook response — returned from API.
object
columns_config
required
Columns Config
Array<object>
object
key
additional properties
any
completed_rows
required
Completed Rows
integer
description
required
Description
string
id
required
Id
string
name
required
Name
string
source_type
Source Type
string
status
required
Status
string
sync_to_leads
Sync To Leads
boolean
total_rows
required
Total Rows
integer
Example
{ "source_type": "empty", "sync_to_leads": true}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}