Indexes
Create TTL index
Create a hash index.
post/_fabric/{fabric}/_api/index/ttl
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScripthttps://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/index/ttl/post.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
Query parameters
collectionstring required
The collection name.
Request body
Example request
{
"expireAfter": 3600,
"fields": [
"_key"
],
"type": "ttl"
}Response
Successfully fetched existing ttl index.
Example response
{
"code": 200,
"fields": [
"_key"
],
"id": "61862387",
"name": "idx_1723573111790501888",
"selectivityEstimate": 1,
"type": "ttl",
"unique": true,
"expireAfter": 600
}Changes
No recorded changes to this operation across all 1 revision of this API.