Retrieve metadata for a specific hosted asset

GET /groups/{groupId}/apps/{appId}/hosting/assets/asset

Path parameters

Query parameters

  • path string Required

    The resource path of a hosted asset.

  • prefix string

    Return only those assets where the resource path begins with the specified prefix.

Responses

  • 200 application/json

    Successfully retrieved metadata for the hosted file.

    Hide response attributes Show response attributes object
    • appId string

      The unique App ID of the Atlas App Services App that is hosting the file.

    • last_modified integer

      The time at which the hosted asset was last modified in Unix time (number of seconds since January 1, 1970 at 00:00 UTC).

    • url string

      The full URL of the hosted asset.

    • path string

      The resource path of the hosted asset

    • size integer

      The size of the hosted asset in bytes

    • attrs array[object]

      An array of documents that each describe a metadata attribute that applies to the asset.

      Hide attrs attributes Show attrs attributes object
    • hash string

      The MD5 checksum hash for the hosted asset

  • 404 application/json

    Asset not found.

    Hide response attribute Show response attribute object
    • error string
GET /groups/{groupId}/apps/{appId}/hosting/assets/asset
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/hosting/assets/asset?path=string' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "appId": "string",
  "last_modified": 42,
  "url": "string",
  "path": "string",
  "size": 42,
  "attrs": [
    {
      "name": "string",
      "value": "string"
    }
  ],
  "hash": "string"
}
Response examples (404)
{
  "error": "string"
}