---
title: "Update the metadata attributes of a hosted asset"
method: PATCH
path: "/groups/{groupId}/apps/{appId}/hosting/assets/asset"
tags: ["hosting"]
---

# Update the metadata attributes of a hosted asset

`PATCH /groups/{groupId}/apps/{appId}/hosting/assets/asset`

Update the metadata attributes of a hosted asset at a specific resource
path.

## Query parameters

- `path` string, required

## Request body

- object
  - `attributes` MetadataAttribute[]
    - `name` string — The [metadata attribute](https://www.mongodb.com/docs/atlas/app-services/hosting/file-metadata-attributes) name.
    - `value` string — The [metadata attribute](https://www.mongodb.com/docs/atlas/app-services/hosting/file-metadata-attributes) value.

## Response `204`

Successfully updated the hosted asset.

## Other responses

- `400` — There is an error in the request.

---

[API](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [All operations](https://skmtc.net/mongodb/apis/mongodb-atlas-app-services-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mongodb/mongodb-atlas-app-services-admin-api/revisions/1365ab72bc03/schema)
