接口文档 / 患者接口
新增患者附件
POST/api/v2/open-agency/patient/{patientId}/attachments在线调试 请求参数
| 名称 | 说明 | 类型 |
|---|
| Path 参数 |
|---|
patientId必填
| | string |
| Body 参数 |
|---|
▸attachments必填 | | array<object> |
请求示例
json
{
"attachments": [
{
"url": "https://test.com/aaa.png",
"fileName": "xxxx.png",
"displayName": "体检报告",
"businessCategory": 1
}
]
}
响应参数
| 名称 | 说明 | 类型 |
|---|
| Body 参数 |
|---|
▾data可选 | | object |
▸attachments可选 | | array<object> |
▸error可选可为空 | | object |
响应示例
json
{
"data": {
"attachments": [
{
"id": 123123121,
"url": "https://test.com/aaa.xlsx",
"fileName": "aaa.xlsx",
"displayName": "体检报告",
"created": "2024-08-15 19:18:50",
"businessCategory": 1
}
]
},
"error": null
}
业务失败包装示意
json
{
"data": null,
"error": {
"code": 11003,
"message": "不支持的授权类型{grantType}"
}
}
查看 HTTP 状态与业务码排查