> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Reassign Metafields Owner

Metafields can be reassigned to a new owner by updating the `ownerClientId` field using the [Reassign Metafield Owner](/developer/api-reference/graphql/account/overview) GraphQL mutation.

> **Note**
>
> While the v3 REST API supports creating, updating, and deleting metafields, to
> reassign a metafield's owner you **must use** the GraphQL API.

> **Note**
>
> The client ID is displayed only once when you create a store-level API
> account. If it's lost or forgotten, you'll need to create a new store-level
> API account. See the [API Accounts Documentation](https://support.bigcommerce.com/s/article/Store-API-Accounts?language=en_US#store-level)
> for details.

> **Note**
>
> Ensure the metafield id uses the correct format: `bc/store/metafield/{id}`

## GraphQL Mutation

#### Request

**`Example mutation: Reassign Metafields Owner`**

```graphql title="Example mutation: Reassign Metafields Owner"
POST https://api.bigcommerce.com/stores/{{STORE_HASH}}/graphql
X-Auth-Token: {{ACCESS_TOKEN}}
Content-Type: application/json
Accept: application/json
 
mutation Metafield($input: ReassignMetafieldsOwnerInput!) {
    metafield {
        reassignMetafieldsOwner(input: $input) {
            metafieldIds
        }
    }
}
```

**`GraphQL variables`**

```json title="GraphQL variables"
{
    "input": {
        "newClientId": "xyz1234",
        "metafieldIds": ["bc/store/metafield/8"]
    }
}
```

#### Response

**`Example mutation: Reassign Metafields Owner`**

```json title="Example mutation: Reassign Metafields Owner"
{
    "data": {
        "metafield": {
            "reassignMetafieldsOwner": {
                "metafieldIds": [
                    "bc/store/metafield/8"
                ]
            }
        }
    }
}
```