202Successful Response
Schema: app__core__success__MessageResponse
successbooleanmessagestringcodestring
/api/v1/businesses/{business_id}Delete a business and all associated resources (async via Temporal).
Safety: requires a JSON body with confirm_name matching the
business's name (case-insensitive, trimmed). Guards against single-click
muscle-memory deletes — this endpoint wipes ~80 related tables via a
Temporal workflow and is irreversible.
Cleanup Process:
Notes:
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
business_idstringrequiredSchema: BusinessDeleteRequest
business_idstringconfirm_namestringrequiredExact business name as a typed confirmation. Must match the persisted business name (case-insensitive, trimmed). Required.
preserve_teal_instancebooleanpreserve_dz_usersbooleanSchema: app__core__success__MessageResponse
successbooleanmessagestringcodestringSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject