修改一个笔记¶
POST /api/v1/notes/{notes_uuid}/modify
概述¶
修改笔记, charUUIDs
为该笔记绑定的图表信息
路由参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
notes_uuid | string | Y | 笔记UUID |
Body 请求参数¶
参数名 | 类型 | 必选 | 说明 |
---|---|---|---|
name | string | Y | 笔记名称 允许为空: False 最大长度: 128 |
chartUUIDs | array | 笔记类型, 默认为 CUSTOM 例子: CUSTOM 允许为空: False 最大长度: 32 |
|
extend | json | 笔记的额外数据, 默认为{} 例子: {} 允许为空: False |
参数补充说明¶
请求例子¶
curl 'https://openapi.guance.com/api/v1/notes/notes_xxxx32/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"name":"modify_openapi","chartUUIDs":["chrt_xxxx32","chrt_xxxx32"],"extend":{"fixedTime":"15m"}}' \
--compressed
响应¶
{
"code": 200,
"content": {
"createAt": 1677656782,
"creator": "wsak_xxxxx",
"deleteAt": -1,
"extend": {
"fixedTime": "15m"
},
"id": 45,
"isPublic": 1,
"name": "modify_openapi",
"oldName": "jinlei_openapi",
"status": 0,
"updateAt": 1677657052.321672,
"updator": "wsak_xxxxx",
"uuid": "notes_xxxx32",
"workspaceUUID": "wksp_xxxx32"
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-7AF32A96-2D61-4711-B8DF-5276F5912453"
}