POST api/2.0/files/{fileId}/sharedlink/{linkId}/password This function requires authentication

Description

Returns a token after verifying the password or password hash for a password-protected external link.

Parameters
Name Description Type Example
fileId
sent in body
File ID string some text
linkId
sent in body
Link ID guid 9924256A-739C-462b-AF15-E652A3B1B6EB
password
sent in body
Password string some text
passwordHash
sent in body
Password hash string some text
Remark

The token is used in the cookies with the 'sharelink[linkId]' name when calling API methods.

Example
POST api/2.0/files/{fileid}/sharedlink/{linkid}/password
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "fileId": "some text",
  "linkId": "9924256A-739C-462b-AF15-E652A3B1B6EB",
  "password": "some text",
  "passwordHash": "some text"
}
Returns

Token for a password-protected external link