Get Started
Usage API
More information

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

Description

Saves the storage service account of the third-party file.

Parameters
Name Description Type Example
url
sent in body
Connection URL for the share point 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
Corporate account 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.

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,
  "customerTitle": "some text",
  "providerKey": "some text",
  "providerId": "some text"
}
Returns

Folder contents

Example Response

application/json

{
  "status": 0,
  "response": {
    "parentId": 730342569,
    "filesCount": 730342569,
    "foldersCount": 730342569,
    "id": 730342569,
    "title": "Some titile",
    "access": 1,
    "shared": false,
    "rootFolderType": 2,
    "updatedBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "created": "2021-11-26T04:36:28.8770706Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2021-11-26T04:36:28.8770706Z"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <parentId>730342569</parentId>
    <filesCount>730342569</filesCount>
    <foldersCount>730342569</foldersCount>
    <id>730342569</id>
    <title>Some titile</title>
    <access>1</access>
    <shared>false</shared>
    <rootFolderType>2</rootFolderType>
    <updatedBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </updatedBy>
    <created>2021-11-26T04:36:28.8770706Z</created>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <updated>2021-11-26T04:36:28.8770706Z</updated>
  </response>
</result>