Survey data

Retrieve a file from current asset

get/api/v2/assets/{uid_asset}/files/{uid_file}/

Request

  • The document declares no server URL.
  • Auth: one of:
    • HTTP basic
    • API key in header Authorization

Path parameters

uid_assetstring required

UID of the parent asset

uid_filestring required

Response

uidstring required
urlstring uri required
assetstring uri required
userstring uri required
user__usernamestring required
file_typestring required
descriptionstring required
date_createdstring date-time required
contentstring uri required

Example response

{
  "url": "https://kf.kobotoolbox.org/api/v2/assets/a3C9wWefqZVkChNLKqqXVZ/files/afSa8PqnoYe8vJqkrsGz3oN/",
  "asset": "https://kf.kobotoolbox.org/api/v2/assets/a3C9wWefqZVkChNLKqqXVZ/",
  "user": "https://kf.kobotoolbox.org/api/v2/users/bob/",
  "content": "https://kf.kobotoolbox.org/api/v2/assets/a3C9wWefqZVkChNLKqqXVZ/files/afSa8PqnoYe8vJqkrsGz3oN/content/"
}

Changes

No recorded changes to this operation across all 50 revisions of this API.