docs(rest-api): add pin, save & interacted endpoints (ENG-38785) - #488
docs(rest-api): add pin, save & interacted endpoints (ENG-38785)#488pranavkamble-cometchat wants to merge 3 commits into
Conversation
Re-sync chat-apis.json and data-import-apis.json from the chat-api OAS, and add the 11 endpoint pages plus navigation entries for the new message and conversation operations.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
…ENG-38785) Re-sync chat-apis.json and data-import-apis.json for the app-pinned -> global pinned terminology change, and rename the two /conversations/pinned pages so their slugs match. No redirects needed - the branch is unmerged, so these URLs were never public.
…785)
Re-copy chat-apis.json and data-import-apis.json from cometchat-team/chat-api
after the review regressions were fixed at source, so the specs stay correct on
every future re-sync instead of being patched here.
Regressions cleared (all were fixes that lived only in the docs repo and were
overwritten by the previous re-sync):
- restore `category` on messageCategorySchema and customCategorySchema in both
chat-apis.json and data-import-apis.json; this also repairs the
POST /bots/{uid}/messages discriminator, whose propertyName was absent from
its mapped schemas
- restore interactiveCategorySchema and the discriminator on POST /messages
- mentionswithTagInfo -> mentionsWithTagInfo on all three operations; the API
reads the capital-W form case-sensitively
- restore parameters that stopped being emitted: role; guid + scope; page and
perPage on four list endpoints; the four cursor params on
GET /messages/{id}/thread. Both invalid-spec cases (path template variable
with no declared parameter) are gone
- restore operationId on the three blocked-users operations
- restore two summaries and the `unique` parameter description
New endpoint fixes:
- data response now resolves to a named schema on all nine affected endpoints;
the four conversation-pin endpoints render pinnedBy/pinnedAt again
- operationIds renamed app-pinned -> global-pinned so operationId, page slug and
nav entry agree
- summaries re-cased to Title Case to match sibling operations
- mark-message-as-interacted: description expanded, requestBody marked required
Drop calls.json: it regenerates byte-identical to main, so it carried no
legitimate change in this PR.
Add the five new error codes to the error guide, which every new page links to.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Review points — all addressedEvery finding is fixed at source in P01. 2. Broken discriminator on 3. P14. 5. Error guide documents none of the new codes 6. 8 of 11 endpoints render an empty or nameless 7. Three names for one concept P2 / nits
Additional fixes found while tracing the same root causeThe re-sync had reverted more docs-only fixes than the review caught. All restored:
Also improved on One deviation from the agreed fix list
VerificationChecked mechanically against
Nav refs, orphans, in-content links and redirect coverage are unchanged since your review — |
Re-sync chat-apis.json and data-import-apis.json from the chat-api OAS, and add the 11 endpoint pages plus navigation entries for the new message and conversation operations.
Description
Related Issue(s)
Type of Change
Checklist
Additional Information
Screenshots (if applicable)