Links
Links are obscured, secure URLs to Onehub folders and files. They are created via unique tokens and are designed to provide shortcuts to Onehub content without requiring an account. You can read and update links.
Read a Link
GET
https://ws-api.onehub.com/:item/:item_id/link
Retrieves the link object from an :item
(folder or file) specified via :item_id
.
Path Parameters
Name | Type | Description |
---|---|---|
:item | integer | The type of item. Can either be |
:item_id | integer | The unique identifier of the item you would like to retrieve the link from. |
Update a Link
PUT
https://ws-api.onehub.com/:item/:item_id/link
Updates the link object on the :item
(folder or file) specified via :item_id
.
Path Parameters
Name | Type | Description |
---|---|---|
:item | integer | The type of item. Can either be |
:item_id | integer | The unique identifier of the item you would like to update the link on. |
Request Body
Name | Type | Description |
---|---|---|
require_password | boolean | Should a password be required to access the link? Defaults to |
password | string | Set the required password that must be entered before the link can be accessed. Required if |
token_accessible | boolean | Is the link enabled? Defaults to |
Last updated