Search documentation
karat

+

K

User Documentation ↗

Get Object Type

GET/api/v2/ontologies/{ontology}/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

ontology
string

The API name of the ontology. To find the API name, 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

ObjectTypeV2
object

Success response.

Hide children

Hide children

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

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.

pluralDisplayName
string

The plural display name of the object type.

icon
union

A union currently only consisting of the BlueprintIcon (more icon types may be added in the future).

Show children

Show children

blueprint
object
optional
Show children

Show children

color
string

A hexadecimal color code.

name
string

The name of the Blueprint icon. Used to specify the Blueprint icon to represent the object type in a React app.

primaryKey
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, PropertyV2>
optional

A map of the properties of the object type.

Show children

Show children

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.

PropertyV2
object

Details about some property of an object.

Show children

Show children

description
string
optional
displayName
string
optional

The display name of the entity.

dataType
union

A union of all the types supported by Ontology Object properties.

Show children

Show children

date
object
optional
string
object
optional
byte
object
optional
double
object
optional
geopoint
object
optional
geotimeSeriesReference
object
optional
integer
object
optional
float
object
optional
geoshape
object
optional
long
object
optional
boolean
object
optional
marking
object
optional
attachment
object
optional
timeseries
object
optional
Show children

Show children

itemType
union

A union of the types supported by time series properties.

Show children

Show children

string
object
optional
double
object
optional
array
object
optional
Show children

Show children

subType
union

A union of all the types supported by Ontology Object properties.

Show children

Show children

date
object
optional
string
object
optional
byte
object
optional
double
object
optional
geopoint
object
optional
geotimeSeriesReference
object
optional
integer
object
optional
float
object
optional
geoshape
object
optional
long
object
optional
boolean
object
optional
marking
object
optional
attachment
object
optional
timeseries
object
optional
Show children

Show children

itemType
union

A union of the types supported by time series properties.

Show children

Show children

string
object
optional
double
object
optional
array
object
optional
Show children

Show children

subType
union

A union of all the types supported by Ontology Object properties.

short
object
optional
decimal
object
optional
Show children

Show children

precision
integer
optional
scale
integer
optional
timestamp
object
optional
short
object
optional
decimal
object
optional
Show children

Show children

precision
integer
optional
scale
integer
optional
timestamp
object
optional
rid
string

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

titleProperty
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.

visibility
string (enum)
optional

The suggested visibility of the object type.

Enum values: NORMAL, PROMINENT, HIDDEN

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/ontologies/palantir/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 25 26 27 28 29 30 31 32 { "apiName": "employee", "description": "A full-time or part-time employee of our firm", "displayName": "Employee", "status": "ACTIVE", "primaryKey": "employeeId", "properties": { "employeeId": { "dataType": { "type": "integer" } }, "fullName": { "dataType": { "type": "string" } }, "office": { "description": "The unique ID of the employee's primary assigned office", "dataType": { "type": "string" } }, "startDate": { "description": "The date the employee was hired (most recently, if they were re-hired)", "dataType": { "type": "date" } } }, "rid": "ri.ontology.main.object-type.0381eda6-69bb-4cb7-8ba0-c6158e094a04" }