createNote
Tạo ghi chú mới
api.createNote(options, groupId)
Parameters
options
CreateNoteOptionstitle
stringpinAct
boolean?Ghim ghi chú, mặc định
false
groupId
string
Return
Promise<CreateNoteResponse>
Types
export type CreateNoteOptions = {
title: string;
pinAct?: boolean;
};
export type CreateNoteResponse = NoteDetail;Examples
Tạp ghi chú mới
const groupId = "0000000000000000000";
api.createNote(
{
title: "ghi chú mới",
pinAct: true
},
groupId,
)
.then(console.log)
.catch(console.error);Related
Last updated