POST api/2.0/files/owner
Changes the owner of the file with the ID specified in the request.
Name |
Description |
Type |
Example |
UserId
sent in body
|
New file owner ID
|
System.Guid
|
|
POST api/2.0/files/owner
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"UserId": "9924256A-739C-462b-AF15-E652A3B1B6EB"
}
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>