Method AddDocumentToRemoteFolder
AddDocumentToRemoteFolder(String, String, String)
Add a document to a remote folder. If the document name exists already in the target folder the document name is changed.
Declaration
string AddDocumentToRemoteFolder(string connectionId, string remoteFolderPath, string documentId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | remoteFolderPath | Path of target remote folder. See also Path |
System.String | documentId | Id of document which shall be added. See also Id |
Returns
Type | Description |
---|---|
System.String | The name of the created remote folder element. |
Examples
POST http://YourServerName/InfoShare/Json/RemoteFolder/AddDocumentToRemoteFolder
Example for add a document to a remote folder.{
"connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a",
"remoteFolderPath": "1eb9edb4-2ce0-e911-a94a-00155d290a08",
"documentId": "6ba7a04c-a0df-e911-a949-00155d290a08"
}
Response:
{
"AddDocumentToRemoteFolderResult": "MicrosoftTeams-image1.png"
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Root folder not found (10023) |
ServiceException | Folder not found {folderPath} (10025) |
ServiceException | No document found for documentId {documentId} (10005) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | No document found for documentId {documentId} (10005) |
ServiceException | Document {documentId} is already an element of folder {folderId} (10266) |