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 objects (ViewCreateDefinition) [ 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",
- "filter": {
- "and": [
- {
- "in": {
- "property": [
- "tag"
], - "values": [
- 10011,
- 10011
]
}
}, - {
- "range": {
- "property": [
- "weight"
], - "gte": 0
}
}
]
}, - "implements": [
- {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
], - "version": "string",
- "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",
- "filter": {
- "and": [
- {
- "in": {
- "property": [
- "tag"
], - "values": [
- 10011,
- 10011
]
}
}, - {
- "range": {
- "property": [
- "weight"
], - "gte": 0
}
}
]
}, - "implements": [
- {
- "type": "view",
- "space": "string",
- "externalId": "string",
- "version": "string"
}
], - "version": "string",
- "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "writable": true,
- "queryable": true,
- "usedFor": "node",
- "isGlobal": true,
- "properties": {
- "view-property-identifier1": {
- "immutable": false,
- "nullable": true,
- "autoIncrement": false,
- "defaultValue": "string",
- "description": "string",
- "name": "string",
- "type": {
- "type": "text",
- "list": false,
- "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",
- "type": {
- "type": "text",
- "list": false,
- "collation": "ucs_basic"
}, - "container": {
- "type": "container",
- "space": "string",
- "externalId": "string"
}, - "containerPropertyIdentifier": "string"
}
}, - "mappedContainers": [
- {
- "type": "container",
- "space": "string",
- "externalId": "string"
}
]
}
]
}