---
sidebar_label: Update the asset name of a scope
doc_id: 7c093124-efa5-40d3-984d-8cd8832e9f67
description: >-
  Learn how to update a scope's asset_name using API PATCH requests or CLI
  commands when assets change or need correction.
keywords:
  - scope
  - asset_name
  - API
  - CLI
  - update
title: Update the asset name of a scope
canonical: >-
  https://docs.nullplatform.com/docs/agent-backed-scopes/troubleshooting/update-asset-name
---
# Update the asset name of a scope

There are cases where you may need to update a scope’s `asset_name`, such as:

- The wrong asset was selected during the initial deployment.
- A pipeline update changed the asset name.

You can update the `asset_name` using either a [PATCH request to our API](/docs/api/scope-update) or the [CLI](/docs/cli/).

Here's a request example for each method:

  **update-scope-cli**
    ```bash
    np scope patch --id 123 
     --body '{"asset_name": "new-asset-name"}'
    ```

  **update-scope-curl**
    ```bash
    curl -L -X PATCH 'https://api.nullplatform.com/scope/123' \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d '{
      "asset_name": "new-asset-name"
    }'
    ```

