# Updating NFTs

<figure><img src="/files/Jg4VcHWwYda6kq9tlMUs" 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="/files/dJ52RSiXVKkQJXhSChvF" 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.underdogprotocol.com/examples/underdog-with-airtable/updating-nfts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
