Skip to main content
POST
/
models
/
datamodels
Python SDK
from cognite.client.data_classes.data_modeling import DataModelApply
data_models = [
    DataModelApply(space="mySpace",external_id="myDataModel",version="v1"),
    DataModelApply(space="mySpace",external_id="myOtherDataModel",version="v1")]
res = client.data_modeling.data_models.apply(data_models)
{
  "items": [
    {
      "space": "<string>",
      "externalId": "<string>",
      "version": "<string>",
      "createdTime": 1730204346000,
      "lastUpdatedTime": 1730204346000,
      "isGlobal": true,
      "name": "<string>",
      "description": "<string>",
      "views": [
        {
          "type": "view",
          "space": "<string>",
          "externalId": "<string>",
          "version": "<string>"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Body

application/json

List of data models to add

items
object[]
required

List of data models to create/update

Required array length: 1 - 100 elements

Response

List of data models

items
object[]
required

List of data models

Last modified on April 23, 2026