data-service
latest
false
[Preview] Data Fabric API guide
上次更新日期 2026年5月8日
上传文件至现有实体记录的指定字段。
API 端点
POST BaseURL/Attachment/<Entity>/{recordId}/{fieldName}
- Depending on the cloud platform you are using, use the associated Base URL.
请求标头
| 页眉 | 值 |
|---|---|
| 授权 | 承载 <access_token> |
| Content-Type | multipart/form-data |
备注:
将尖括号 <...> 之间的所有值替换为其相应的用例值。
<access_token> 是您在授权外部应用程序时收到的。 它可用 1 小时,然后您需要生成新令牌,或请求刷新令牌。
路径变量
| 路径变量 | 数据类型 | 描述 | 默认值 |
|---|---|---|---|
| recordId (required) | string | The ID of the Data Fabric / Data Service entity's record you want to upload the file to. | 不适用 |
| fieldName (required) | string | 要上传的记录所在的文件类型字段的名称。名称必须对应于有效字段,且区分大小写。 | 不适用 |
查询参数
| 查询参数 | 数据类型 | 描述 | 默认值 |
|---|---|---|---|
| ExpansionLevel (可选) | int32 | 指定要检索的相关记录的深度。 此参数的值可以是 1、2 或 3。 | 2 |
请求正文 (必填)
文件 (二进制)。
响应
200 OK
401 未经授权
You are not authenticated to access Data Fabric / Data Service. Make sure your Assistant or Robot is connected to a modern folder in your account.
403 Forbidden
您无权访问实体、字段或记录,或者您使用的机器人类型不受支持。请联系管理员以获取必要权限。