Add conversation attribute support to POST /data_attributes (Unstable)#431
Open
Add conversation attribute support to POST /data_attributes (Unstable)#431
Conversation
Document the new model: "conversation" support in the create data attribute endpoint, including new data types (list, decimal, relationship, files), new fields (multiline, list_options, reference), and the PUT endpoint restriction for conversation attributes. 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?
Monolith PR intercom/intercom#485182 extends the
POST /data_attributesendpoint to support creating conversation attributes viamodel: "conversation". The OpenAPI spec needs to be updated to document these new capabilities for SDK generation and developer documentation.How?
Extends the Unstable spec with the new
conversationmodel option, conversation-specific data types (list,decimal,relationship,files), and new request/response fields (multiline,list_options,reference). Also documents the PUT endpoint restriction for conversation attributes.Implementation Plan
Plan: Document Conversation Attributes in POST /data_attributes
Context
PR intercom/intercom#485182 extends the
POST /data_attributesendpoint to support creating conversation attributes viamodel: "conversation". This is an Unstable-only feature gated by theCreateConversationDataAttributesversion change and a killswitch flag. ThePUT /data_attributes/{id}endpoint is also updated to reject conversation attribute updates with a 400 error.We need to update two downstream repos (Intercom-OpenAPI and developer-docs) to document these changes following the three-repo coordination pattern.
Changes
create_data_attribute_requestschemamodelenum expanded:[contact, company, conversation]multilineboolean field to top-level propertiesdecimalandfilesdata_type: list+ requiredlist_options)data_type: relationship+ requiredreference)data_attributeresponse schemamodelenum expanded to includeconversationdata_typeenum expanded withdecimal,datetime,list,relationship,filesmultiline,list_options,referencePOST /data_attributes endpoint
PUT /data_attributes/{id} endpoint
Generated with Claude Code