curl --request PATCH \
--url https://api.supernotes.app/v1/collections/{collection_id} \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"spec": {
"pre_id": "thoughts"
},
"view": {
"display_type": 1,
"sort_type": 0,
"sort_ascending": true,
"broadsheet_cols": 123,
"attempt_card_match": true
},
"order": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"spec": {
"pre_id": "thoughts"
},
"view": {
"display_type": 1,
"sort_type": 0,
"sort_ascending": true,
"broadsheet_cols": 123,
"attempt_card_match": true
},
"created_when": "2023-11-07T05:31:56Z",
"order": "<string>",
"modified_when": "2023-11-07T05:31:56Z"
}
Update the specified collection
curl --request PATCH \
--url https://api.supernotes.app/v1/collections/{collection_id} \
--header 'Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"spec": {
"pre_id": "thoughts"
},
"view": {
"display_type": 1,
"sort_type": 0,
"sort_ascending": true,
"broadsheet_cols": 123,
"attempt_card_match": true
},
"order": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"spec": {
"pre_id": "thoughts"
},
"view": {
"display_type": 1,
"sort_type": 0,
"sort_ascending": true,
"broadsheet_cols": 123,
"attempt_card_match": true
},
"created_when": "2023-11-07T05:31:56Z",
"order": "<string>",
"modified_when": "2023-11-07T05:31:56Z"
}
Successful Response
The response is of type object
.