PUT api/2.0/community/wiki/{name} This function requires authentication

Description

Updates a wiki page with the name and content specified in the request.

Parameters
Name Description Type Example
name
sent in url
New page name string some text
body
sent in body
New page content string some text
Example
PUT api/2.0/community/wiki/%22some+text%22
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "body": "some text"
}
Returns

Page information

Example Response

application/json

{
  "status": 0,
  "response": {
    "Name": "Page name",
    "Content": "Page content",
    "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.3164965Z"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <Name>Page name</Name>
    <Content>Page content</Content>
    <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.3164965Z</Updated>
  </response>
</result>