Skip to content

Create expiring Index by Field for Collection​

PUT
/mongodb/collections/{collectionName}/index/field/{fieldName}/{duration}/expiring

Create expiring Index by Field for given Collection

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Parameters​

Path Parameters

collectionName*

The name of your MongoDb Collection

Type
string
Required
fieldName*

The field Name for your index

Type
string
Required
duration*

Expiring duration: a number with a unit, e.g. 15d, 6h, 30m, 90s or 1.5 minutes

Type
string
Required
Default
"15d"

Query Parameters

sortAscending

Sort your index ascending

Type
boolean
Default
true
name

Name for your index

Type
string

Responses​

application/json
JSON
{
  
"name": "string"
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.