Add notes (batch)
add_notesCreates multiple Anki notes in one call and returns their IDs, using null for failed notes; validate inputs first to avoid duplicates or empty required fields.
Instructions
Creates several notes in one call. Returns an array of new note IDs in the same order as the input; an entry is null if that note could not be created (e.g. duplicate or empty first field). Run can_add_notes first to find out which notes will fail. If any attached file cannot be stored, no note is created and the error names the note (e.g. notes[2].picture[0]).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | Notes to create. |