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 by default. Higher limits are available for eligible plans — contact your Ada team.
Behavior at the article limit:
Requests that only update existing articles (every id in the request already exists) continue to succeed even when your knowledge base is at its article limit. A request that introduces any new article id while at the limit is rejected as a whole with a 400 response. The error message is Maximum article limit of {N} exceeded, where {N} is your article limit, and the error details include a code of knowledge.articles.total_exceeded, the list of new_article_ids that triggered the rejection (capped at the first 100), and the total new_article_count. Use these fields to separate new articles from update-only batches, which can still be submitted.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
The id of the knowledge_source the article belongs to
The IETF BCP 47 language code for the article, defaults to en
Whether the article should be referenced during response generation, defaults to true
Availability rule controlling which articles the AI Agent can access during a conversation. Send a rule object to attach or replace a rule, null to detach an existing rule, or omit the field to leave any existing rule unchanged. A rule may contain at most 1000 conditions in total. See Availability rules for the full schema and examples.
Response
Whether the article was successfully created/updated
True if a new article was created, false if an existing article was updated