---
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
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# 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:

<Tabs
defaultValue="update-scope-cli"
values={[
{ label: 'CLI', value: 'update-scope-cli' },
{ label: 'cURL', value: 'update-scope-curl' },
]}>
  <TabItem value="update-scope-cli">
    ```bash
    np scope patch --id 123 
     --body '{"asset_name": "new-asset-name"}'
    ```
  </TabItem>
  <TabItem value="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"
    }'
    ```
  </TabItem>
</Tabs>
