Data Service
2022.10
false
    • Get Entity
    • Get Entity Records
    • Query Entity
    • Delete Entity
    • Update Entity
    • Add Entity
    • Batch Add Entity
    • Batch Update Entity
    • Batch Delete Entity
    • Download File From Entity
    • Upload File to Entity
    • Delete File From Entity
Upload File to Entity - Automation Suite 2022.10
Banner background image
logo
Data Service Automation Suite API Guide
Last updated 2023年5月29日

Upload File to Entity

Uploads a file to the specified field of an existing Entity record.

API Endpoint

docs imageBaseURL/Attachment/<Entity>/{recordId}/{fieldName}
  • BaseURL: https://cloud.uipath.com/<myOrganization>/<myTenant>/dataservice_/api

Request Headers

Header

Value

Authorization

Bearer <access_token>

Content-Type

multipart/form-data

Note:
Replace all the values between the angle brackets <...> with their corresponding use-case values.
The <access_token> is the one you received when you authorized the external application. It is available for 1 hour, then you need to generate a new one, or request a refresh token.

Path Variables

Path Variable

Data Type

Description

Default Value

recordId (Required)

string

The ID of the Data Service entity's record you want to upload the file to.

NA

fieldName (Required)

string

The name of the File type field where the record you want to upload to is found. The name must correspond to a valid field, and it is case-sensitive.

NA

Query Parameters

Query Parameter

Data Type

Description

Default Value

expansionLevel (Optional)

int32

Specifies the depth of the related records to be retrieved. The value of this parameter can be 1, 2, or 3.

2

Request Body (Required)

The file (binary).

Responses

200 OK

401 Unauthorized

You are not authenticated to access Data Service. Make sure your Assistant or Robot is connected to a modern folder in your account.

403 Forbidden

You don't have permission to access the entity, field or record or you are using an unsupported robot type. Please contact your administrator for necessary permissions.

  • API Endpoint
  • Request Headers
  • Path Variables
  • Query Parameters
  • Request Body (Required)
  • Responses
  • 200 OK
  • 401 Unauthorized
  • 403 Forbidden
Support and Services icon
Get The Help You Need
UiPath Academy icon
Learning RPA - Automation Courses
UiPath Forum icon
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.