Skip to content
getgeolens.com

Analysis Materialize Endpoint

POST
/datasets/{dataset_id}/analysis/materialize/
curl --request POST \
--url https://example.com/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/analysis/materialize/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "by_field": "example", "distance_meters": 1, "mask": {}, "mask_dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "operation": "buffer", "title": "example" }'

Materialize an analysis result as a new private dataset (async job).

Requires the upload and export permissions (this endpoint creates a dataset that carries the source’s attributes) and read visibility on the source dataset; the new dataset is owned by the caller and counted against their dataset quota (the atomic slot reservation runs at registration inside the worker). Poll GET /jobs/{job_id} for progress.

dataset_id
required
Dataset Id
string format: uuid
Media type application/json
AnalysisMaterializeRequest

Parameters for materializing an analysis result as a new dataset.

object
by_field
Any of:
string
<= 63 characters
distance_meters
Any of:
number
> 0 <= 100000
mask
Any of:
object
key
additional properties
any
mask_dataset_id
Any of:
string format: uuid
operation
required
Operation
string
Allowed values: buffer centroid clip dissolve
title
required
Title
string
>= 1 characters <= 500 characters

Successful Response

Media type application/json
AnalysisMaterializeResponse

Async materialize job handle; poll GET /jobs/{job_id} for progress.

object
job_id
required
Job Id
string format: uuid
status
required
Status
string
Example generated
{
"job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"status": "example"
}

Bad request — invalid payload

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Unauthorized — missing or invalid credentials

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Forbidden — caller lacks write access

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Not found

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Conflict — resource state prevents the operation

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Validation error

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Too many requests — retry after the advertised interval

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}
Retry-After
integer

Seconds until the request may be retried

Internal server error

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}

Service unavailable — the database could not serve the request

Media type application/problem+json
ProblemDetail
object
detail
required
Any of:
string
status
required
Status
integer
title
required
Title
string
type
Type
string
default: about:blank
Example
{
"detail": "Dataset not found",
"status": 404,
"title": "Not Found",
"type": "about:blank"
}