---
title: "Import HREF terrain data file"
method: POST
path: "/api/href/import"
tags: ["HREF Terrain Data Management"]
---

# Import HREF terrain data file

`POST /api/href/import`

## Request

- Base URL: `http://localhost:8486`
- URL: `http://localhost:8486/api/href/import`
- Auth: API key in header `x-auth-token`

Imports HREF2018B_NN2000_EUREF89.bin file into PostGIS raster for terrain elevation calculations. The file must be a valid HREF binary format containing height reference data for the specified region.

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: HREF binary file to import. Must be HREF2018B_NN2000_EUREF89.bin format.

## Response `200`

HREF file successfully imported

- HrefImportResult
  - `rasterId` integer
  - `gridRows` integer
  - `gridColumns` integer
  - `spatialReferenceId` integer
  - `upperLeftLongitude` number, double
  - `upperLeftLatitude` number, double
  - `pixelWidthInDegrees` number, double
  - `pixelHeightInDegrees` number, double

## Other responses

- `400`: Bad request - file is missing, empty, or invalid format
- `500`: Internal server error during import or database operation

---

[API](https://skmtc.dev/airdodge/apis/api-core.md) - [All operations](https://skmtc.dev/airdodge/apis/api-core/llms.txt) - [OpenAPI document](https://skmtc.dev/airdodge/apis/api-core/revisions/fb3c5a1055cc?raw)
