# Updating code

The guides in this section describe how to migrate from deprecated endpoints and functionality to their replacements.

[**Migrate from using GET /folders/{id} for folder and child metadata**](/api/smartsheet/guides/updating-code/migrate-from-get-folder) - The guide shows how to replace the legacy `GET /folder/{id}` endpoint with two dedicated operations—one for folder metadata, one for paginated child items (sheets, reports, folders, templates, dashboards). It includes SDK code samples in multiple languages and highlights pitfalls to avoid during migration.

[**Migrate from using GET /workspaces/{id} for workspace and child metadata**](/api/smartsheet/guides/updating-code/migrate-from-get-workspace) - The article explains how to update code that uses the deprecated `GET /workspace/{id}` operation by replacing it with two new operations: one for retrieving workspace metadata and another for fetching paginated lists of immediate child items (sheets, reports, folders, templates, and dashboards). The guide provides code examples in multiple programming languages and highlights common mistakes to avoid during the migration.

[**Migrate from GET /workspaces/{id} with loadAll for workspace hierarchies**](/api/smartsheet/guides/updating-code/migrate-from-get-workspaces-loadall) - Here you'll learn how to update code that uses the deprecated `GET /workspaces/{id}?loadAll=true` operation, which retrieved entire workspace hierarchies in a single unbounded call that could strain performance and consume unnecessary resources. Instead, you can build complete hierarchies by combining calls to two new paginated operations: one for retrieving workspace children and another for retrieving folder children, enabling more efficient and granular control over data retrieval.

[**Migrate from using the Sheets folder**](/api/smartsheet/guides/updating-code/migrate-from-using-the-sheets-folder) - This guide describes how to update your environment and code from using the Sheets folder (deprecated) to using workspaces. First, it outlines how to create a workspace and move your Sheets folder contents to it. Then it covers traversing workspace contents to access items and subfolders. Lastly, the guide explains how to create items in your workspace and import items into it.