# Upload or replace a hosted asset **PUT /groups/{groupId}/apps/{appId}/hosting/assets/asset** Upload or replace 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 hosted asset file and its metadata. (Must use `Content-Type: multipart/mixed`) - **meta** (object) - **file** (string(binary)) The asset file to upload (encoded as binary). ## Responses ### 204 Successfully added/replaced 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)