Required capabilities:
dataModelsAcl:WRITE
Add or update (upsert) containers. For unchanged container specifications, the operation completes without making any changes. We will not update the lastUpdatedTime value for containers that remain unchanged.
Containers to add or update.
required | Array of Instance Container (object) or Record Container (object) (ContainerCreateDefinition) [ 1 .. 100 ] items List of containers to create/update |
List of containers
The response for a failed request.
View conflict
{- "items": [
- {
- "space": "string",
- "externalId": "string",
- "name": "string",
- "description": "string",
- "usedFor": "node",
- "properties": {
- "containerPropertyIdentifier1": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "type": {
- "type": "text",
- "list": false,
- "maxListSize": 0,
- "maxTextSize": 0,
- "collation": "ucs_basic"
}
}, - "containerPropertyIdentifier2": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "type": {
- "type": "text",
- "list": false,
- "maxListSize": 0,
- "maxTextSize": 0,
- "collation": "ucs_basic"
}
}
}, - "constraints": {
- "constraint-identifier1": {
- "constraintType": "requires",
- "require": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
}, - "constraint-identifier2": {
- "constraintType": "requires",
- "require": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
}
}, - "indexes": {
- "index-identifier1": {
- "properties": [
- "string"
], - "indexType": "btree",
- "cursorable": false,
- "bySpace": false
}, - "index-identifier2": {
- "properties": [
- "string"
], - "indexType": "btree",
- "cursorable": false,
- "bySpace": false
}
}
}
]
}{- "items": [
- {
- "space": "string",
- "externalId": "string",
- "name": "string",
- "description": "string",
- "usedFor": "node",
- "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "isGlobal": true,
- "properties": {
- "containerPropertyIdentifier1": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "constraintState": {
- "nullability": "current",
- "maxListSize": "current",
- "maxTextSize": "current"
}, - "type": {
- "type": "text",
- "list": false,
- "maxListSize": 0,
- "maxTextSize": 0,
- "collation": "ucs_basic"
}
}, - "containerPropertyIdentifier2": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "constraintState": {
- "nullability": "current",
- "maxListSize": "current",
- "maxTextSize": "current"
}, - "type": {
- "type": "text",
- "list": false,
- "maxListSize": 0,
- "maxTextSize": 0,
- "collation": "ucs_basic"
}
}
}, - "constraints": {
- "constraint-identifier1": {
- "state": "current",
- "constraintType": "requires",
- "require": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
}, - "constraint-identifier2": {
- "state": "current",
- "constraintType": "requires",
- "require": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
}
}, - "indexes": {
- "index-identifier1": {
- "properties": [
- "string"
], - "indexType": "btree",
- "cursorable": false,
- "bySpace": false,
- "state": "current"
}, - "index-identifier2": {
- "properties": [
- "string"
], - "indexType": "btree",
- "cursorable": false,
- "bySpace": false,
- "state": "current"
}
}
}
]
}Required capabilities:
dataModelsAcl:READ
List of containers defined in the current project. You can filter the list by specifying a space.
List of containers
The response for a failed request.
container_list = client.data_modeling.containers.list(limit=5) for container in client.data_modeling.containers: container # do something with the container for container_list in client.data_modeling.containers(chunk_size=10): container_list # do something with the containers
{- "items": [
- {
- "space": "string",
- "externalId": "string",
- "name": "string",
- "description": "string",
- "usedFor": "node",
- "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "isGlobal": true,
- "properties": {
- "containerPropertyIdentifier1": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "constraintState": {
- "nullability": "current",
- "maxListSize": "current",
- "maxTextSize": "current"
}, - "type": {
- "type": "text",
- "list": false,
- "maxListSize": 0,
- "maxTextSize": 0,
- "collation": "ucs_basic"
}
}, - "containerPropertyIdentifier2": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "constraintState": {
- "nullability": "current",
- "maxListSize": "current",
- "maxTextSize": "current"
}, - "type": {
- "type": "text",
- "list": false,
- "maxListSize": 0,
- "maxTextSize": 0,
- "collation": "ucs_basic"
}
}
}, - "constraints": {
- "constraint-identifier1": {
- "state": "current",
- "constraintType": "requires",
- "require": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
}, - "constraint-identifier2": {
- "state": "current",
- "constraintType": "requires",
- "require": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
}
}, - "indexes": {
- "index-identifier1": {
- "properties": [
- "string"
], - "indexType": "btree",
- "cursorable": false,
- "bySpace": false,
- "state": "current"
}, - "index-identifier2": {
- "properties": [
- "string"
], - "indexType": "btree",
- "cursorable": false,
- "bySpace": false,
- "state": "current"
}
}
}
], - "nextCursor": "string"
}Required capabilities:
dataModelsAcl:READ
Retrieve up to 100 containers by their specified external ids.
List of external-ids of containers to retrieve.
required | Array of objects [ 1 .. 100 ] items |
List of containers
The response for a failed request.
{- "items": [
- {
- "externalId": "string",
- "space": "string"
}
]
}{- "items": [
- {
- "space": "string",
- "externalId": "string",
- "name": "string",
- "description": "string",
- "usedFor": "node",
- "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "isGlobal": true,
- "properties": {
- "containerPropertyIdentifier1": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "constraintState": {
- "nullability": "current",
- "maxListSize": "current",
- "maxTextSize": "current"
}, - "type": {
- "type": "text",
- "list": false,
- "maxListSize": 0,
- "maxTextSize": 0,
- "collation": "ucs_basic"
}
}, - "containerPropertyIdentifier2": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "constraintState": {
- "nullability": "current",
- "maxListSize": "current",
- "maxTextSize": "current"
}, - "type": {
- "type": "text",
- "list": false,
- "maxListSize": 0,
- "maxTextSize": 0,
- "collation": "ucs_basic"
}
}
}, - "constraints": {
- "constraint-identifier1": {
- "state": "current",
- "constraintType": "requires",
- "require": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
}, - "constraint-identifier2": {
- "state": "current",
- "constraintType": "requires",
- "require": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
}
}, - "indexes": {
- "index-identifier1": {
- "properties": [
- "string"
], - "indexType": "btree",
- "cursorable": false,
- "bySpace": false,
- "state": "current"
}, - "index-identifier2": {
- "properties": [
- "string"
], - "indexType": "btree",
- "cursorable": false,
- "bySpace": false,
- "state": "current"
}
}
}
]
}Required capabilities:
dataModelsAcl:WRITE
Delete one or more containers. Currently limited to 100 containers at a time.
List of spaces and external-ids for the containers you want to delete.
required | Array of objects [ 1 .. 100 ] items |
List of External id(s) for the affected items
The response for a failed request.
{- "items": [
- {
- "externalId": "string",
- "space": "string"
}
]
}{- "items": [
- {
- "externalId": "string",
- "space": "string"
}
]
}Required capabilities:
dataModelsAcl:WRITE
Delete one or more container indexes. Currently limited to 10 indexes at a time.
List of references to the indexes you want to delete.
required | Array of objects (ContainerSubObjectIdentifier) [ 1 .. 10 ] items |
List of External id(s) for the affected items
The response for a failed request.
{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}Required capabilities:
dataModelsAcl:WRITE
Triggers a retry of the given failed container indexes. This will usually entail scanning through all the data in the container, so use this sparingly. There are strict limits as to how often a given index can be retried, and how many schema entities can be in a retrying state simultaneously.
List of references to the indexes you want to retry.
required | Array of objects (ContainerSubObjectIdentifier) [ 1 .. 10 ] items |
List of External id(s) for the affected items
The response for a failed request.
{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}Required capabilities:
dataModelsAcl:WRITE
Delete one or more container constraints. Currently limited to 10 constraints at a time.
List of references to the constraints you want to delete.
required | Array of objects (ContainerSubObjectIdentifier) [ 1 .. 10 ] items |
List of External id(s) for the affected items
The response for a failed request.
{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}Required capabilities:
dataModelsAcl:WRITE
Triggers a revalidation of the given failed container constraints. This will usually entail scanning through all the data in the container, so use this sparingly. There are strict limits as to how often a given constraint can be revalidated, and how many schema entities can be in a retrying state simultaneously.
List of references to the constraints you want to retry.
required | Array of objects (ContainerSubObjectIdentifier) [ 1 .. 10 ] items |
List of External id(s) for the affected items
The response for a failed request.
{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}Required capabilities:
dataModelsAcl:WRITE
Triggers a revalidation of failed constraints on the given properties. This includes nullable, maxListSize and maxTextSize. Revalidation usually entails scanning through all the data in the container, so use this sparingly. There are strict limits as to how often a given property can be revalidated, and how many schema entities can be in a retrying simultaneously.
List of references to properties with property-level constraints that you want to retry.
required | Array of objects (ContainerSubObjectIdentifier) [ 1 .. 10 ] items |
List of External id(s) for the affected items
The response for a failed request.
{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}{- "items": [
- {
- "space": "string",
- "containerExternalId": "string",
- "identifier": "string"
}
]
}Required capabilities:
dataModelsAcl:READ
Which containers to inspect and the inspection operations to run.
required | object |
required | Array of objects [ 1 .. 10 ] items |
Containers along with the results of the inspection operations
The response for a failed request.
{- "inspectionOperations": {
- "involvedViews": {
- "allVersions": false
}, - "totalInvolvedViewCount": {
- "allVersions": false,
- "includeUnavailableViews": true
}
}, - "items": [
- {
- "space": "string",
- "externalId": "string"
}
]
}{- "items": [
- {
- "externalId": "string",
- "space": "string",
- "inspectionResults": {
- "involvedViewCount": 0,
- "involvedViews": [
- {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
]
}
}
]
}