Upsert multiple articles
Upsert an array of knowledge articles
This endpoint will create or update articles based on the unique `id` field of each article. If an article with the same `id` already exists, it will be updated. Otherwise, a new article will be created.
**Limits:**
- The maximum size of a request payload is 10MB
- The maximum size of an article is 100KB
- The maximum number of articles is 50,000
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>
, where token is your auth token.
Request
This endpoint expects a list of objects.
id
A unique identifier for the article
name
The name or title of the article
content
The content of the article in markdown format
knowledge_source_id
The id of the knowledge_source
the article belongs to
url
The url of the article
tag_ids
A list of ids for the tags associated with the article
language
The IETF BCP 47 language code for the article, defaults to en
external_created
The date the article was created in the source system
external_updated
The date the article was last updated in the source system
enabled
Whether the article should be referenced during response generation, defaults to true
metadata
A dictionary of arbitrary key,value pairs. This data is not used by Ada, but can be used by the client to store additional information about the article.
Response
Articles upserted
id
A unique identifier for the article
success
Whether the article was successfully created/updated
created
True
if a new article was created, false
if an existing article was updated