Search documentation
karat

+

K

User Documentation ↗

Get Object Type

GET/api/v1/ontologies/{ontologyRid}/objectTypes/{objectType}

Gets a specific object type with the given API name.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:ontologies-read.

Path parameters

ontologyRid
string

The unique Resource Identifier (RID) of the Ontology that contains the object type. To look up your Ontology RID, please use the List ontologies endpoint or check the Ontology Manager.

objectType
string

The API name of the object type. To find the API name, use the List object types endpoint or check the Ontology Manager.

Response body

ObjectType
object

Success response.

Hide child attributes

Hide child attributes

apiName
string

The name of the object type in the API in camelCase format. To find the API name for your Object Type, use the List object types endpoint or check the Ontology Manager.

displayName
string
optional

The display name of the entity.

status
string (enum)

The release status of the entity.

Enum values: ACTIVE, EXPERIMENTAL, DEPRECATED

description
string
optional

The description of the object type.

visibility
string (enum)
optional

The suggested visibility of the object type.

Enum values: NORMAL, PROMINENT, HIDDEN

primaryKey
list<PropertyApiName>
optional

The primary key of the object. This is a list of properties that can be used to uniquely identify the object.

Show child attributes

Show child attributes

PropertyApiName
string

The name of the property in the API. To find the API name for your property, use the Get object type endpoint or check the Ontology Manager.

properties
map<PropertyApiName, Property>
optional

A map of the properties of the object type.

Show child attributes

Show child attributes

PropertyApiName
string

The name of the property in the API. To find the API name for your property, use the Get object type endpoint or check the Ontology Manager.

Property
object

Details about some property of an object.

Show child attributes

Show child attributes

description
string
optional
displayName
string
optional

The display name of the entity.

baseType
string

A string indicating the type of each data value. Note that these types can be nested, for example an array of structs.

TypeJSON value
ArrayArray<T>, where T is the type of the array elements, e.g. Array<String>.
AttachmentAttachment
BooleanBoolean
ByteByte
DateLocalDate
DecimalDecimal
DoubleDouble
FloatFloat
IntegerInteger
LongLong
MarkingMarking
OntologyObjectOntologyObject<T> where T is the API name of the referenced object type.
ShortShort
StringString
StructStruct<T> where T contains field name and type pairs, e.g. Struct<{ firstName: String, lastName: string }>
TimeseriesTimeSeries<T> where T is either String for an enum series or Double for a numeric series.
TimestampTimestamp
rid
string

The unique resource identifier of an object type, useful for interacting with other Foundry APIs.

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v1/ontologies/ri.ontology.main.ontology.c61d9ab5-2919-4127-a0a1-ac64c0ce6367/objectTypes/employee"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 { "apiName": "employee", "description": "A full-time or part-time employee of our firm", "primaryKey": [ "employeeId" ], "properties": { "employeeId": { "baseType": "Integer" }, "fullName": { "baseType": "String" }, "office": { "description": "The unique ID of the employee's primary assigned office", "baseType": "String" }, "startDate": { "description": "The date the employee was hired (most recently, if they were re-hired)", "baseType": "Date" } }, "rid": "ri.ontology.main.object-type.0381eda6-69bb-4cb7-8ba0-c6158e094a04" }