I have been playing around with the playground for update cards at:
https://developer.supernotes.app/api-reference/cards/update-cards?playground=open
I can enter the API key successfully, but I can’t work out where/how I should specify the card ID, and it seems the JSON is read-only.
Nothing has worked so far! Can anyone help?
Also, any advice on using the API to update card contents would be appreciated - I have so far managed to append, but not prepend or replace bits.
The cURL JSON of one of my attempts is below.
Many thanks
Mark
curl --request PATCH \
--url https://api.supernotes.app/v1/cards \
--header 'Api-Key: REDACTED' \
--header 'Content-Type: application/json' \
--data '{
"[card_id]": {
"parents": {
"[card_id]": {
"publishing_perms": null
}
},
"membership": {
"flash_memory": {
"last_review": null
},
"view": {
"card_sizing": null,
"broadsheet_cols": null
}
}
}
}'