Skip to content

Document that ticket comments are not supported on internal ticket types - #671

Merged
dan0505 merged 2 commits into
mainfrom
document-ticket-comment-restriction
Sep 21, 2026
Merged

dan0505 merged 2 commits into
mainfrom
document-ticket-comment-restriction

Conversation

@dan0505

@dan0505 dan0505 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Why?

The reply endpoint does not accept a comment on a tracker ticket, or on a back-office ticket that is not shared with the customer. Both are internal ticket types with no customer to send a comment to, and the reference documented neither the restriction nor the error these requests return.

How?

Adds the restriction to the admin reply schema on every version that documents an admin reply, and documents the 400 response for those rejections — including on 2.10, which declared no 400 on this operation at all.

Generated with Claude Code

POST /tickets/{id}/reply does not support message_type: comment on tracker
tickets, or on back-office tickets that are not shared with the customer. Both
are internal ticket types with no customer to send a comment to, but the
reference did not say so.

The same wording is added to every version that documents an admin reply:
Preview (descriptions/0) and 2.10 through 2.16. Earlier versions define no
admin reply schema.
The reply endpoint's 400 response was described as "User reply" and carried a
single example, so it covered only a user reply on a back-office ticket. It now
also describes the rejections for an admin comment on a back-office ticket that
is not shared with the customer, and on a tracker ticket.

Version 2.10 declared no 400 on this operation at all, so the response is added
there.
@VarshSuresh

Copy link
Copy Markdown
Contributor

Are the examples for bad request not need in here as well?

@dan0505

dan0505 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

Yes — good catch, they were missing. Just pushed them, so the spec here now matches.

Both rejection examples are added to the 400 on every version that documents an admin reply. Version 2.10 turned out to declare no 400 on this operation at all, so the whole response is added there; the other versions described theirs only as a user reply on a back-office ticket, so the description is broadened and the two admin-comment cases added alongside the existing example.

~ Automated via Claude

@dan0505
dan0505 merged commit 9e52ccc into main Sep 21, 2026
3 checks passed
@dan0505
dan0505 deleted the document-ticket-comment-restriction branch September 21, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants