Volcview API Documentation - DATA TYPE API

GET METHODS

Select only data types with images.
https://volcview.wr.usgs.gov/vv-api/dataTypeApi/active

Select all data types.
https://volcview.wr.usgs.gov/vv-api/dataTypeApi/all

Select all data types with image totals and most recent image dates. This query should be used infrequently.
https://volcview.wr.usgs.gov/vv-api/dataTypeApi/stats

Select data type by name.
https://volcview.wr.usgs.gov/vv-api/dataTypeApi/dataType/avhrr

CREATE OR UPDATE DATA TYPE

Will create data type if not found, else update. Because image paths use the dataType value, it cannot be changed when using the API, data type label can be updated though.

curl -i --header "username:USERNAME" --header "password:PASSWORD" -X POST -d '{"dataTypeLabel":"Test Data Type","dataType":"TEST"}' https://volcview.wr.usgs.gov/vv-api/dataTypeApi/dataType

DELETE DATA TYPE

curl -i --header "username:USERNAME" --header "password:PASSWORD" -X DELETE https://volcview.wr.usgs.gov/vv-api/dataTypeApi/dataType/TEST