Get¶
GET /api/v1/notes_v2/{note_uuid}/get
Overview¶
Get the details of a new version note.
Route Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| note_uuid | string | Y | Studio new version note UUID |
Parameter Details¶
Use the note_uuid from the URL to get the note details. This interface returns the Markdown content content, NbookDB note path path, title, tags, public status, and the current etag.
- It is recommended to save the returned
etagfor the editing page. - The
pathin the response can be used for display or for note positioning with other systems; the create, modify, and delete interfaces still do not require passingpath. - When modifying or deleting, this
etagcan be submitted asifMatchto avoid overwriting updates made by others. - If the current API Key does not have permission to access the note, it will return as if the resource does not exist or permission is denied.
Request Example¶
Response¶
{
"code": 200,
"content": {
"noteUUID": "nbnote_xxx",
"title": "A",
"content": "# A",
"path": "manual/nbnote_xxx.md",
"tags": [
"ops"
],
"tagKV": {
"host": "127.0.0.1"
},
"isPublic": 1,
"createdSource": "manual",
"etag": "etag_xxx",
"version": 1
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-XXXX"
}