POST api/2.0/files/thirdparty
Saves the third party file storage service account
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
|
List of provider key: DropboxV2, Box, WebDav, Yandex, OneDrive, SharePoint, GoogleDrive
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"
}
application/json
{
"status": 0,
"response": {
"parentId": 492312480,
"filesCount": 492312480,
"foldersCount": 492312480,
"id": 492312480,
"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-01-21T09:11:56.6603250Z",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"updated": "2021-01-21T09:11:56.6603250Z"
}
}
text/xml
<result>
<status>0</status>
<response>
<parentId>492312480</parentId>
<filesCount>492312480</filesCount>
<foldersCount>492312480</foldersCount>
<id>492312480</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-01-21T09:11:56.6603250Z</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-01-21T09:11:56.6603250Z</updated>
</response>
</result>