---
title: "Poll to get results of model mapping validation"
method: GET
path: "/gdc/dataload/dataSources/{dataSourceId}/buildModelMapping/{taskId}"
tags: ["dwh-validate-mapping"]
---

# Poll to get results of model mapping validation

`GET /gdc/dataload/dataSources/{dataSourceId}/buildModelMapping/{taskId}`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/dataload/dataSources/{dataSourceId}/buildModelMapping/{taskId}`
- Auth: none declared

## Response `200`

OK - return generated model mapping

- ModelMapping
  - `modelMapping` object, required
    - `validMappings` Mapping[], required
      - `mapping` object, required
        - `source` string, required
        - `target` string, required
        - `type` 'upsert' | 'delete column' | 'delete table', required
        - `fields` Field[], required
          - `field` object, required
            - `source` FieldSource, required
              - …
            - `target` FieldTarget1, required
              - …
        - `systemFields` SystemField[], required
          - `field` object, required
            - `id` string, required
            - `type` 'discriminator' | 'timestamp' | 'delete', required
            - `dataType` string, required
    - `validationErrors` ValidationError[], required
      - `error` object, required
        - `errorCode` string, required
        - `message` string, required
        - `parameters` string[], required

## Other responses

- `202`: Accepted - return polling link if the task has not finished
- `404`: Not Found - if the task does not exist
- `410`: Gone

---

[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)
