Saves the third-party storage service account. For WebDav, Yandex, kDrive and SharePoint, the login and password are used for authentication. For other providers, the authentication is performed using a token received via OAuth 2.0.
Name | Description | Type | Example |
Url
sent in body
|
Connection URL for the sharepoint | System.String | |
Login
sent in body
|
Login | System.String | |
Password
sent in body
|
Password | System.String | |
Token
sent in body
|
Authentication token | System.String | |
IsCorporate
sent in body
|
Specifies if this is a corporate account or not | System.Boolean | |
IsRoomsStorage
sent in body
|
Specifies if this is a room storage or not | System.Boolean | |
CustomerTitle
sent in body
|
Customer title | System.String | |
ProviderKey
sent in body
|
Provider key | System.String | |
ProviderId
sent in body
|
Provider ID | System.String |
List of provider keys: DropboxV2, Box, WebDav, Yandex, OneDrive, SharePoint, GoogleDrive, kDrive.
POST api/2.0/files/thirdparty Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "Url": "some text", "Login": "some text", "Password": "some text", "Token": "some text", "IsCorporate": true, "IsRoomsStorage": true, "CustomerTitle": "some text", "ProviderKey": "some text", "ProviderId": "some text" }
Connected provider folder
application/json
{ "status": 0, "response": { "ParentId": 1234, "FilesCount": 1234, "FoldersCount": 1234, "New": 1234, "Mute": true, "Pinned": true, "Private": true } }
text/xml
<result> <status>0</status> <response> <ParentId>1234</ParentId> <FilesCount>1234</FilesCount> <FoldersCount>1234</FoldersCount> <New>1234</New> <Mute>True</Mute> <Pinned>True</Pinned> <Private>True</Private> </response> </result>