> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Restore Web Link

To restore a web link that has been moved to the trash, but has not yet been
purged, make a `POST` request to the `/web_links/:web_link_id` endpoint. This
will place the web link in the original parent folder if it is still
available, you optionally can specify a `parent` folder.

<CodeGroup>
  ```sh cURL theme={null}
  curl -i -X POST "https://api.box.com/2.0/web_links/12345" \
       -H "authorization: Bearer <ACCESS_TOKEN>"
  ```

  ```typescript Node/TypeScript v10 theme={null}
  await client.trashedWebLinks.restoreWeblinkFromTrash(weblink.id);
  ```

  ```python Python v10 theme={null}
  client.trashed_web_links.restore_weblink_from_trash(weblink.id)
  ```

  ```cs .NET v10 theme={null}
  await client.TrashedWebLinks.RestoreWeblinkFromTrashAsync(webLinkId: weblink.Id);
  ```

  ```swift Swift v10 theme={null}
  try await client.trashedWebLinks.restoreWeblinkFromTrash(webLinkId: weblink.id)
  ```

  ```java Java v10 theme={null}
  client.getTrashedWebLinks().restoreWeblinkFromTrash(weblink.getId())
  ```

  ```python Python v4 theme={null}
  web_link_to_restore = client.web_link(web_link_id='33333')
  restored_web_link = client.trash().restore_item(web_link_to_restore)
  print(f'Web link ID is {restored_web_link.id} and name is {restored_web_link.name}')
  ```
</CodeGroup>
