# Cosmo Change Asset Metadata Action

With the help of Cosmo Change Asset Metadata Action it is possible to manage custom metadata besides typical job and project metadata. This node will add or update one or multiple metadata key value pairs to an asset by referring to the asset ID. It allows users to change asset metadata of already indexed Assets. The corresponding metadata entries will be added (new entries) to or updated (existing entries) in the database (MongoDB - assetDB) into the array „customMetadata“. Avoid using this node right after the Cosmo Add Asset To Project Action node or at least provide the Sleep Action in between and wait for 4000+ ms.

<figure><img src="/files/Rb3FcKVaxDdjToICYIdE" alt=""><figcaption><p>Cosmo Change Asset Metadata Action V3 node</p></figcaption></figure>

With the "Autosync" option it can be decided within the Helmut4 panel if the asset should automatically be synced whenever the project is opened or the user initiates a manual Sync process. If the Autosync is disabled an orange icon will be increased with the amount of assets that needs to be synchronized/updated.

With the implementation of node version V3, it is now possible to modify metadata key-value pairs for multiple instances of assets in the Cosmo database. The enhanced node introduces a new input field called 'Asset Path.' By providing valid information, the related metadata key will be updated for all instances in the database associated with the specified path. It's important to note that when updating asset metadata using 'Asset Path,' the 'Asset ID' will be ignored. Conversely, to update the metadata of a specific asset, leave the 'Asset Path' field empty."

<figure><img src="/files/Yi4F5BLi5tjg364Cestc" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Wjw3Uv03xsp94bjBUITj" alt=""><figcaption></figcaption></figure>


---

# 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.helmut.de/helmut4-releases/v4.9.0/helmut4-components/streamdesigner/nodes/actions/cosmo/cosmo-change-asset-metadata-action.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.
