Object Definition
Introduction
You can extend the API by creating new custom objects and extending the standard objects with custom properties, You can do this via the API if you have the Administrator or Developer roles, or via the admin UI. For details on how to create and extend objects using the admin UI, see Data Model Setup.
At every level, custom objects and properties are prefixed with c_
to differentiate them from standard properties that may be placed alongside in a document. For example, retrieving a custom property from a custom object might look like GET /c_records/551ebec0f6b25fd828742de1/c_info
Although a standard object's standard properties cannot be modified, custom properties can be added to extensible standard object classes.
Also some of the standard object’s properties can either be overridden or extended, including the createAcl
, defaultAcl
and shareAcl
.
Object Definition
_id ObjectId
The object definition identifier.
label String
The object label.
name String
The object name.
pluralName String
Based on the name, this is the name used in API routes. For example, to retrieve a list of c_thing
objects, use GET /c_things
description String
The object description.
defaultAcl Document
All contexts objects of this type will have this ACL merged with their instance ACL.
createAcl Document
These ACL targets are able to create context objects of this type.
shareAcl Document
These ACL targets are able to share context objects of this type. The entries defined which access levels and roles can be assigned by which targets.
shareChain Number
A caller can create a connection granting any level of access in the share chain, as long as it is less than his own.
allowTransfers Boolean
Allow ownership transfer for this context's objects.
allowConnections Boolean
Set to enable/disable sharing of contexts for this object.
connectionOptions Document
Options around connection requests, such as whether to auto-accept and send-notification.
properties Document Array
All of the properties defined in this object class.
object String
The context’s object name.
objectTypes Array
The object's types. For more info, see Object Types.
hasETag Boolean
If true, an ETag
property is made available and is (re)generated on an instance whenever it is updated.
List
GET
https://api.dev.medable.com/your_org_name/v2/objects
Path Parameters
your_org_name
string
Read
GET
https://api.dev.medable.com/your_org_name/v2/objects/object_id
Path Parameters
your_org_name
string
object_id
string
Create
POST
https://api.dev.medable.com/your_org_name/v2/objects
Path Parameters
your_org_name
string
Request Body
label
string
name
string
description
string
defaultAcl
string
json
createAcl
string
json
shareChain
array
array of integers
allowConnections
boolean
connectionOptions
string
json
properties
array
array of objects
objectTypes
array
array of objects
Update
PUT
https://api.dev.medable.com/your_org_name/v2/objects/object_id
Path Parameters
your_org_name
string
object_id
string
Request Body
label
string
name
string
description
string
defaultAcl
string
json
createAcl
string
json
shareChain
array
array of integers
allowConnections
boolean
connectionOptions
string
json
properties
array
array of objects
objectTypes
array
array of objects
Delete
DELETE
https://api.dev.medable.com/your_org_name/v2/objects/object_class_id
Path Parameters
your_org_name
string
object_class_id
string
Last updated