Set graph ontology

Sets custom entity and edge types for your graph. This wrapper method provides a clean interface for defining your graph schema with custom entity and edge types.

See the full documentation for details.

Authentication

AuthorizationApi-Key

Header authentication of the form Api-Key <token>

Request

This endpoint expects an object.
entitiesmap from strings to anyOptional
Dictionary mapping entity type names to their definitions
edgesmap from strings to anyOptional

Dictionary mapping edge type names to their definitions with source/target constraints

user_idslist of stringsOptional
Optional list of user IDs to apply ontology to
graph_idslist of stringsOptional
Optional list of graph IDs to apply ontology to

Response

Ontology set successfully
messagestring or null