Update Targeted List Build
print_mail.targeted_list_builds.update(strid, TargetedListBuildUpdateParams**kwargs) -> TargetedListBuildUpdateResponse
POST/print-mail/v1/targeted_list_builds/{id}
Update an existing targeted list build. Only builds that have not yet
been confirmed may be updated. Updating the filters or limit will
reset the build’s status back to generating_quote and a new quote
will be generated.
Update Targeted List Build
import os
from postgrid import PostGrid
client = PostGrid(
print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"), # This is the default and can be omitted
)
targeted_list_build = client.print_mail.targeted_list_builds.update(
id="id",
limit=2000,
us_companies={
"postal_codes": ["10001", "10002", "10003"],
"industries": ["software", "fintech"],
"employee_count": [50, 1000],
},
)
print(targeted_list_build.id){
"id": "targeted_list_build_123",
"live": false,
"description": "Q1 prospecting list",
"metadata": {
"campaign": "q1_prospecting"
},
"createdAt": "2026-01-05T10:00:00Z",
"updatedAt": "2026-01-05T10:01:30Z",
"organization": "organization_123",
"status": "quote_ready",
"usCompanies": {
"postalCodes": [
"10001",
"10002"
],
"industries": [
"software"
],
"employeeCount": [
10,
500
]
},
"limit": 1000,
"quote": {
"generatedAt": "2026-01-05T10:01:30Z",
"count": 1000,
"pricePerContactCents": 11.98
},
"previewRecords": [
{
"name": "Acm***",
"formattedAddress": "12** Main St, New York, NY, 100**"
}
],
"errors": []
}Returns Examples
{
"id": "targeted_list_build_123",
"live": false,
"description": "Q1 prospecting list",
"metadata": {
"campaign": "q1_prospecting"
},
"createdAt": "2026-01-05T10:00:00Z",
"updatedAt": "2026-01-05T10:01:30Z",
"organization": "organization_123",
"status": "quote_ready",
"usCompanies": {
"postalCodes": [
"10001",
"10002"
],
"industries": [
"software"
],
"employeeCount": [
10,
500
]
},
"limit": 1000,
"quote": {
"generatedAt": "2026-01-05T10:01:30Z",
"count": 1000,
"pricePerContactCents": 11.98
},
"previewRecords": [
{
"name": "Acm***",
"formattedAddress": "12** Main St, New York, NY, 100**"
}
],
"errors": []
}