---
title: "Dispatch an on-demand detector sweep (returns not_available until a detector is wired)"
method: POST
path: "/accountant/companies/{customerId}/schedule-proposals/sweep"
tags: ["Accountant Portal", "Schedule Proposals"]
---

# Dispatch an on-demand detector sweep (returns not_available until a detector is wired)

`POST /accountant/companies/{customerId}/schedule-proposals/sweep`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/schedule-proposals/sweep`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Request body

- ScheduleProposalSweepInput
  - `type` 'deferral' | 'accrual', required
  - `periodEndDate` string, date

## Response `200`

Sweep dispatch result

- ScheduleProposalSweepResponse
  - `success` boolean
  - `data` object
    - `status` 'not_available' | 'ran'
    - `type` 'deferral' | 'accrual'
    - `result` object, nullable

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `422`: Request failed validation

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
