Gets up to 1000 COMOS objects with given fields and specification information.
POST {{baseUrl}}/public/api/projects/v1/dbs/:dbid/projects/:projid/objects/actions/bulk/read?fields=<string>&nested_names=<string>&recursion_depth=<integer>&overlayid=<string>&lcid=<string>
- "
- Default set of fields for the object.
- Full set of fields for the object.
- field1,field2" - Valid set of fields seperated by comma for the object. ex. Name,Description,...,etc
nestednames and recursiondepth are applicable for 'Specifications' field which needs to be explicitly passed or will be available with '
Fields supported by Objects based on the object type:
nestednames include the specification nested names. These can include the hierarchical child specifications as well. recursiondepth can have the following values:
- -1 : will fetch all the specification children until the maximum depth.
- 0 (default) : will fetch immediate object specifications.
- 2/3/4...etc : will fetch all the specification children until the specified recursion depth.
Object Type | Default Fields | All Fields |
CDevice | Name,Description,FullLabel,SystemType,UID,SystemUID,Class,XObjExist | Name,FullName,Description,Label,FullLabel,SystemType,Owner,UID,SystemUID,SystemTemporary,XObjExist,Class,DetailClass,OwnLabel,Specifications |
Device | Name,Description,FullLabel,SystemType,UID,SystemUID,Location,Unit | Name,FullName,Description,Label,FullLabel,SystemType,Owner,UID,SystemUID,SystemTemporary,XObjExist,Class,DetailClass,CDevice,BackPointerDocObjs,Documents,Devices,Location,Unit,Implementation,BackPointerDevicesWithImplementation,OwnLabel,Specifications |
Document | Name,Description,Description2,Description3,FullLabel,SystemType,UID,SystemUID,OrgDocument,Location,Unit,DocumentType | Name,FullName,Description,Label,FullLabel,SystemType,Owner,UID,SystemUID,SystemTemporary,XObjExist,OrgDocument,Location,Unit,DocumentType,BackPointerDocumentsWithOrgDocument,IsDdmDocument,IsDocumentExportable,DocumentExtension,DocumentHasReleaseRevision,OwnLabel,Documents,Devices,Specifications,CObject |
DocObj | Name,Description,FullLabel,SystemType,UID,SystemUID,Reference,Reference2 | Name,FullName,Description,Label,FullLabel,SystemType,Owner,UID,SystemUID,SystemTemporary,XObjExist,Reference,Reference2 |
Other Types | Name,Description,FullLabel,SystemType,UID,SystemUID | Name,FullName,Description,Label,FullLabel,SystemType,Owner,UID,SystemUID,SystemTemporary,XObjExist,Specifications |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
fields | string | Fields to reduce the retrieved properties to | |
nested_names | string | Specification nested names that should be returned additionally to the fields | |
recursion_depth | string | Specifications children to be fetch until what depth. | |
overlayid | string | Working Overlay Id | |
lcid | string | Language Id |
Request Body
[{"name"=>"UID", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"UID", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Comos-API-Session | string | (Required) Comos SessionId that needs to be passed with every request except Login | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{}