# Updating NFTs

<figure><img src="https://1812349639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMfCqNbNtOQjchD3WfXFA%2Fuploads%2FMQddSj4uqCz9sOQMRCT8%2Fimage.png?alt=media&#x26;token=9f256de2-f85f-4ba3-b3eb-d71d5be7df8c" alt=""><figcaption></figcaption></figure>

## Airtable Automation for Updated Record

Let's start by adding a "Points" column to your Airtable base. For this example, it will be the only attribute on your NFT that we can update whenever one of our users does an action we want to reward.&#x20;

We can now create an Airtable Automation whose trigger is **When record updated** and watch for the **Points** column.&#x20;

<figure><img src="https://1812349639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMfCqNbNtOQjchD3WfXFA%2Fuploads%2Fi4gQFtlOD2CikjGJUEPQ%2FScreen%20Shot%202023-01-11%20at%2012.44.26%20PM.png?alt=media&#x26;token=1542193e-820c-49aa-bd13-bec1c8d37121" alt=""><figcaption></figcaption></figure>

## Updating the NFT

Once we have the updated record, we can take the mint address and points from the record and pass it into our script action.&#x20;

Here is an example script that you can copy-paste into Airtable.&#x20;

```typescript
curl --location --request PATCH 'https://dev.underdogprotocol.com/v2/projects/n/4/nfts/1' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "attributes": {
        "points": "40000"
    }
}'
```

Now whenever you update the **Points** column within Airtable, the changes will automatically be reflected on the corresponding NFT.&#x20;
