Datasets

Upload context-scoped dataset file

Changed on

Upload a dataset file scoped to a context value. This file will be shared with all users who have this context value. Requires User Context to be enabled and contextKey to be defined in the schema.

post/agents/{agentId}/datasets/context/{contextKey}/{contextValue}

Request

Path parameters

agentIdstring required

The unique identifier of the agent

contextKeystring required

The context key (e.g., "orgId", "teamId")

contextValuestring required

The context value

Request body multipart/form-data

filestring binary required

The file to upload (CSV or JSON, max 10MB)

notesstring

Optional notes or description for the dataset

Response

File uploaded successfully

errorstring

Changes