201Successful Response
Schema: SuccessEnvelope_CleanupRunResponse_
successbooleanmessagestringcodestringdataCleanupRunResponse
/api/v1/advisory-firms/{firm_id}/cleanup-sessionsCreates a cleanup session over the given entities and date window, then kicks off the matching workflow. Poll the session for status and counters.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
firm_idstringrequiredSchema: CleanupSessionCreate
date_startstring · daterequireddate_endstring · daterequiredbusiness_idsarray · stringEntities in scope; empty = every active firm business
date_tolerance_daysintegerSchema: SuccessEnvelope_CleanupRunResponse_
successbooleanmessagestringcodestringdataCleanupRunResponse