Shapefile
All requests require a valid IDToken in the authentication header
Headers:
Authentication: Bearer {IDToken}
POST
/shp_link/
Required Data
order: the id of the order to download from [uuid]
Optional Data
optional: the type of shapefile to download, values found below [string]
- _ground
- _spruce
- _damaged
- _leaf
- _pine
- _stressed
Response
- Status code 200
- URL to download the file, valid for 5 minutes
Errors
Error Code 400
This error code signifies bad input.
If this code is returned check your input or contact Arboair with the code & time of the API request
Error Code 401
If this error code is received the IDToken is no longer valid. Please see refresh for refreshing your tokens.
It could also mean that the current user does not have download privileges on that specific order.
Error Code 404
No file could be found for that order and file combo
Error Code 502
Error on backend, contact Arboair with what API request you did and the time. Usually signifies that no URL could be found for that file and order.