Add Data

Add data to the graph.

Request

This endpoint expects an object.
datastringRequired
typeenumRequired
Allowed values:
created_atstringOptional
graph_idstringOptional

graph_id is the ID of the graph to which the data will be added. If adding to the user graph, please use user_id field instead.

source_descriptionstringOptional<=500 characters
user_idstringOptional

User ID is the ID of the user to which the data will be added. If not adding to a user graph, please use graph_id field instead.

Response

Added episode
contentstring
created_atstring
uuidstring
processedboolean or null
rolestring or null
Optional role, will only be present if the episode was created using memory.add API
role_typeenum or null

Optional role_type, will only be present if the episode was created using memory.add API

scoredouble or null
session_idstring or null
sourceenum or null
Allowed values:
source_descriptionstring or null

Errors