Update the metadata attributes of a hosted asset
Update the metadata attributes of a hosted asset at a specific resource path.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
PATCH
/groups/{groupId}/apps/{appId}/hosting/assets/asset
curl \
--request PATCH 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/hosting/assets/asset?path=string' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"attributes":[{"name":"string","value":"string"}]}'
Request examples
{
"attributes": [
{
"name": "string",
"value": "string"
}
]
}
Response examples (400)
{
"error": "string",
"error_code": "string"
}