Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Get Interface Type

GET/api/v2/ontologies/{ontology}/interfaceTypes/{interfaceType}
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Gets a specific interface 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.

interfaceType
string

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

Query parameters

preview
boolean
optional

A boolean flag that, when set to true, enables the use of beta features in preview mode.

Response body

InterfaceType
object

Success response.

Hide child attributes

Hide child attributes

rid
string

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

apiName
string

The name of the interface type in the API in UpperCamelCase format. To find the API name for your interface type, use the List interface types endpoint or check the Ontology Manager.

displayName
string

The display name of the entity.

description
string
optional

The description of the interface.

properties
map<SharedPropertyTypeApiName, SharedPropertyType>
optional

A map from a shared property type API name to the corresponding shared property type. The map describes the set of properties the interface has. A shared property type must be unique across all of the properties.

Show child attributes

Show child attributes

allProperties
map<SharedPropertyTypeApiName, SharedPropertyType>
optional

A map from a shared property type API name to the corresponding shared property type. The map describes the set of properties the interface has, including properties from all directly and indirectly extended interfaces.

Show child attributes

Show child attributes

extendsInterfaces
list<InterfaceTypeApiName>
optional

A list of interface API names that this interface extends. An interface can extend other interfaces to inherit their properties.

Show child attributes

Show child attributes

allExtendsInterfaces
list<InterfaceTypeApiName>
optional

A list of interface API names that this interface extends, both directly and indirectly.

Show child attributes

Show child attributes

implementedByObjectTypes
list<ObjectTypeApiName>
optional

A list of object API names that implement this interface.

Show child attributes

Show child attributes

links
map<InterfaceLinkTypeApiName, InterfaceLinkType>
optional

A map from an interface link type API name to the corresponding interface link type. The map describes the set of link types the interface has.

Show child attributes

Show child attributes

allLinks
map<InterfaceLinkTypeApiName, InterfaceLinkType>
optional

A map from an interface link type API name to the corresponding interface link type. The map describes the set of link types the interface has, including links from all directly and indirectly extended interfaces.

Show child attributes

Show child attributes

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/ontologies/palantir/interfaceTypes/Employee?preview=true"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 { "apiName": "Athlete", "displayName": "Athlete", "description": "Good at sportsball", "properties": { "name": { "rid": "com.palantir.property.d1abdbfe-0ce2-4fff-b0af-af21002c314b", "apiName": "name", "displayName": "Name", "dataType": "string" } }, "extendsInterfaces": [ "Human" ], "rid": "ri.ontology.main.interface.bea1af8c-7d5c-4ec9-b845-8eeed6d77482" }