Skip to main content

Batch Statistical 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

Statistical

Submit a new statistical batch request

Authorizations:
OAuth2
Request Body schema:
required
object (BatchStatisticalInput)
required
object (BatchStatisticalRequestAggregation)

Specifies how data is aggregated and processed before statistics is calculated. timeRange and aggregationInterval combined define sampling intervals in time dimension. Width/height or resx/resy combined with input.bounds define a sample matrix (i.e. "image") in spatial dimension.

object (StatisticalRequestCalculations)

Define which statistics and histogram to calculate. It can be specified differently for each evalscript output. If omitted only the basic statistic (min, max, mean, stDev) will be calculated.

required
object (ObjectStorageOutputInfo)

Storage location where the results shall be written.

Responses

Request samples

Content type
{
  • "input": {
    },
  • "aggregation": {
    },
  • "calculations": {
    },
  • "output": {
    }
}

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "status": "CREATED",
  • "error": "string",
  • "completionPercentage": 0,
  • "lastUpdated": "2019-08-24T14:15:22Z",
  • "costPu": 0,
  • "created": "2019-08-24T14:15:22Z",
  • "stoppedStatusReason": "OUT_OF_PU",
  • "request": {
    },
  • "userAction": "NONE",
  • "userActionUpdated": "2019-08-24T14:15:22Z",
  • "domainAccountId": "4e1699b2-af74-455a-818d-6f1ec31a6d19",
  • "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  • "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c"
}

Query statistical batch requests

Authorizations:
OAuth2
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.

sort
string
Enum: "created" "created:desc" "status" "status:desc"

Sort the statistical batch requests by given field. Omit for default ordering.

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "links": {}
}

Retrieve a single batch statistical request

Authorizations:
OAuth2
path Parameters
requestId
required
string <uuid>

Request ID

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "status": "CREATED",
  • "error": "string",
  • "completionPercentage": 0,
  • "lastUpdated": "2019-08-24T14:15:22Z",
  • "costPu": 0,
  • "created": "2019-08-24T14:15:22Z",
  • "stoppedStatusReason": "OUT_OF_PU",
  • "request": {
    },
  • "userAction": "NONE",
  • "userActionUpdated": "2019-08-24T14:15:22Z",
  • "domainAccountId": "4e1699b2-af74-455a-818d-6f1ec31a6d19",
  • "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  • "workspaceId": "ef0efa32-d1c1-43d4-a5e2-fe7b4f00403c"
}

Retrieve the status of a batch statistical request.

Authorizations:
OAuth2
path Parameters
requestId
required
string <uuid>

Request ID

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "status": "CREATED",
  • "error": "string",
  • "completionPercentage": 0,
  • "lastUpdated": "2019-08-24T14:15:22Z",
  • "costPu": 0,
  • "created": "2019-08-24T14:15:22Z",
  • "stoppedStatusReason": "OUT_OF_PU"
}

Request analysis of a batch statistical request

Authorizations:
OAuth2
path Parameters
requestId
required
string <uuid>

Request ID

Responses

Response samples

Content type
application/json
{
  • "error": {
    }
}

Start (confirm) processing of a batch statistical request

Authorizations:
OAuth2
path Parameters
requestId
required
string <uuid>

Request ID

Responses

Response samples

Content type
application/json
{
  • "error": {
    }
}

Stop a batch statistical request

Authorizations:
OAuth2
path Parameters
requestId
required
string <uuid>

Request ID

Responses

Response samples

Content type
application/json
{
  • "error": {
    }
}