---
title: "Generate model from Csv"
method: POST
path: "/gdc/dataload/internal/projects/{projectId}/csv/generateModel"
---

# Generate model from Csv

`POST /gdc/dataload/internal/projects/{projectId}/csv/generateModel`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/dataload/internal/projects/{projectId}/csv/generateModel`
- Auth: none declared

## Request body

- CsvModelGenerator
  - `csvModelGenerator` object, required
    - `location` object, required
      - `staging` object, required
        - `compression` boolean, required
        - `originalName` string, required
        - `url` string, required

## Response `202`

Accepted - generate model from CSV

- NewAsyncTask: New taskman async task used in all new API resources. It contains `links` element in plural which complies with our API rules.
  - `asyncTask` object, required
    - `links` AsyncTaskPollLink, required
      - `poll` string, uri, required: URI of the polling resource

## Other responses

- `400`: Bad Request
- `403`: Forbidden - if current user is not the owner of the project
- `404`: Not Found
- `500`: Internal Server Error

---

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