POST api/2.0/community/wiki/file This function requires authentication

Description

Uploads the selected files to the wiki page 'Files' section.

Parameters
Name Description Type Example
files
sent in body
List of files to upload Files for adding using multipart/form-data
collection
N/A
Example
POST api/2.0/community/wiki/file
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "files": []
}
Returns

List of files

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "Name": "File name",
      "UpdatedBy": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "DisplayName": "Mike Zanyatski",
        "Title": "Manager",
        "AvatarSmall": "url to small avatar",
        "ProfileUrl": "\\/Products\\/People\\/Profile.aspx?user=administrator"
      },
      "Updated": "2020-12-08T17:37:03.3424957Z",
      "Location": "4\\\\46\\\\File name"
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <Name>File name</Name>
    <UpdatedBy>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <DisplayName>Mike Zanyatski</DisplayName>
      <Title>Manager</Title>
      <AvatarSmall>url to small avatar</AvatarSmall>
      <ProfileUrl>\/Products\/People\/Profile.aspx?user=administrator</ProfileUrl>
    </UpdatedBy>
    <Updated>2020-12-08T17:37:03.3424957Z</Updated>
    <Location>4\\46\\File name</Location>
  </response>
</result>