cURL
curl --request POST \ --url https://api.duplik.cn/v1/documents/metadata/{document_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "title": "Fund-operation-manual-2023.pdf", "published_at": 1688372237936, "url": "https://cos-qa-1252068037.cos.ap-beijing.myqcloud.com/duplik/Fund-operation-manual-2023.pdf", "summary": "I am the summary", "entity_names": [ "实体1", "实体2" ], "time_periods": [ "2023年上半年" ], "content_at": 0 } '
{ "document_id": 123, "name": "<string>", "description": "<string>", "summary": "<string>", "url": "<string>", "process_status": 123, "segment_list": [ { "segment_num": 123, "content": "<string>", "name": "<string>", "start_s": 123, "end_s": 123, "width": 123, "height": 123, "questions": [ "<string>" ] } ], "meta_data": {} }
更新文档的元数据
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
Show child attributes