Deploy a firm template to selected client businesses

POST /api/v1/advisory-firms/{firm_id}/templates/{template_id}/deploy

Bulk-applies the template to each business in business_ids. COA templates use LedgerService.apply_coa; bank-rule templates create new BankRule rows (duplicates by name are treated as skips so re-deploying is idempotent); review-checklist templates are recorded informationally.

Operation ID: deploy_firm_template_api_v1_advisory_firms__firm_id__templates__template_id__deploy_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

firm_id string required
template_id string required

Request body

business_ids array · string required

Business IDs to deploy the template to.

Responses

201 Successful Response

template_id string required
kind string required
applied array · FirmTemplateDeployResultRow FirmTemplateDeployResultRow
3 fields
business_id string required
summary object
error string
failed array · FirmTemplateDeployResultRow FirmTemplateDeployResultRow
3 fields
business_id string required
summary object
error string
skipped array · FirmTemplateDeployResultRow FirmTemplateDeployResultRow
3 fields
business_id string required
summary object
error string
applied_count integer
failed_count integer
skipped_count integer

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error - Invalid data format