POST api/2.0/files/thirdparty This function requires authentication

Description

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.

Parameters
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 string some text
Remark

List of provider keys: DropboxV2, Box, WebDav, Yandex, OneDrive, SharePoint, GoogleDrive, kDrive.

Example
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"
}
Returns

Connected provider folder

Example Response
{
  "status": 0,
  "response": {
    "ParentId": 1234,
    "FilesCount": 1234,
    "FoldersCount": 1234,
    "New": 1234,
    "Mute": true,
    "Pinned": true,
    "Private": true
  }
}