Creates a web link object within a folder.
This operation is performed by calling function createWebLink.
See the endpoint docs at API Reference.
client.getWebLinks().createWebLink(new CreateWebLinkRequestBody.Builder(url, new CreateWebLinkRequestBodyParentField(parent.getId())).name(name).description(description).build())
- requestBody
CreateWebLinkRequestBody- Request body of createWebLink method
- headers
CreateWebLinkHeaders- Headers of createWebLink method
This function returns a value of type WebLink.
Returns the newly created web link object.
Retrieve information about a web link.
This operation is performed by calling function getWebLinkById.
See the endpoint docs at API Reference.
client.getWebLinks().getWebLinkById(weblink.getId())
- webLinkId
String- The ID of the web link. Example: "12345"
- headers
GetWebLinkByIdHeaders- Headers of getWebLinkById method
This function returns a value of type WebLink.
Returns the web link object.
Updates a web link object.
This operation is performed by calling function updateWebLinkById.
See the endpoint docs at API Reference.
client.getWebLinks().updateWebLinkById(weblink.getId(), new UpdateWebLinkByIdRequestBody.Builder().name(updatedName).sharedLink(new UpdateWebLinkByIdRequestBodySharedLinkField.Builder().access(UpdateWebLinkByIdRequestBodySharedLinkAccessField.OPEN).password(password).build()).build())
- webLinkId
String- The ID of the web link. Example: "12345"
- requestBody
UpdateWebLinkByIdRequestBody- Request body of updateWebLinkById method
- headers
UpdateWebLinkByIdHeaders- Headers of updateWebLinkById method
This function returns a value of type WebLink.
Returns the updated web link object.
Deletes a web link.
This operation is performed by calling function deleteWebLinkById.
See the endpoint docs at API Reference.
client.getWebLinks().deleteWebLinkById(weblink.getId())
- webLinkId
String- The ID of the web link. Example: "12345"
- headers
DeleteWebLinkByIdHeaders- Headers of deleteWebLinkById method
This function returns a value of type void.
An empty response will be returned when the web link was successfully deleted.