v1

latestOpenAPI 3.1.02026-07-1381127211.1 KB
Projects

Add Context Doc Endpoint

Add a context document (file already uploaded to GCS, or pasted text).

post/v2/projects/{project_type}/{project_id}/context

Path parameters

project_idstring required

Project ID

Project ID

project_typestring required

Project type

Project type

Request body

idstring required

doc_id from upload-url endpoint (file) or client-generated UUID

namestring nullable
objectivestring
source_type'file' | 'pasted' required
filenamestring nullable
contentstring nullable

Response

Successful Response

{"stackTrail":"paths:/v2/projects/{project_type}/{project_id}/context:post:responses:201:content:application/json:schema","oasType":"schema","type":"unknown"}