Syndai Docs

Import memory notes

POST
/api/v1/external/coding/repos/{coding_repository_id}/notes/import

Save lines the person reviewed and kept (syndai memory import) as notes: you (their own), all (every project of the workspace) or project. Each goes through the note gates; a secret, card or ID number is refused, an existing note is duplicate (a re-run saves nothing) and a near one is conflict. Each saved note records origin (the file it came from) and origin_at. Up to 200 a request. Requires coding:knowledge:sync.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

coding_repository_id*string
Formatuuid

Query Parameters

customer_id?|null

Request Body

application/json
  1. body
notes*array<>
Items1 <= items <= 200

Response Body

Request fulfilled, document follows

application/json
  1. response
results*array<>
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/notes/import' \  -H 'Content-Type: application/json' \  -d '{  "notes": [    {      "body": "string",      "origin": "string",      "scope": "you"    }  ]}'
Example Response
{  "results": [    {      "note_id": "f37a7c27-f466-4182-88ae-001e80802cdc",      "outcome": "string",      "reason": "string"    }  ]}
Was this page helpful?