PATCH
/
v1
/
collections
/
{collection_id}
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
  },
  "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
  },
  "created_when": "2023-11-07T05:31:56Z",
  "order": "<string>",
  "modified_when": "2023-11-07T05:31:56Z"
}

Authorizations

Api-Key
string
header
required

Path Parameters

collection_id
string
required

Body

application/json
spec
object | null
view
object | null
order
string | null
Maximum length: 8

Response

200
application/json
Successful Response
id
string
required
spec
object
required
created_when
string
required
view
object | null
order
string | null
Maximum length: 8
modified_when
string | null