Zarr Import API Reference
API Reference (1.0.0)
Download OpenAPI specification:Download
This page contains the documentation on how to use sentinel hub services through API calls.
Note: This documentation is not complete
Create a Zarr collection
Authorizations:
Request Body schema: application/json
| name required | string |
| s3Bucket required | string The S3 bucket where the Zarr is stored. |
| path required | string The prefix within the bucket where the Zarr is stored. Must end with '/' but not start with it and must contain a Zarr group. |
| crs required | string Native CRS of the Zarr. See also Sentinel Hub CRS support. |
Responses
Request samples
- Payload
{- "name": "string",
- "s3Bucket": "string",
- "path": "string",
- "crs": "string",
- "envelope": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0.1,
- 0.1
]
]
]
}
}Response samples
- 201
- 400
- 404
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
- "name": "string",
- "created": "2019-08-24T14:15:22Z",
- "s3Bucket": "string",
- "path": "string",
- "status": "CREATED",
- "ingestionErrors": "string",
- "crs": "string",
- "envelope": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0.1,
- 0.1
]
]
]
}, - "width": 0,
- "height": 0,
- "zattrs": { },
- "additionalData": {
- "bands": {
- "band1": {
- "source": "string",
- "bandIndex": 1,
- "bitDepth": 8,
- "sampleFormat": "UINT",
- "noData": 0,
- "aliases": [
- "string"
]
}, - "band2": {
- "source": "string",
- "bandIndex": 1,
- "bitDepth": 8,
- "sampleFormat": "UINT",
- "noData": 0,
- "aliases": [
- "string"
]
}
}, - "maxMetersPerPixel": 0
}
}
}Query Zarr collections
Authorizations:
query Parameters
| count | integer <int32> Upper limit to the number of items to retrieve. It cannot be larger than the endpoint-specific limit. If omitted, the endpoint-specific limit is used. For more records, use viewtoken to page through. |
| viewtoken | string When the total number of items is larger than count, the response contains viewtoken. This viewtoken can be used in the next request to retrieve the next page of items. The next page can be retrieved by repeating the query. However, replace your URL with the next URL in the returned links object. |
| search | string Optional query to search Zarr collections by name. If omitted, all items are returned. |
Responses
Response samples
- 200
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
- "name": "string",
- "created": "2019-08-24T14:15:22Z",
- "s3Bucket": "string",
- "path": "string",
- "status": "CREATED",
- "ingestionErrors": "string",
- "crs": "string",
- "envelope": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0.1,
- 0.1
]
]
]
}, - "width": 0,
- "height": 0,
- "zattrs": { },
- "additionalData": {
- "bands": {
- "band1": {
- "source": "string",
- "bandIndex": 1,
- "bitDepth": 8,
- "sampleFormat": "UINT",
- "noData": 0,
- "aliases": [
- "string"
]
}, - "band2": {
- "source": "string",
- "bandIndex": 1,
- "bitDepth": 8,
- "sampleFormat": "UINT",
- "noData": 0,
- "aliases": [
- "string"
]
}
}, - "maxMetersPerPixel": 0
}
}
]
}Get a Zarr collection
Authorizations:
path Parameters
| collectionId required | string <uuid> |
Responses
Response samples
- 200
- 404
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
- "name": "string",
- "created": "2019-08-24T14:15:22Z",
- "s3Bucket": "string",
- "path": "string",
- "status": "CREATED",
- "ingestionErrors": "string",
- "crs": "string",
- "envelope": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0.1,
- 0.1
]
]
]
}, - "width": 0,
- "height": 0,
- "zattrs": { },
- "additionalData": {
- "bands": {
- "band1": {
- "source": "string",
- "bandIndex": 1,
- "bitDepth": 8,
- "sampleFormat": "UINT",
- "noData": 0,
- "aliases": [
- "string"
]
}, - "band2": {
- "source": "string",
- "bandIndex": 1,
- "bitDepth": 8,
- "sampleFormat": "UINT",
- "noData": 0,
- "aliases": [
- "string"
]
}
}, - "maxMetersPerPixel": 0
}
}
}Update Zarr collection
Authorizations:
path Parameters
| collectionId required | string <uuid> |
Request Body schema: application/json
| name required | string |
Responses
Request samples
- Payload
{- "name": "string"
}Response samples
- 400
- 404
{- "error": {
- "status": 0,
- "reason": "string",
- "message": "string",
- "code": "COMMON_BAD_PAYLOAD",
- "errors": { }
}
}Reingest a Zarr collection
Authorizations:
path Parameters
| collectionId required | string <uuid> |
Responses
Response samples
- 200
- 404
{- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
- "name": "string",
- "created": "2019-08-24T14:15:22Z",
- "s3Bucket": "string",
- "path": "string",
- "status": "CREATED",
- "ingestionErrors": "string",
- "crs": "string",
- "envelope": {
- "type": "Polygon",
- "coordinates": [
- [
- [
- 0.1,
- 0.1
]
]
]
}, - "width": 0,
- "height": 0,
- "zattrs": { },
- "additionalData": {
- "bands": {
- "band1": {
- "source": "string",
- "bandIndex": 1,
- "bitDepth": 8,
- "sampleFormat": "UINT",
- "noData": 0,
- "aliases": [
- "string"
]
}, - "band2": {
- "source": "string",
- "bandIndex": 1,
- "bitDepth": 8,
- "sampleFormat": "UINT",
- "noData": 0,
- "aliases": [
- "string"
]
}
}, - "maxMetersPerPixel": 0
}
}
}Query Zarr collection's arrays
Authorizations:
path Parameters
| collectionId required | string <uuid> |
query Parameters
| count | integer <int32> Upper limit to the number of items to retrieve. It cannot be larger than the endpoint-specific limit. If omitted, the endpoint-specific limit is used. For more records, use viewtoken to page through. |
| viewtoken | string When the total number of items is larger than count, the response contains viewtoken. This viewtoken can be used in the next request to retrieve the next page of items. The next page can be retrieved by repeating the query. However, replace your URL with the next URL in the returned links object. |
| search | string Optional query to search arrays by name. If omitted, all items are returned. |
Responses
Response samples
- 200
- 404
{- "data": [
- {
- "name": "string",
- "s3Bucket": "string",
- "path": "string",
- "zarray": { },
- "zattrs": { }
}
]
}