> For the complete documentation index, see [llms.txt](https://www.mongodb.com/docs/api/doc/atlas-app-services-admin-api-v3/llms.txt)

# 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.


## Servers
- The root API resource and starting point for the App Services API.: https://services.cloud.mongodb.com/api/admin/v3.0 (The root API resource and starting point for the App Services API.)


## Authentication methods
- Token auth


## Parameters

### Path parameters

- **groupId** (string)
  An Atlas [Project/Group
  ID](https://docs.atlas.mongodb.com/tutorial/manage-projects/).

- **appId** (string)
  The ObjectID of your application.
  [The App Services API Project and Application IDs section](#section/Project-and-Application-IDs) demonstrates how to find this
  value.


### Query parameters

- **path** (string)
  The resource path of a hosted asset.


### Body: application/json (object)
The new metadata attributes for the hosted asset. These attributes
replace all existing attributes for the file.
- **attributes** (array[object])



## Responses
### 204
Successfully updated the hosted asset.

### 400
There is an error in the request.

#### Body: application/json (object)
- **error** (string)
  A message that describes the error.

- **error_code** (string)
  The error type.



[Powered by Bump.sh](https://bump.sh)
