Team Notes API
Get a list of notes in a Team's workspace
GET /teams/:teamPath/notes
- URL Params
- Success Response
- code:
200
- body:
โโโโโโ [
โโโโโโ {
โโโโโโ "id": "0jJVr2b3T2eSkBnMib-inA",
โโโโโโ "title": "Team notes",
โโโโโโ "tags": [],
โโโโโโ "createdAt": 1644371283239,
โโโโโโ "publishType": "view",
โโโโโโ "publishedAt": 1644371283239,
โโโโโโ "permalink": null,
โโโโโโ "shortId": "SysUa9xJc",
โโโโโโ "lastChangedAt": 1644461300662,
โโโโโโ "lastChangeUser": null,
โโโโโโ "userPath": null,
โโโโโโ "teamPath": "CAT",
โโโโโโ "readPermission": "guest",
โโโโโโ "writePermission": "signed_in",
โโโโโโ "publishLink": "https://hackmd.io/@username/permalink"
โโโโโโ }
โโโโโโ ]
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More โ
Please use API of "Get a note" GET /notes/:noteId
to retrieve the note content.
Create a note in a Team workspace
POST /teams/:teamPath/notes
- URL Params
- Data Params
- body (optional)[application/json]
โโโโ{
โโโโ "title": "New note",
โโโโ "content": "",
โโโโ "readPermission": "owner",
โโโโ "writePermission": "owner",
โโโโ "commentPermission": "everyone"
โโโโ}
field |
type |
values |
title |
string |
|
content |
string |
|
readPermission |
string |
owner , sign_in , guest |
writePermission |
string |
owner , sign_in , guest |
commentPermission |
string |
disabled , forbidden , owners , signed_in_users , everyone |
permalink |
string |
|
- Success Response
- code: 201
- body
โโโโโโโโ {
โโโโโโโโ "id": "CNf4ZHB-RW-U-ZpR2LRiYA",
โโโโโโโโ "title": "New team note",
โโโโโโโโ "tags": null,
โโโโโโโโ "createdAt": 1644462537700,
โโโโโโโโ "publishType": "view",
โโโโโโโโ "publishedAt": null,
โโโโโโโโ "permalink": null,
โโโโโโโโ "shortId": "r1GCZbzy9",
โโโโโโโโ "lastChangedAt": 1644462537700,
โโโโโโโโ "lastChangeUser": {
โโโโโโโโ "name": "Ming-Hsiu Tsai",
โโโโโโโโ "photo": "https://avatars.githubusercontent.com/u/26138990?s=96",
โโโโโโโโ "biography": null,
โโโโโโโโ "userPath": "AMQ36J15QgCZf46ThEFadg"
โโโโโโโโ },
โโโโโโโโ "userPath": null,
โโโโโโโโ "teamPath": "CAT",
โโโโโโโโ "readPermission": "owner",
โโโโโโโโ "writePermission": "owner",
โโโโโโโโ "publishLink": "https://hackmd.io/@username/permalink"
โโโโโโโโ }
Update a note in a Team's workspace
Patch /teams/:teamPath/notes/:noteId
- URL Params:
- teamPath: string
- nodeId: string
- Data Params:
- body (optional) [application/json]
โโโโโโ {
โโโโโโ "content": "# Updated a team note",
โโโโโโ "readPermission": "signed_in",
โโโโโโ "permalink": "note-permalink"
โโโโโโ }
field |
type |
values |
content |
string |
|
readPermission |
string |
owner , signed_in , guest |
writePermission |
string |
owner , signed_in , guest |
permalink |
string |
|
- Success Response
Delete a note in a Team's workspace
DELETE /teams/:teamPath/notes/:noteId
- URL Params:
- teamPath: string
- nodeId: string
- Success Response