Email
Inboxes
Marketing
SMS
Sign
Verify
Forms
Scheduling
Hooks
Risk
Platform
Undo a bulk reassignment
POST
/v1/scheduling/reassignments/{id}/undo
Gives back what a finished run moved, as a new run. A booking that's moved on since stays where it went, and a former host who's no longer free keeps it from going back, unless you pass overrides.
bearerAuthheader
AuthorizationBearer <token>A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.
id*stringThe reassignment's id.
Coss-Version?"2026-10-10"The API version (a date) to use for this request. Defaults to your organization's version, pinned to the latest one when it first used the API and upgraded from the dashboard. The SDK always sends the version it was built for.
Value in
"2026-10-10"application/json- body
- body
- …
reason_code?stringValue in
"host_unavailable""out_of_office""workload""customer_request""offboarding""other"note?stringLength
length <= 500overrides?array<>Items
items <= 6notify?The new run.
application/json- response
- response
- …
object*"scheduling.reassignment"Value in
"scheduling.reassignment"id*stringstatus*stringValue in
"pending""running""completed""cancelled"reason_code*stringValue in
"host_unavailable""out_of_office""workload""customer_request""offboarding""other"out_of_office*string|nullundo_of*string|nullcounts*created_at*stringstarted_at*string|nullfinished_at*string|nullimport { Coss } from "coss";const coss = new Coss({ apiKey: process.env.COSS_API_KEY, baseUrl: "https://api.coss.com",});const { data, error } = await coss.scheduling.reassignments.undo("string", { reason_code: "other",});{ "object": "scheduling.reassignment", "id": "reasn_01kd2m9a0b1c2d3e4f5g6h7j8m", "status": "completed", "reason_code": "out_of_office", "out_of_office": "ooo_01kd2m9a0b1c2d3e4f5g6h7j8m", "undo_of": null, "counts": { "total": 12, "pending": 0, "reassigned": 11, "skipped": 0, "no_candidate": 1, "failed": 0, "cancelled": 0 }, "created_at": "2027-01-01T10:00:00.000Z", "started_at": "2027-01-01T10:00:01.000Z", "finished_at": "2027-01-01T10:00:09.000Z"}