Upload a knowledge file
POST
Upload one file (markdown, text, PDF, Word or HTML) or a zip of them, base64 in JSON, up to 10 MB. Each file is indexed now; one that can't be read comes back with its reason. Requires coding:knowledge:sync.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
coding_repository_id*stringFormat
uuidcustomer_id?|nullapplication/json- body
content_base64*stringLength
1 <= length <= 13981021name*stringLength
1 <= length <= 255Request fulfilled, document follows
application/json- response
files*array<>curl -X POST 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/knowledge/uploads' \ -H 'Content-Type: application/json' \ -d '{ "content_base64": "string", "name": "string"}'Example Response
{ "files": [ { "error": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "path": "string", "status": "string" } ]}