UiPath Documentation
data-service
latest
false
  • 开放式 API

[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-Typemultipart/form-data
备注:

将尖括号 <...> 之间的所有值替换为其相应的用例值。

<access_token> 是您在授权外部应用程序时收到的。 它可用 1 小时,然后您需要生成新令牌,或请求刷新令牌。

路径变量

路径变量数据类型描述默认值
recordId (required)stringThe 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

您无权访问实体、字段或记录,或者您使用的机器人类型不受支持。请联系管理员以获取必要权限。

  • API 端点
  • 请求标头
  • 路径变量
  • 查询参数
  • 请求正文 (必填)
  • 响应
  • 200 OK
  • 401 未经授权
  • 403 Forbidden

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新