Update card API docs; they seem outdated

Update card API docs; they seem outdated

I tried to use the API to update a card (POST https://app.mochi.cards/api/cards/:card-id) but I get a 422 error saying many keys are disallowed. How to update a card via API properly?

{
  "errors": {
    "updated-at": [
      "disallowed key"
    ],
    "tags": [
      "disallowed key"
    ],
    "name": [
      "disallowed key"
    ],
    "cloze/indexes": [
      "disallowed key"
    ],
    "references": [
      "disallowed key"
    ],
    "trashed?": [
      "disallowed key"
    ],
    "id": [
      "disallowed key"
    ],
    "created-at": [
      "disallowed key"
    ],
    "new?": [
      "disallowed key"
    ]
  }
}

0 Replies