Assets

Add New Asset

Add a new asset to a dataset version. Managed assets will be generated by the API itself. In that case, the Asset URI is read only and will be set automatically.

If the asset is not managed, you need to specify an Asset URI to link to.

Only the dataset's owner or a user with ADMIN user role can do this operation.

post/dataset/{dataset}/{version}/assets

Request

  • Base URL: https://data-api.globalforestwatch.org (the document declares no server; this is the origin it was published from)
  • URL: https://data-api.globalforestwatch.org/dataset/{dataset}/{version}/assets
  • Auth: OAuth 2 (password, token URL /token)

Path parameters

datasetstring required
versionstring required

Request body

asset_type'Dynamic vector tile cache' | 'Static vector tile cache' | 'Raster tile cache' | 'Raster tile set' | 'Database table' | 'Geo database table' | 'ESRI Shapefile' | 'Geopackage' | 'ndjson' | 'csv' | 'tsv' | '1x1 grid' | 'COG' required

An enumeration.

asset_uristring
is_managedboolean
is_downloadableboolean

Flag to specify if assets associated with version can be downloaded.If not set, value will default to settings of underlying version.

Response

Successful Response

statusstring

Changes

No recorded changes to this operation across all 1 revision of this API.