ArcGIS Pro 2.7 API Reference Guide
FolderID Property (UploadDefinition)

ArcGIS.Desktop.Core Namespace > UploadDefinition Class : FolderID Property
Gets and sets the folder id of the portal folder into which the item will be uploaded
Syntax
public string FolderID {get; set;}
Public Property FolderID As String
Remarks
You can either pass FolderID or FolderName but not both. Passing both the properties will result in an exception being thrown on the upload
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

UploadDefinition Class
UploadDefinition Members