Team Notes API

Get a list of notes in a Team's workspace

  • GET /teams/:teamPath/notes
  • URL Params
    • teamPath: string
  • 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
    • teamPath: string
  • 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
    • code: 202
    • body: Accepted

Delete a note in a Team's workspace

  • DELETE /teams/:teamPath/notes/:noteId
  • URL Params:
    • teamPath: string
    • nodeId: string
  • Success Response
    • code: 204