> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Data Product

> Create a new data product within a domain

# Create a Data Product

Create a new data product within a domain.

## Body Parameters

**name** `string` *required*

Name of the data product. Must be unique across all data products.

**domains** `array` *required*

Fully qualified names of the parent domains, for example `["Marketing"]`.

**displayName** `string`

Human-readable display name for the data product.

**description** `string`

Description of the data product in Markdown format.

**owners** `array`

Array of owner references (users or teams) to assign to the data product.

**properties**

**id** `string`

UUID of the owner entity.

**type** `string`

Type of owner entity, for example `user`, `team`.

**name** `string`

Name of the owner entity.

**experts** `array`

Array of user references who are subject matter experts.

**properties**

**id** `string`

UUID of the user.

**type** `string`

Type of entity (always `user`).

**name** `string`

Name of the user.

```python POST /v1/dataProducts theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import DataProducts

configure(
    host="https://your-company.open-metadata.org/api",
    jwt_token="your-jwt-token"
)

request = {
    "name": "CustomerInsights",
    "displayName": "Customer Insights",
    "domains": ["Marketing"],
    "description": "Curated customer analytics data product"
}

data_product = DataProducts.create(request)
print(f"Created: {data_product.fullyQualifiedName.root}")
```

```java POST /v1/dataProducts theme={null}
import java.util.List;
import org.openmetadata.schema.api.domains.CreateDataProduct;

// client is an initialized OpenMetadataClient.
var request = new CreateDataProduct()
    .withName("CustomerInsights")
    .withDisplayName("Customer Insights")
    .withDomains(List.of("Marketing"))
    .withDescription("Curated customer analytics data product");

var dataProduct = client.dataProducts().create(request);
```

```bash POST /v1/dataProducts theme={null}
curl -X POST "{base_url}/api/v1/dataProducts" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "CustomerInsights",
    "domains": ["Marketing"],
    "description": "Curated customer analytics data product",
    "owners": [],
    "experts": []
  }'
```

```json Response theme={null}
{
  "id": "b1839f98-f046-5f35-bdef-20f9b3395cb2",
  "name": "CustomerInsights",
  "fullyQualifiedName": "CustomerInsights",
  "displayName": "Customer Insights",
  "description": "Curated customer analytics data product",
  "version": 0.1,
  "updatedAt": 1769984330261,
  "updatedBy": "admin",
  "href": "http://localhost:8585/api/v1/dataProducts/b1839f98-f046-5f35-bdef-20f9b3395cb2",
  "domains": [
    {
      "id": "a0729e98-e946-4e25-acde-10e8a2294ba1",
      "type": "domain",
      "name": "Marketing",
      "fullyQualifiedName": "Marketing",
      "deleted": false
    }
  ],
  "deleted": false,
  "owners": [],
  "experts": []
}
```

***

## Returns

Returns the created data product object with all specified properties and system-generated fields.

## Response

**id** `string`

Unique identifier for the data product (UUID format).

**name** `string`

Data product name.

**fullyQualifiedName** `string`

Fully qualified name of the data product. This is the data product name.

**displayName** `string`

Human-readable display name.

**description** `string`

Description of the data product in Markdown format.

**domains** `array`

References to the parent domains.

**properties**

**id** `string`

UUID of the domain.

**type** `string`

Type of entity (always `domain`).

**name** `string`

Name of the domain.

**fullyQualifiedName** `string`

Fully qualified name of the domain.

**owners** `array`

List of owners assigned to the data product.

**experts** `array`

Subject matter experts for the data product.

**version** `number`

Version number for the entity (starts at 0.1).

***

## Create or Update (PUT)

Use `PUT /v1/dataProducts` instead of `POST` to perform an upsert. If a data product with the same `fullyQualifiedName` already exists, it will be updated; otherwise, a new data product is created. The request body is the same as `POST`.

```bash theme={null}
curl -X PUT "{base_url}/api/v1/dataProducts" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{ ... same body as POST ... }'
```

> [!NOTE]
>
> `PUT` will not return a `409` conflict error if the entity already exists -- it will update the existing entity instead.

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `400` | `BAD_REQUEST` | Invalid request body or missing required fields |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to create data products |
| `409` | `ENTITY_ALREADY_EXISTS` | Data product with the same name already exists (POST only) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.