Skip to content

Latest commit

 

History

History
113 lines (73 loc) · 2.98 KB

TrashedWebLinks.md

File metadata and controls

113 lines (73 loc) · 2.98 KB

ITrashedWebLinksManager

Restore web link

Restores a web link that has been moved to the trash.

An optional new parent ID can be provided to restore the web link to in case the original folder has been deleted.

This operation is performed by calling function RestoreWeblinkFromTrash.

See the endpoint docs at API Reference.

await client.TrashedWebLinks.RestoreWeblinkFromTrashAsync(webLinkId: weblink.Id);

Arguments

  • webLinkId string
    • The ID of the web link. Example: "12345"
  • requestBody RestoreWeblinkFromTrashRequestBody
    • Request body of restoreWeblinkFromTrash method
  • queryParams RestoreWeblinkFromTrashQueryParams
    • Query parameters of restoreWeblinkFromTrash method
  • headers RestoreWeblinkFromTrashHeaders
    • Headers of restoreWeblinkFromTrash method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type TrashWebLinkRestored.

Returns a web link object when it has been restored.

Get trashed web link

Retrieves a web link that has been moved to the trash.

This operation is performed by calling function GetTrashedWebLinkById.

See the endpoint docs at API Reference.

await client.TrashedWebLinks.GetTrashedWebLinkByIdAsync(webLinkId: weblink.Id);

Arguments

  • webLinkId string
    • The ID of the web link. Example: "12345"
  • queryParams GetTrashedWebLinkByIdQueryParams
    • Query parameters of getTrashedWebLinkById method
  • headers GetTrashedWebLinkByIdHeaders
    • Headers of getTrashedWebLinkById method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type TrashWebLink.

Returns the web link that was trashed, including information about when the it was moved to the trash.

Permanently remove web link

Permanently deletes a web link that is in the trash. This action cannot be undone.

This operation is performed by calling function DeleteTrashedWebLinkById.

See the endpoint docs at API Reference.

await client.TrashedWebLinks.DeleteTrashedWebLinkByIdAsync(webLinkId: weblink.Id);

Arguments

  • webLinkId string
    • The ID of the web link. Example: "12345"
  • headers DeleteTrashedWebLinkByIdHeaders
    • Headers of deleteTrashedWebLinkById method
  • cancellationToken System.Threading.CancellationToken?
    • Token used for request cancellation.

Returns

This function returns a value of type null.

Returns an empty response when the web link was permanently deleted.