Skip to main content
Skip table of contents

API for import and export codebooks

Authentication

A standard token-based authentication is to be used to access this API.

Download a codebook from a database

You can download codebooks from an existing database by calling the following Endpoints:

CODE
GET /api/v2/projects/{db_hash}/api/codebook/export

This one will download an optimized version of the codebook. DataTile will try to detect naming patterns in the database schema and generate an optimized codebook with ARR notation.

PY
GET /api/v2/projects/{db_hash}/api/codebook/export-lab

Upload a codebook to a database

POST an Excel file as mime/multipart to the following endpoint

CODE
POST /api/v2/projects/{projectId}/api/codebook/import
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.