Skip to content
getgeolens.com

Add Vrt Source

POST
/ingest/vrt/{dataset_id}/sources/
curl --request POST \
--url https://example.com/api/ingest/vrt/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sources/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "source_dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Add a COG source to an existing VRT and trigger async regeneration.

Validates the new source against existing sources synchronously. Returns 202 Accepted with a job_id for polling. Returns 409 if the VRT is currently regenerating (SRC-05) or source already linked. Returns 422 if the source is incompatible with existing sources.

dataset_id
required
Dataset Id
string format: uuid
Media type application/json
VrtAddSourceRequest
object
source_dataset_id
required
Source Dataset Id

Raster dataset ID to add as an additional source to the existing VRT.

string format: uuid
Example generated
{
"source_dataset_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Successful Response

Media type application/json
VrtMutationResponse
object
job_id
required
Job Id

Identifier of the asynchronous VRT mutation job.

string format: uuid
status
Status

Initial job status.

string
default: accepted
message
required
Message

Human-readable acceptance message.

string
Example
{
"status": "accepted"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}