---
title: "Import partial metadata"
method: POST
path: "/gdc/md/{project_id}/maintenance/partialmdimport"
tags: ["project-maintenance-navigation"]
---

# Import partial metadata

`POST /gdc/md/{project_id}/maintenance/partialmdimport`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/md/{project_id}/maintenance/partialmdimport`
- Auth: none declared

**Request body parameters**

* `token` (string) specifies the token for the project that you want to import. This token is created during export of partial metadata.

* `overwriteNewer` (boolean, optional) specifies whether imported objects should overwrite newer versions of those objects in the target project (`1`) or not (`0`; default).

* `updateLDMObjects` (boolean, optional) specifies whether to update logical data model objects (`1`) or not (`0`; default).

* `importAttributeProperties` (boolean, optional) specifies whether to import drill-down attribute settings and label types from the partial export (`1`) or not (`0`; default).

* `preserve` (string, optional) preserves the values of variables in the target project.
     * `all` specifies that all variables in the target project will be preserved.
     * `none` specifies that no variables in the target project will be preserved. The variables in the target project will be overwritten by the master variables.
     * `exact` specifies that only a specific set of variables in the target project will be preserved. Specify the variables to preserve in the `exactPrompts` parameter.

* `exactPrompts` (only when `preserve` is set to `exact`) specifies an array of identifiers of the variables to be preserved.

## Path parameters

- `project_id` string, required

## Request body

- PartialMDImport
  - `partialMDImport` object, required: Configuration structure for project exporting resource
    - `token` string, required
    - `overwriteNewer` union, required
      - '0' | '1': overwrite UDM/ADM objects without checking modification time
      - 0 | 1: overwrite UDM/ADM objects without checking modification time
      - boolean: overwrite UDM/ADM objects without checking modification time
    - `updateLDMObjects` union, required
      - '0' | '1': overwrite related LDM objects name, description and tags, default false
      - 0 | 1: overwrite related LDM objects name, description and tags, default false
      - boolean: overwrite related LDM objects name, description and tags, default false
    - `importAttributeProperties` union
      - '0' | '1': (default false) clone following attribute properties: * for attribute - import drillDownStepAttributeDF setting * for attributeDisplayForm - import type setting it also implies 'updateLDMObjects = true' for all mentioned types; it will not reliably work (can fail) for exports without 'exportAttributeProperties = true'
      - 0 | 1: (default false) clone following attribute properties: * for attribute - import drillDownStepAttributeDF setting * for attributeDisplayForm - import type setting it also implies 'updateLDMObjects = true' for all mentioned types; it will not reliably work (can fail) for exports without 'exportAttributeProperties = true'
      - boolean: (default false) clone following attribute properties: * for attribute - import drillDownStepAttributeDF setting * for attributeDisplayForm - import type setting it also implies 'updateLDMObjects = true' for all mentioned types; it will not reliably work (can fail) for exports without 'exportAttributeProperties = true'
    - `variables` MDImportVariables
      - `preserve` 'all' | 'none' | 'exact', required: which variables to preserve (not overwrite) in the target project
      - `exactPrompts` string[]

## Response `200`

_

- Uri: URI containing mandatory root key
  - `uri` string, uri, required

---

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