Grabbing image from collection not working

Hi there, I’m writing out some api functions and I’m getting an error.

“message”: "Request payload invalid: Invalid collection type, no suitable implementation of AbstractCollection class found

The sent request var is the following:

“input”: {
“bounds”: {
“bbox”: [
“data”: [
“type”: “9dc33ab4-8797-4b40-xxxxxXXXXXXXXXXX”,
“dataFilter”: {
“timeRange”: {
“from”: “2022-01-01T00:00:00Z”,
“to”: “2022-01-02T23:59:59Z”
“output”: {
“width”: 512,
“height”: 512

Hi @tom.roberts,
I think you are using the non-existing “collection ID”.
What you have in “type”, is “Instance ID” (from Configuration Utility).
Collections can be found here

Investigating this a bit further, I am not sure what you would like to do:

  • the PlanetScope collections (I am guessing this is what you are trying to do) are empty for the moment, so even when you make request work, it will not return anything; we recommend you first configure one active PlanetScope subscription, so that you will have the data within.
  • there is the “evalscript” missing in the request.
  • the specific “Configuration” is not configured appropriately, as the BYOC collections are not set; note that the PlanetScope configurations have already been set, so you can simply use those

I would kindly suggest to check this example on how to fetch data from PlanetScope collection (once the data are actually there)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.