> For the complete documentation index, see [llms.txt](https://docs.altura.com/altura-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.altura.com/altura-documentation/api-reference/smart-nft-endpoints/update-an-items-property.md).

# Update an Item's Property

This method allows you to change the value of an item's property given the name of the property (key). This can be used to update an item's state (i.e., health, wear, strength, consumed state, etc.)

### Update an item's property

## Updates the value of an item's property

<mark style="color:green;">`POST`</mark> `https://api.alturanft.com/api/v2/item/update_property`

Takes an item's collection address, tokenId, a property name, the new value for the property and your API key and updates the item's property

#### Query Parameters

| Name                                     | Type   | Description  |
| ---------------------------------------- | ------ | ------------ |
| apiKey<mark style="color:red;">\*</mark> | String | Your API key |

#### Request Body

| Name                                            | Type    | Description                                       |
| ----------------------------------------------- | ------- | ------------------------------------------------- |
| address<mark style="color:red;">\*</mark>       | String  | The item's collection address                     |
| tokenId<mark style="color:red;">\*</mark>       | Integer | The item's tokenId                                |
| propertyName<mark style="color:red;">\*</mark>  | String  | The name (key) of the property you want to change |
| propertyValue<mark style="color:red;">\*</mark> | String  | The new value you want to set the property to     |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error " %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
You cannot change the value of static properties.
{% endhint %}
