Returns a token after verifying the password or password hash for a password-protected external link.
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 |
The token is used in the cookies with the 'sharelink[linkId]' name when calling API methods.
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" }
Token for a password-protected external link