We're transitioning Studio from Beta to Early Availability

You are currently reading the Studio Docs. If you were looking for the Classic Docs check here

Updating assets

Since assets are a system model, and automatically added to every project, you can extend them with your own custom fields.

These fields can be updated using GraphQL mutations.

In the following example, we have added altText and caption fields to our Assets model. Here, we are using an updateAsset mutation to change the text in them:

After successfully running this mutation, if you access your asset in edit mode, you will see the new altText and caption.

Learn more about Mutations.