Object Types
Object Type Properties
Examples
GET /objects/5951719d514ef101000216cf{
"_id": "5951719d514ef101000216cf",
"access": 7,
"allowConnections": true,
"allowTransfers": true,
"connectionOptions": {
"requireAccept": true,
"requiredAccess": 5,
"sendNotifications": true
},
"createAcl": [
{
"_id": "5951719dfc65ed0100e62068",
"allow": 1,
"target": "000000000000000000000003",
"type": 1
}
],
"created": "2017-06-26T20:42:05.183Z",
"creator": {
"_id": "5771495a1d0c03a53ce83f1a",
"object": "account",
"path": "/accounts/5771495a1d0c03a53ce83f1a"
},
"defaultAcl": [
{
"_id": "5951719dfc65ed0100e62069",
"allow": 7,
"target": null,
"type": 4
}
],
"favorite": false,
"feedDefinition": [],
"label": "Assessment",
"lookup": "5951719d514ef101000216cf",
"name": "c_assessment",
"object": "object",
"objectTypes": [],
"pluralName": "c_assessments",
"properties": [
{
"_id": "595171e811f6710100683480",
"acl": [],
"auditable": false,
"autoCreate": false,
"cascadeDelete": true,
"creatable": false,
"expandable": true,
"grant": 0,
"indexed": true,
"label": "Patient",
"name": "c_patient",
"optional": false,
"pacl": [],
"paths": [],
"readAccess": 4,
"readable": true,
"referenceAccess": 5,
"removable": false,
"sourceObject": "account",
"type": "Reference",
"unique": false,
"validators": [
{
"_id": "595171e811f6710100683481",
"name": "required"
}
],
"writable": true,
"writeAccess": 6
}
],
"shareChain": [
5,
4,
2
],
"updated": "2017-06-26T20:43:21.022Z",
"updater": {
"_id": "5771495a1d0c03a53ce83f1a",
"object": "account",
"path": "/accounts/5771495a1d0c03a53ce83f1a"
}
}POST /objects/5951719d514ef101000216cf/objectTypes{
"label":"Blood Test",
"name":"c_blood_test",
"properties": [
{
"label":"Blood Type",
"name":"c_blood_type",
"type": "String",
"validators": [
{
"name": "required"
}
]
}
]
}GET /objects/5951719d514ef101000216cf/objectTypes{
"data": [
{
"_id": "5951751611f6710100683fdc",
"label": "Blood Test",
"name": "c_blood_test",
"properties": [
{
"_id": "5951751611f6710100683fdd",
"acl": [],
"array": false,
"auditable": false,
"canPull": true,
"canPush": true,
"creatable": false,
"indexed": false,
"label": "Blood Type",
"lowercase": false,
"maxItems": 100,
"maxShift": false,
"minItems": 0,
"name": "c_blood_type",
"optional": false,
"readAccess": 4,
"readable": true,
"removable": false,
"trim": false,
"type": "String",
"unique": false,
"uniqueValues": false,
"uppercase": false,
"validators": [
{
"_id": "5951751611f6710100683fde",
"name": "required"
}
],
"writable": true,
"writeAccess": 6,
"writeOnCreate": true
}
]
}
],
"hasMore": false,
"object": "list"
}Last updated
Was this helpful?