feat: introduce query-index editing endpoint#2134
Merged
Conversation
|
This PR will trigger a minor release when merged. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Author
calvarezg
approved these changes
Apr 8, 2026
solaris007
pushed a commit
that referenced
this pull request
Apr 8, 2026
# [1.422.0](v1.421.3...v1.422.0) (2026-04-08) ### Features * introduce query-index editing endpoint ([#2134](#2134)) ([065cfa5](065cfa5))
Member
|
🎉 This PR is included in version 1.422.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.


POST /llmo/onboard/update-query-indexPurpose
Adds new file entries to a site's
query-index.xlsxspreadsheet in SharePoint, then triggers AEM Edge Delivery to preview and publish the updated index so it becomes available as JSON on the CDN.Request
Auth: LLMO Administrator only (via access control check)
Body:
{ "domain": "https://abcxyztestdev.com", "fileNames": [ "brand-presence/brandpresence-ai-mode-w10-2026.json", "brand-presence/brandpresence-ai-mode-w11-2026.json" ] }domainfileNamesFlow
dataFolderfrom LLMO configquery-index.xlsxin SharePoint — each row contains/<dataFolder>/<fileName>.jsonand current timestampsadmin.hlx.page) to preview then publishquery-index.jsonResponse
200 OK
{ "message": "query-index.xlsx updated, previewed, and published successfully", "domain": "example.com", "dataFolder": "example-com", "entriesAdded": 2 }Error Responses
domain, empty/invalidfileNames, or site not onboarded (nodataFolder)Files Changed
src/controllers/llmo/llmo-onboarding.jsappendRowsToQueryIndexandpreviewAndPublishQueryIndexfunctionssrc/controllers/llmo/llmo.jsupdateQueryIndexcontroller methodsrc/routes/index.jsPOST /llmo/onboard/update-query-indexroutesrc/routes/required-capabilities.jsINTERNAL_ROUTES(not exposed to S2S consumers)test/controllers/llmo/llmo-onboarding.test.jsappendRowsToQueryIndexandpreviewAndPublishQueryIndextest/controllers/llmo/llmo.test.jsupdateQueryIndexcontrollertest/routes/index.test.js