Error codes

roster_cancel_unconfirmed

Roster cancellations not confirmed

HTTP 409

The roster would cancel more than 25 of your live enrollments in this key's mode and more than 20% of them, counting the enrollments roster syncs cancelled in the last 7 days: they count with the roster's own cancellations, and the 20% is of the live enrollments plus them, so a run of smaller syncs is judged as one. Nothing was changed: no enrollment was made or ended. detail states how many this roster would cancel, how many are live (not counting enrollments already ending at period end) and, when there were any, how many roster syncs cancelled in the last 7 days; a session's commit also sends the first two as cancel_count and live_count. If the roster is right, send it again with confirm_cancel_count set to the number this roster would cancel; if it isn't, fix it.

The problem body

Sent as application/problem+json, with the request id in request_id and the X-Request-Id header. Branch on code: the error and detail sentences can change, and some operations add members of their own.

Example problem
{
  "error": "This roster would cancel more than 25 of your live enrollments and more than 20% of them, counting those roster syncs cancelled in the last 7 days. Nothing was changed. If that is what you mean, send it again with confirm_cancel_count set to cancel_count.",
  "code": "roster_cancel_unconfirmed",
  "type": "https://secondappraisal.com/developers/errors/roster_cancel_unconfirmed",
  "title": "Roster cancellations not confirmed",
  "status": 409,
  "detail": "This roster would cancel more than 25 of your live enrollments and more than 20% of them, counting those roster syncs cancelled in the last 7 days. Nothing was changed. If that is what you mean, send it again with confirm_cancel_count set to cancel_count.",
  "instance": "/api/gap/v1/plans/roster-sync",
  "request_id": "req_4f9a2c7e1b8d4a6f9c3e2b1a7d5f8e0c"
}

Operations that can send it