Get Started
Portal api methods
Help

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

Description

Saves the third party file storage service account

Parameters
Name Description Type Example
url
sent in body
Connection url for 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
Bool value true
customerTitle
sent in body
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 key: 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": 1804991158,
    "filesCount": 1804991158,
    "foldersCount": 1804991158,
    "id": 1804991158,
    "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": "2019-10-15T09:54:28.6801832Z",
    "createdBy": {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "Mike Zanyatski",
      "title": "Manager",
      "avatarSmall": "url to small avatar",
      "profileUrl": ""
    },
    "updated": "2019-10-15T09:54:28.6801832Z",
    "providerItem": false
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <parentId>1804991158</parentId>
    <filesCount>1804991158</filesCount>
    <foldersCount>1804991158</foldersCount>
    <id>1804991158</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>2019-10-15T09:54:28.6801832Z</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>2019-10-15T09:54:28.6801832Z</updated>
    <providerItem>false</providerItem>
  </response>
</result>