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 | string | some text |
Login
sent in body
|
Login | string | some text |
Password
sent in body
|
Password | string | some text |
Token
sent in body
|
Authentication token | string | some text |
IsCorporate
sent in body
|
Specifies if this is a corporate account or not | Bool value | true |
IsRoomsStorage
sent in body
|
Specifies if this is a room storage or not | Bool value | true |
CustomerTitle
sent in body
|
Customer title | string | some text |
ProviderKey
sent in body
|
Provider key | string | some text |
ProviderId
sent in body
|
Provider ID | number | 1234 |
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": 1234 }
Connected provider folder
{ "status": 0, "response": { "ParentId": 1234, "FilesCount": 1234, "FoldersCount": 1234, "IsShareable": true, "IsFavorite": true, "New": 1234, "Mute": true, "Pinned": true, "RoomType": "5", "Private": true, "QuotaLimit": 1234, "IsCustomQuota": true, "UsedSpace": 1234 } }