deckPresets.update
deckPresets_updateUpdate an Anki deck options preset and propagate changes to dependent cards, optionally rescheduling FSRS cards. Provide a new name or settings to modify only specified fields.
Instructions
Update a preset and all dependent cards through the coordinated backend request.
Require name or settings. Preserve current target deck, collection settings, overrides and custom scheduler in the update request. rescheduleFsrs explicitly controls optional full rescheduling; mandatory native memory/step updates still run.
Anki-Connect method deckPresets.update. Scope: collection. Effect: write. Completion: operation. Undo: single.
Long-running operation: by default the server waits for the final result (see waitForCompletion / timeoutSeconds).
Possible errors: collectionUnavailable, editorConflict, internalError, invalidParams, notFound, staleSession, validationFailed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New preset name. | |
| preset | Yes | Deck options preset: exactly one of {"id": "<presetId>"} or {"name": "<preset name>"}. | |
| session | No | Optional. Collection session ID: the `session` field returned by `collection_get`. Usually omit it — the server then uses the session current at the time of the call. Pass it to make the call fail with `staleSession` instead of acting on a different profile/collection than the one your IDs, cursors and tokens came from. | |
| settings | No | Settings to change; only supplied keys are updated (e.g. newPerDay, reviewsPerDay, learnStepsMinutes, desiredRetention). | |
| rescheduleFsrs | No | With FSRS enabled, reschedule affected cards after the change. Default false. | |
| timeoutSeconds | No | MCP option (not sent to Anki): how long to wait for completion. A timeout does not cancel the work; the pending record is returned. | |
| waitForCompletion | No | MCP option (not sent to Anki): poll operations.get until the operation finishes and return its final record. If false, return the operation handle. |