curl --request PATCH \
--url https://api.supernotes.app/v1/cards \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"[card_id]": {
"data": {
"name": "<string>",
"markup": "<string>",
"html": "<string>",
"ydoc": "<string>",
"icon": "<string>",
"color": "blue",
"modified_when": "2023-11-07T05:31:56Z",
"targeted_when": "2023-11-07T05:31:56Z",
"tags": [
"<string>"
],
"meta": {},
"daily_date": "<string>",
"h3_index": "<string>"
},
"membership": {
"personal_color": "blue",
"liked": true,
"opened_when": "2023-11-07T05:31:56Z",
"auto_publish_children": true,
"personal_tags": [
"<string>"
],
"status": -2,
"visibility": -1,
"view": {
"display_type": 1,
"sort_type": 1,
"sort_ascending": true,
"broadsheet_cols": 123,
"broadsheet_full_width": true,
"attempt_card_match": true,
"card_sizing": 1,
"map_position": "<string>"
},
"flash_memory": {
"due": 123,
"stability": 123,
"difficulty": 123,
"elapsed_days": 123,
"scheduled_days": 123,
"reps": 123,
"lapses": 123,
"state": 0,
"last_review": 123
}
},
"parents": {
"[card_id]": {
"publishing_perms": -1,
"created_when": "2023-11-07T05:31:56Z",
"archived": true,
"cutting": true
}
}
}
}'
{}
Update many cards in one call
curl --request PATCH \
--url https://api.supernotes.app/v1/cards \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"[card_id]": {
"data": {
"name": "<string>",
"markup": "<string>",
"html": "<string>",
"ydoc": "<string>",
"icon": "<string>",
"color": "blue",
"modified_when": "2023-11-07T05:31:56Z",
"targeted_when": "2023-11-07T05:31:56Z",
"tags": [
"<string>"
],
"meta": {},
"daily_date": "<string>",
"h3_index": "<string>"
},
"membership": {
"personal_color": "blue",
"liked": true,
"opened_when": "2023-11-07T05:31:56Z",
"auto_publish_children": true,
"personal_tags": [
"<string>"
],
"status": -2,
"visibility": -1,
"view": {
"display_type": 1,
"sort_type": 1,
"sort_ascending": true,
"broadsheet_cols": 123,
"broadsheet_full_width": true,
"attempt_card_match": true,
"card_sizing": 1,
"map_position": "<string>"
},
"flash_memory": {
"due": 123,
"stability": 123,
"difficulty": 123,
"elapsed_days": 123,
"scheduled_days": 123,
"reps": 123,
"lapses": 123,
"state": 0,
"last_review": 123
}
},
"parents": {
"[card_id]": {
"publishing_perms": -1,
"created_when": "2023-11-07T05:31:56Z",
"archived": true,
"cutting": true
}
}
}
}'
{}
Successful Response
The response is of type object
.