Cards
Update Cards
- GETGet Card
- POSTGet Selected Cards
- POSTGet Specified Cards
- POSTGet Cards Since
- GETGet Deleted Cards
- POSTSimple Create Card
- POSTCreate Cards
- PATCHUpdate Cards
- PUTEnroll In Card
- POSTRemove Cards For Me
- POSTDelete Cards For Everyone
- PATCHSet Preferences
- PUTSet Preference Flag
- PUTSet Feature Preview Flag
- GETCheck Auth
- GETCheck If Fresh Access Token
- GETGet Current User
- PUTUpdate Current User
- PUTUpdate Current User Bio And Pic
- GETGet Pins
- PUTPut Pins
- GETGet Current User Profile
- GETGet Known Owner Profiles
- GETGet Other User Profile
- POSTGet Specified User Profiles
- GETGet Members
- POSTAttempt Join
- POSTInvite Member
- PUTRespond To Invite
- PUTModify Member
- DELDelete Member
- GETGet Friends
- POSTSend Friend Request
- GETGet Incoming Requests
- GETGet Outgoing Requests
- PUTAccept Friendship
- DELDelete Friendship
- GETGet Share Codes For Card
- POSTCreate Share Code
- PUTUpdate Share Code
- DELDelete Share Code
- GETFind Card With Share Code
- GETAuthed Find Card With Share Code
- POSTJoin Card With Share Code
Cards
User
Profiles
Members
Friends
Share
Cards
Update Cards
Update many cards in one call
PATCH
/
v1
/
cards
Api-Key
string
*
Api-Key
Required
string
snowshoe-session-id
string
snowshoe-session-id
string
Updates · object
*
[card_id]
PatchCard · object
[card_id]
object
data
PatchCardData · object
data
object
name
string
name
string
markup
string
markup
string
html
string
html
string
ydoc
string
ydoc
string
icon
string
icon
string
color
enum<string>
color
enum<string>
modified_when
string
modified_when
string
targeted_when
string
targeted_when
string
tags
array
tags
array
meta
object
meta
object
membership
PatchCardMembership · object
membership
object
personal_color
enum<string>
personal_color
enum<string>
liked
boolean
liked
boolean
opened_when
string
opened_when
string
auto_publish_children
boolean
auto_publish_children
boolean
personal_tags
array
personal_tags
array
status
enum<integer>
status
enum<integer>
visibility
enum<integer>
visibility
enum<integer>
view
object
view
object
display_type
ViewDisplayType · enum<integer>
*
display_type
Required
enum<integer>
sort_type
SortType · enum<integer>
*
sort_type
Required
enum<integer>
sort_ascending
Sort Ascending · boolean
*
sort_ascending
Required
boolean
parents
Parents · object
parents
object
[card_id]
UpsertCardParent · object
[card_id]
object
publishing_perms
enum<integer>
publishing_perms
enum<integer>
created_when
string
created_when
string
archived
boolean
archived
boolean
cutting
boolean
cutting
boolean
curl --request PATCH \
--url https://api.supernotes.app/v1/cards \
--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": {}
},
"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": 0,
"sort_ascending": true
}
},
"parents": {
"[card_id]": {
"publishing_perms": -1,
"created_when": "2023-11-07T05:31:56Z",
"archived": true,
"cutting": true
}
}
}
}'
{}
Authorizations
Api-Key
string
headerrequiredHeaders
snowshoe-session-id
string | null
Body
application/json
[card_id]
object
[card_id].data
object
[card_id].data.name
string | null
[card_id].data.markup
string | null
[card_id].data.html
string | null
[card_id].data.ydoc
string | null
[card_id].data.icon
string | null
[card_id].data.color
enum<string> | null
Available options:
blue
, green
, orange
, pink
, purple
, red
, yellow
[card_id].data.modified_when
string | null
[card_id].data.targeted_when
string | null
[card_id].data.tags
string[] | null
[card_id].data.meta
object | null
[card_id].membership
object
[card_id].membership.personal_color
enum<string> | null
Available options:
blue
, green
, orange
, pink
, purple
, red
, yellow
[card_id].membership.liked
boolean | null
[card_id].membership.opened_when
string | null
[card_id].membership.auto_publish_children
boolean | null
[card_id].membership.personal_tags
string[] | null
[card_id].membership.status
enum<integer> | null
Available options:
-2
, -1
, 0
, 1
, 2
[card_id].membership.visibility
enum<integer> | null
Available options:
-1
, 0
, 1
[card_id].membership.view
object | null
[card_id].membership.view.display_type
enum<integer>
requiredAvailable options:
1
, 2
, 4
[card_id].membership.view.sort_type
enum<integer>
requiredAvailable options:
0
, 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 10
, 11
[card_id].membership.view.sort_ascending
boolean
required[card_id].parents
object
[card_id].parents.[card_id]
object
[card_id].parents.[card_id].publishing_perms
enum<integer> | null
Available options:
-1
, 0
, 1318
, 1382
, 1398
, 4094
, 8190
[card_id].parents.[card_id].created_when
string | null
[card_id].parents.[card_id].archived
boolean | null
[card_id].parents.[card_id].cutting
boolean | null
Response
200 - application/json
The response is of type object
.
curl --request PATCH \
--url https://api.supernotes.app/v1/cards \
--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": {}
},
"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": 0,
"sort_ascending": true
}
},
"parents": {
"[card_id]": {
"publishing_perms": -1,
"created_when": "2023-11-07T05:31:56Z",
"archived": true,
"cutting": true
}
}
}
}'
{}