> For the complete documentation index, see [llms.txt](https://docs.underdogprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.underdogprotocol.com/examples/underdog-with-airtable/updating-nfts.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
