Get Started
API backend
API system
More information

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

Description

Changes the owner of the file with the ID specified in the request.

Parameters
Name Description Type Example
UserId
sent in body
New file owner ID System.Guid
Example
POST api/2.0/files/owner
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "UserId": "9924256A-739C-462b-AF15-E652A3B1B6EB"
}
Returns

File entry information

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "Title": "some text",
      "Access": "ReadWrite",
      "Shared": true,
      "ProviderKey": "some text"
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <Title>some text</Title>
    <Access>ReadWrite</Access>
    <Shared>True</Shared>
    <ProviderKey>some text</ProviderKey>
  </response>
</result>