Survey data
Retrieve current asset files
Results can be narrowed down with a filter by type:
curl -X GET https://kf.kobotoolbox.org/api/v2/assets/aSAvYreNzVEkrWg5Gdcvg/files/?collections_first=true&ordering=-name
get/api/v2/assets/{uid_asset}/files/
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
Query parameters
file_typestring
Filter files by type (e.g., "form_media")
limitinteger
Number of results to return per page. Use with start.
offsetinteger
Deprecated alias of start.
startinteger
The initial index from which to return the results. Use with limit.
Response
Example response
{
"count": 123,
"next": "https://kf.kobotoolbox.org/api-endpoint/?start=400&limit=100",
"previous": "https://kf.kobotoolbox.org/api-endpoint/?start=200&limit=100",
"results": [
{
"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
- info
added the new optional
queryrequest parameterfile_type
- info