For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI referenceRelease notes
DocumentationAPI referenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTCreate a collection's indexes in mongo
        • GETGet collection index status
        • GETGet index status for all collections
        • GETList all pre-defined indexes
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceIndexes

Create a collection's indexes in mongo

POST
http://localhost:3000/indexes/:collection
POST
/indexes/:collection
$curl -X POST http://localhost:3000/indexes/collection \
> -u "<username>:<password>"
1{
2 "unchanged": 1,
3 "changed": 1,
4 "total": 1,
5 "running": true
6}

Creates all pre-defined indexes for a specific collection.

Was this page helpful?
Previous

Get collection index status

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Path parameters

collectionstringRequired
The name of a collection in Mongo.

Response

The current status of the index creation process.
unchangedinteger>=0
changedinteger>=0
totalinteger>=0
The total number of documents
runningboolean

Errors

500
Internal Server Error