Skip to main content
POST
/
v1
/
documents
/
metadata
/
{document_id}
Update Document Metadata
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": [
    {
      "name": "<string>",
      "segment_num": 123,
      "content": "<string>",
      "start_s": 123,
      "end_s": 123,
      "width": 123,
      "height": 123,
      "questions": [
        "<string>"
      ]
    }
  ],
  "meta_data": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

document_id
integer
required

Body

application/json
title
string
entity_names
string[]
published_at
integer
content_at
integer
time_periods
string[]
url
string
file_path
string
file_name
string
file_type
string
summary
string
external_user
string
is_sec
boolean
default:false
width
number
height
number
document_total_page
integer
source_url
string
document_language
string
segment_size
integer
segment_overlap
integer
custom_data
object
baidu_fs_id
integer

Response

Successful Response

document_id
integer
required
name
string
description
string
summary
string
url
string
process_status
integer
segment_list
DocumentSegmentOfAPI · object[]
meta_data
object