Batch Create Code Records

以 Markdown 格式查看

身份验证

AuthorizationBearer

Bearer 身份验证,格式为 Bearer <token>,其中 token 是您的身份验证令牌。

路径参数

domainstring必需

请求

This endpoint expects a list of objects.
documentstring必需
The content of the code document that will be returned to Ask Fern during retrieval.
chunkstring or null可选
The textual content that should be vectorized when indexing the code. If not provided, the full document will be vectorized.
titlestring or null可选

The title of the code document. This will be used with the url when Ask Fern cites this code.

urlstring or null可选
The url of the code document. This will be used as the source when Ask Fern cites it.
versionstring or null可选
The version of the code. This will be compared against when running Ask Fern with version filters. If null, the code will be retrievable by all versions.
productstring or null可选
The product of the code. This will be used to filter code when running Ask Fern with product filters. If null, the code will be retrievable by all products.
keywordslist of strings or null可选
The keywords of the code. Adding keywords can improve code matching.
authedboolean or null可选
Whether the code is auth gated. If false, the code record will be retrievable by all users.

响应

Successful Response
code_idstring
The unique identifier of the created code entry

错误

422
Unprocessable Entity Error