Get Started
Portal api methods
Help

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

Description

Uploads the selected files to the wiki '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": ""
      },
      "updated": "2019-10-15T09:54:26.8569305Z",
      "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></profileUrl>
    </updatedBy>
    <updated>2019-10-15T09:54:26.8569305Z</updated>
    <location>4\46\File name</location>
  </response>
</result>