Index
The Index model is a fundamental component of the Index Network, designed to facilitate context management and enable semantic interoperability within your system. It serves as a structured way to organize and store data related to specific contexts. Below is a description of the Index schema and its primary functions:
Index Schema
The Index schema consists of several key properties:
title
String
The title or name associated with the Index, providing context identification.
signerFunction
CID
IPFS CID that stores the Lit Action function
signerPublicKey
String
Public key of the minted LIT Programmable Key Pair
updatedAt
DateTime
The timestamp when the Index was last updated, ensuring data accuracy.
deletedAt
DateTime
The timestamp when the Index was deleted (if applicable).
controllerDID
DID (Identifier)
The Decentralized Identifier (DID) of the controller for access control.
Endpoints
This section provides details about the available API endpoints.
Index created
No content
POST /api/indexes HTTP/1.1
Host: dev.index.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"title": "text",
"signerPublicKey": "text",
"signerFunction": "text"
}Index created
No content
Index ID
Index updated
No content
PATCH /api/indexes/{id} HTTP/1.1
Host: dev.index.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"title": "text",
"signerFunction": "text"
}Index updated
No content
Last updated