Repository navigation
fix: rename POST /threads/{thread_id}/messages operationId to createT… - #167
Merged
swapnilroy-cell merged 2 commits intoOct 30, 2026
Merged
Conversation
…hreadMessage
createMessage was used by both POST /messages and
POST /threads/{thread_id}/messages. operationId must be unique across
the document, so the thread-scoped operation is renamed.
Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
🟡 Changes recommended
The Assistants messages navigation still points to createMessage, causing the generated reference to show the wrong endpoint.
1 open issue
What changed in this PR
This PR resolves an operation ID collision in the OpenAPI specification between message creation and thread-scoped message creation.
Changes:
- Renames the operation ID for
POST /threads/{thread_id}/messagesfromcreateMessagetocreateThreadMessage, distinguishing it fromPOST /messages.
| File | Description |
|---|---|
openapi.yaml |
Gives thread-message creation a distinct operation ID. |
Review effort: Balanced
The nav key createMessage now resolves to POST /messages after the operationId rename, so the Assistants reference showed the wrong endpoint. Update the key; path is unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
kiran-4444
approved these changes
Oct 30, 2026
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.

…hreadMessage
createMessage was used by both POST /messages and
POST /threads/{thread_id}/messages. operationId must be unique across the document, so the thread-scoped operation is renamed.