Bổ sung tài liệu vào hồ sơ
Endpoint
Nếu sử dụng submission ID:
| Method | URL |
|---|---|
| POST | https://tpa.docbase.ai/api/v1/integrations/folders/{FolderID}/submissions/{submissionID} |
Ví dụ
| Method | URL |
|---|---|
| POST | https://tpa.docbase.ai/api/v1/integrations/folders/1/submissions/2 |
Params và Body tương tự với API Upload tài liệu
Nếu sử dụng external id:
Endpoint
| Method | URL |
|---|---|
| POST | https://tpa.docbase.ai/api/v1/integrations/folders/{FolderID}/submissions |
Với body chứa external_id trùng khớp với external_id của bộ hồ sơ cần bổ sung đã upload trước đó.
Ví dụ:
Upload:
| Method | URL |
|---|---|
| POST | https://tpa.docbase.ai/api/v1/integrations/folders/1/submissions |
Header: Content-Type: application/json
{
"files": [
{
"name": "test.pdf",
"file_data": "base64"
}
],
"external_id": "HS123"
}
Bổ sung lần 1:
| Method | URL |
|---|---|
| POST | https://tpa.docbase.ai/api/v1/integrations/folders/1/submissions |
Header: Content-Type: application/json
{
"files": [
{
"name": "test_bo_sung.pdf",
"file_data": "base64"
}
],
"external_id": "HS123"
}