UploadFile
Uploads a file to Kintone for use as an attachment or app resource during record creation or updates.
Input
| Name | Type | Required | Description |
| FullPath | String | False | Full local path of the file to upload, required when the FileData input is not provided. |
| FileData | String | False | Base64-encoded representation of the file content, used when the FullPath input is not supplied. |
| FileName | String | False | Name to assign to the uploaded file, required when providing the Content or FileData input and optional when FullPath is used. |
| GuestSpaceId | String | False | Identifies the guest space containing the file, and should not be provided when the connection property GuestSpaceId is already set in the connection string. |
| AttachToApp | String | False | Indicates whether the uploaded file should be attached to an app's attachment field. Accepted values are 'true' or 'false'. The default value is 'false'. |
| UploadedFileKey | String | False | Identifier of an already uploaded file, required when the AttachToApp parameter is set to 'true' and no Content, FileData, or FullPath value is provided. |
| AppId | String | False | Identifier of the Kintone app the file is attached to, required when AttachToApp is set to 'true'. |
Result Set Columns
| Name | Type | Description |
| FileKey | String | Identifier assigned to the uploaded file, used for attaching or retrieving the file later. |
| Success | String | Indicates whether the operation completed successfully by returning a Boolean value. |
| Id | String | Record identifier created when the file is attached to an app, returned only when the request includes an attach parameter. |
| Revision | String | Revision number of the record after the file attachment operation. It increases by two because running the action and updating the status count as separate operations. It is returned only when the request includes an attach parameter. |