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"
}
}
}
]
}