Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #348 from Aquafina-water-bottle/issue_82_documenta…
Browse files Browse the repository at this point in the history
…tion

README changes: Issue 82 documentation
  • Loading branch information
FooSoft authored Sep 11, 2022
2 parents fbd6cca + d9c0132 commit 9f76e5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,7 @@ corresponding to when the API was available for use.
* **createModel**
Creates a new model to be used in Anki. User must provide the `modelName`, `inOrderFields` and `cardTemplates` to be
used in the model. There are optinal fields `css` and `isCloze`. If not specified, `css` will use the default Anki css and `isCloze` will be equal to `False`. If `isCloze` is `True` then model will be created as Cloze.
used in the model. There are optional fields `css` and `isCloze`. If not specified, `css` will use the default Anki css and `isCloze` will be equal to `False`. If `isCloze` is `True` then model will be created as Cloze.
Optionally the `Name` field can be provided for each entry of `cardTemplates`. By default the
card names will be `Card 1`, `Card 2`, and so on.
Expand All @@ -1873,7 +1873,7 @@ corresponding to when the API was available for use.
"modelName": "newModelName",
"inOrderFields": ["Field1", "Field2", "Field3"],
"css": "Optional CSS with default to builtin css",
"isCloze": False,
"isCloze": false,
"cardTemplates": [
{
"Name": "My Card 1",
Expand Down Expand Up @@ -2391,6 +2391,11 @@ corresponding to when the API was available for use.
Modify the fields of an exist note. You can also include audio, video, or picture files which will be added to the note with an
optional `audio`, `video`, or `picture` property. Please see the documentation for `addNote` for an explanation of objects in the `audio`, `video`, or `picture` array.
> **Warning**
> You must not be viewing the note that you are updating on your Anki browser, otherwise
> the fields will not update. See [this issue](https://github.com/FooSoft/anki-connect/issues/82)
> for further details.
*Sample request*:
```json
{
Expand Down

0 comments on commit 9f76e5f

Please sign in to comment.