Required capabilities:
dataModelsAcl:WRITE
Add or update (upsert) views. For unchanged view specifications, the operation completes without making any changes. We will not update the lastUpdatedTime value for views that remain unchanged.
Views to add or update.
required | Array of View (object) or Record View (object) [ 1 .. 100 ] items List of views to create/update |
List of views
The response for a failed request.
View conflict
{- "items": [
- {
- "externalId": "string",
- "space": "string",
- "name": "string",
- "description": "string",
- "version": "string",
- "implements": [
- {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
], - "filter": {
- "and": [
- {
- "in": {
- "property": [
- "tag"
], - "values": [
- 10011,
- 10011
]
}
}, - {
- "range": {
- "property": [
- "weight"
], - "gte": 0
}
}
]
}, - "properties": {
- "property-identifier1": {
- "name": "string",
- "description": "string",
- "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string",
- "source": {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
}, - "property-identifier2": {
- "name": "string",
- "description": "string",
- "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string",
- "source": {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
}
}
}
]
}{- "items": [
- {
- "externalId": "string",
- "space": "string",
- "name": "string",
- "description": "string",
- "version": "string",
- "implements": [
- {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
], - "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "writable": true,
- "queryable": true,
- "filter": {
- "and": [
- {
- "in": {
- "property": [
- "tag"
], - "values": [
- 10011,
- 10011
]
}
}, - {
- "range": {
- "property": [
- "weight"
], - "gte": 0
}
}
]
}, - "usedFor": "node",
- "isGlobal": true,
- "properties": {
- "view-property-identifier1": {
- "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"
}, - "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string"
}, - "view-property-identifier2": {
- "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"
}, - "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string"
}
}, - "mappedContainers": [
- {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
]
}
]
}Required capabilities:
dataModelsAcl:READ
List of views defined in the current project. You can filter the list by specifying a space.
List of views
The response for a failed request.
view_list = client.data_modeling.views.list(limit=5) for view in client.data_modeling.views: view # do something with the view for view_list in client.data_modeling.views(chunk_size=10): view_list # do something with the views
{- "items": [
- {
- "externalId": "string",
- "space": "string",
- "name": "string",
- "description": "string",
- "version": "string",
- "implements": [
- {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
], - "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "writable": true,
- "queryable": true,
- "filter": {
- "and": [
- {
- "in": {
- "property": [
- "tag"
], - "values": [
- 10011,
- 10011
]
}
}, - {
- "range": {
- "property": [
- "weight"
], - "gte": 0
}
}
]
}, - "usedFor": "node",
- "isGlobal": true,
- "properties": {
- "view-property-identifier1": {
- "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"
}, - "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string"
}, - "view-property-identifier2": {
- "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"
}, - "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string"
}
}, - "mappedContainers": [
- {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
]
}
], - "nextCursor": "string"
}Required capabilities:
dataModelsAcl:READ
Retrieve up to 100 views by their external ids.
List of views
The response for a failed request.
{- "items": [
- {
- "externalId": "string",
- "space": "string",
- "version": "string"
}
]
}{- "items": [
- {
- "externalId": "string",
- "space": "string",
- "name": "string",
- "description": "string",
- "version": "string",
- "implements": [
- {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
], - "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "writable": true,
- "queryable": true,
- "filter": {
- "and": [
- {
- "in": {
- "property": [
- "tag"
], - "values": [
- 10011,
- 10011
]
}
}, - {
- "range": {
- "property": [
- "weight"
], - "gte": 0
}
}
]
}, - "usedFor": "node",
- "isGlobal": true,
- "properties": {
- "view-property-identifier1": {
- "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"
}, - "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string"
}, - "view-property-identifier2": {
- "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"
}, - "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string"
}
}, - "mappedContainers": [
- {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
]
}
]
}Required capabilities:
dataModelsAcl:WRITE
Delete one or more views. Currently limited to 100 views at a time.
List of references to views you want to delete.
required | Array of objects [ 1 .. 100 ] items |
Items affected by the request
The response for a failed request.
{- "items": [
- {
- "externalId": "string",
- "space": "string",
- "version": "string"
}
]
}{- "items": [
- {
- "externalId": "string",
- "space": "string",
- "version": "string"
}
]
}