Get¶
GET /api/v1/notes/{notes_uuid}/get
Overview¶
Get legacy note details and charts.
Before You Call and Usage Steps¶
Use the UUID provided by Notes List. In the charts of the result, read the currently active charts, including chart name, type, and query definition. Results follow the chart order in the note first, then append the charts belonging to the note that are not in the ordered list.
Route Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| notes_uuid | string | Y | UUID of the target legacy note. Example: note_exampleHow to obtain or fill in: Obtain from content.data[].uuid in Notes List, or use content.uuid from the create response. |
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential of the Workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with the required permission from API Key management in the target Workspace. |
Additional Parameter Notes¶
The charts in the details are chart objects queried by the owning note.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/notes/note_example/get' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer | Note record ID. |
| content.uuid | string | Note UUID, used for querying, modifying, importing, and deleting. |
| content.name | string | Note name. |
| content.workspaceUUID | string | Owning Workspace. |
| content.isPublic | integer | Visibility, 1 is public, 0 is creator identity only. |
| content.extend | object | Note extension configuration. |
| content.status | integer | Current note status. |
| content.creator | string | Creator identity ID. |
| content.updator | string | Most recent updater identity ID; may be empty if never updated. |
| content.createAt | number | Creation time, in Unix seconds. |
| content.updateAt | number | Most recent update time, in Unix seconds. May be -1 if never updated. |
| content.deleteAt | number | Deletion time, in Unix seconds. -1 if not deleted. |
| content.creatorInfo | object | Creator information; an empty object if not found. |
| content.updatorInfo | object | Most recent updater information; an empty object if not found. |
| content.creatorInfo.uuid | string | May be provided when the corresponding identity is found. Identity identifier. |
| content.creatorInfo.status | integer | May be provided when the corresponding identity is found. Account status. |
| content.creatorInfo.wsAccountStatus | integer | May be provided when the corresponding identity is found. Workspace member status. |
| content.creatorInfo.username | string | May be provided when the corresponding identity is found. Account login name. |
| content.creatorInfo.name | string | May be provided when the corresponding identity is found. Display name. |
| content.creatorInfo.iconUrl | string | May be provided when the corresponding identity is found. Avatar URL. |
| content.creatorInfo.email | string | May be provided when the corresponding identity is found. Account email. For API Key identities, its identifier may be returned. |
| content.creatorInfo.mobile | string | May be provided when the corresponding identity is found. Contact information. |
| content.creatorInfo.countryCode | string | May be provided when the corresponding identity is found. Country or region code of the phone number. |
| content.creatorInfo.acntWsNickname | string | May be provided when the corresponding identity is found. Nickname within the Workspace. |
| content.updatorInfo.uuid | string | May be provided when the corresponding identity is found. Identity identifier. |
| content.updatorInfo.status | integer | May be provided when the corresponding identity is found. Account status. |
| content.updatorInfo.wsAccountStatus | integer | May be provided when the corresponding identity is found. Workspace member status. |
| content.updatorInfo.username | string | May be provided when the corresponding identity is found. Account login name. |
| content.updatorInfo.name | string | May be provided when the corresponding identity is found. Display name. |
| content.updatorInfo.iconUrl | string | May be provided when the corresponding identity is found. Avatar URL. |
| content.updatorInfo.email | string | May be provided when the corresponding identity is found. Account email. For API Key identities, its identifier may be returned. |
| content.updatorInfo.mobile | string | May be provided when the corresponding identity is found. Contact information. |
| content.updatorInfo.countryCode | string | May be provided when the corresponding identity is found. Country or region code of the phone number. |
| content.updatorInfo.acntWsNickname | string | May be provided when the corresponding identity is found. Nickname within the Workspace. |
| content.charts | array<object> |
Valid charts currently belonging to the note. |
| content.declaration | object or null | Public declaration of the Workspace. |
| content.charts[].id | integer | Chart record ID. |
| content.charts[].uuid | string | Chart UUID. |
| content.charts[].name | string | Chart name. |
| content.charts[].type | string | Chart type. |
| content.charts[].notesUUID | string | UUID of the note the chart belongs to. |
| content.charts[].workspaceUUID | string | Owning Workspace. |
| content.charts[].chartGroupUUID | string | Owning chart group; may be an empty string. |
| content.charts[].dashboardUUID | string | Associated dashboard identifier; may be an empty string. |
| content.charts[].isWorkspaceKeyIndicator | integer | Whether marked as a Workspace key indicator, 0 for no, 1 for yes. |
| content.charts[].queries | array<object> |
Query or note content definition. |
| content.charts[].extend | object | Chart extension configuration. |
| content.charts[].status | integer | Current chart status. |
| content.charts[].creator | string | Creator identity ID. |
| content.charts[].updator | string | Most recent updater identity ID; may be empty if never updated. |
| content.charts[].createAt | number | Creation time, in Unix seconds. |
| content.charts[].updateAt | number | Most recent update time, in Unix seconds. May be -1 if never updated. |
| content.charts[].deleteAt | number | Deletion time, in Unix seconds. -1 if not deleted. |
{
"code": 200,
"content": {
"id": 11,
"uuid": "note_example",
"name": "生产巡检笔记",
"workspaceUUID": "wksp_example",
"isPublic": 1,
"extend": {},
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"creatorInfo": {},
"updatorInfo": {},
"charts": [
{
"name": "巡检说明",
"type": "text",
"queries": [
{
"query": {
"content": "按仪表板核对生产状态。"
}
}
],
"extend": {},
"id": 40,
"uuid": "chrt_example",
"workspaceUUID": "wksp_example",
"notesUUID": "note_example",
"chartGroupUUID": "",
"dashboardUUID": "",
"isWorkspaceKeyIndicator": 0,
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Resolution |
|---|---|---|---|---|
| 404 | ft.NotFoundNote | The UUID has been deleted, does not exist, or is not in the Workspace of the current API Key | Specified note not found | Verify the UUID using the note list of the same Workspace. |