It allows to upload a new document into an existing folder but in this case it is necessary to provide the content of the document in Base64Binary. DST must be provided.


folderNumberDocument number of the destination folder.Integer
documentThe content of the document to upload to the DM Library.String
formThe name of the form used to create new folders.String
libraryeDOCS libraryString
userUser nameString
passwordUser passwordString
propProfileStringDocument properties.
propFolderItemStringThis optional parameter allows to include values for the fields of the table “FOLDER_ITEM”,
such as “DISPLAYNAME”, “ISFIRST”, “NEXT”, etc. These values will be used by default:


“PARENT”: The “folderNumber” parameter of the method.




“NEXT”: “0”

“LIBRARY”: “0”

“DOCNUMBER”: docNumber of the new document. Value generated by DM.


“VERSION”: “0”

“PARENT_VERSION”: Version System Id of the folder. Retrieved by the system.

“DISPLAYNAME”: property “DOCNAME” passed in the parameter “propProfileString”.


“READONLY_DATE”: “1753-01-01 00:00:00”


“STATUS”: “0”



uploadUserThe user who uploading the document to the folder. This parameter is optional and can be used to test if the user has permission to edit the content of the folder. If the user doesn’t have permission, the action is aborted. If no value is passed for this parameter, the value on the “user” parameter is used instead.String
clientOptional parameter for the client codeString
projectOptional parameter for the project codeString


  • To specify the extension of a document, it is necessary to include the FILE_EXTENSION tag into the properties parameter.
    For instance, <FILE_EXTENSION>docx</FILE_EXTENSION>

Rest Invoke

  • http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
  • UriTemplate:
    • “/UploadDocumentAsBinaryToFolder/?folderNumber={folderNumber}&document={document}&form={form}&library={library}&user={user}&password={password}&propProfileString={propProfileString}&propFolderItemString={propFolderItemString}&uploadUser={uploadUser}&client={client}&project={project}”
    • “/UploadDocumentAsBinaryToFolderDST/?folderNumber={folderNumber}&document={document}&form={form}&library={library}&user={user}&dst={dst}&propProfileString={propProfileString}&propFolderItemString={propFolderItemString}&uploadUser={uploadUser}&client={client}&project={project}”



Note: New documents are created without security. The ChangeSecurityAdvanced method can be used to modify the security, and the GetTrustees method to obtain the parent security, if needed. The GetFolderItem method may be useful to check the children’s current order in the folder. Then it is possible to use “ISFIRST” and “NEXT” through the propFolderItemString parameter of the method to properly include new children in the folder. For instance, it is possible to use the string “ISFIRST,Y;NEXT,0” to upload the first child of a folder. The method does control these properties to prevent the misuse of this property. For example, if the value ISFIRST = “N” is used when no children already exist in the folder, then the method will ignore the value and will use “ISFIRST,Y;NEXT,0” instead.

DST Example