- API reference
- Help collections
Change a help collection
PATCHhttps://app.notert.io/api/v1/help-collections/{id}
Changes a collection, as the Edit collection dialog does: its name, the line under it, its icon or the end of its address on the board. What you leave out stays, and readers see the change on the board at once. A new address keeps the old one working, sending readers on to it; one another collection holds is SLUG_TAKEN. Where it is changed but can't be read back for the answer, the answer holds its id alone, and the list reads the rest.
A token with help:write. How to send one
Request
curl -X PATCH https://app.notert.io/api/v1/help-collections/c3a8e5f1-2b7d-4c9a-8e6f-1a3b5c7d9e02 \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Billing",
"description": "Invoices, receipts and plans",
"icon": "folder",
"slug": "billing"
}'Response 200
{
"id": "c3a8e5f1-2b7d-4c9a-8e6f-1a3b5c7d9e02",
"name": "Getting started",
"description": "Set up your workspace",
"slug": "getting-started"
}Path parameters
idstringRequiredThe collection's id.
At most 64 characters.
Body
namestringIts name now.
At least 1 character. At most 60 characters.
descriptionstringThe line under its name now. Empty for none.
At most 200 characters.
iconstringThe icon its card shows now.
One offolderrocketsettingsdatabasemessage-circlebook-opencredit-carduserscodezapshieldglobeplugbellchart-columnlife-buoysparkleslayout-dashboardwrenchkey-roundmailsmartphonepalettelightbulbslugstringThe end of its address on the board, such as billing.
At least 1 character. At most 60 characters.
Response 200
idstringThe collection's id.
namestringThe collection's name.
descriptionstringThe line under its name.
slugstringThe part of its address on the help center that names it.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't draft and change help articles. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 409
SLUG_TAKENAnother collection's address already ends that way. Pick another. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.