Add content_segment_ids to article schemas (Preview)#485
Open
dylan-teehan-skc wants to merge 1 commit intomainfrom
Open
Add content_segment_ids to article schemas (Preview)#485dylan-teehan-skc wants to merge 1 commit intomainfrom
dylan-teehan-skc wants to merge 1 commit intomainfrom
Conversation
Adds audience targeting field (content_segment_ids) to article response schemas, request schemas, and inline examples in the Preview API spec. When set, only users matching these audiences will be served the article by Fin AI Agent and Copilot. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
API consumers need to control which audiences Fin AI Agent and Copilot will serve an article to. Content segment associations exist on articles in the product but weren't exposed through the public API.
How?
Add
content_segment_ids(array of integer IDs) to article response schemas, request schemas, and inline response examples in the Preview spec. On create, segments are assigned by ID. On update, the field uses an absent-vs-null pattern — omitting it leaves segments unchanged, sending[]clears them.Generated with Claude Code