Download OpenAPI specification:Download
🔐 Note for Admin/System Admin:
When accessing APIs as an Admin or System Admin, include the following headers in your request:
| Header Name | Description | Example Value |
|---|---|---|
admin-auth-token |
Admin-specific auth token | {admin-auth-token} |
tenantId |
Tenant identifier | shikshagraha |
orgId |
Organization ID | blr |
You can use this API to to create user role extension data. /v1/userRoleExtension/create
required| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | string |
| admin-auth-token | string This header should be passed when system admin wants to create resources |
| tenantId | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| title | string |
| value | string |
| userRoleId | string |
| code | string |
Array of objects |
{- "title": " Head Master",
- "value": "19",
- "userRoleId": "777",
- "code": "HH",
- "entityTypes": [
- {
- "entityType": "state ",
- "entityTypeId": "6764e632073da91041b79aa7"
}
]
}{- "message": "string",
- "status": 0,
- "result": {
- "status": "string",
- "createdBy": "string",
- "updatedBy": "string",
- "_id": "string",
- "deleted": true,
- "userRoleId": "string",
- "title": "string",
- "code": "string",
- "entityTypes": [
- {
- "entityType": "string",
- "entityTypeId": "string"
}
], - "tenantId": "string",
- "orgId": "string",
- "updatedAt": "string",
- "createdAt": "string",
- "__v": 0
}
}You can use this API to update user role extension data by passing id in the path param. /v1/userRoleExtension/update/{_id}
required| X-auth-token | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| title | string |
{- "title": "Head Master"
}{- "message": "string",
- "status": 0,
- "result": {
- "status": "string",
- "createdBy": "string",
- "updatedBy": "string",
- "deleted": true,
- "_id": "string",
- "userRoleId": "string",
- "title": "string",
- "code": "string",
- "entityTypes": [
- {
- "entityType": "string",
- "entityTypeId": "string"
}
], - "tenantId": "string",
- "orgId": "string",
- "updatedAt": "string",
- "createdAt": "string",
- "__v": 0
}
}Use this API to get the details of user role extension data based on the request body passed. /v1/userRoleExtension/find
required| X-auth-token | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | string |
| admin-auth-token | string This header should be passed when system admin wants to create resources |
| tenantId | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
object | |
| projection | Array of strings |
{- "query": {
- "entityTypes.entityTypeId": {
- "$in": [
- "5f32d8228e0dc8312404056b",
- "5f32d8228e0dc8312404056c",
- "5f32d8228e0dc83124040567",
- "5f32d8228e0dc8312404056e"
]
}
}, - "projection": [
- "_id",
- "title"
]
}{- "message": "string",
- "status": 0,
- "result": [
- {
- "_id": "string",
- "status": "string",
- "createdBy": "string",
- "updatedBy": "string",
- "deleted": true,
- "userRoleId": "string",
- "title": "string",
- "code": "string",
- "entityTypes": [
- {
- "entityType": "string",
- "entityTypeId": "string"
}
], - "tenantId": "string",
- "orgId": "string",
- "updatedAt": "string",
- "createdAt": "string",
- "__v": 0
}
], - "count": 0
}Use this API to delete user role extension data by passing it's id. /v1/userRoleExtension/delete
required| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | string |
| admin-access-token | string This header should be passed when system admin wants to create resources |
| tenantId | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
{- "message": "USER_ROLE_DELETED",
- "status": 200
}This api is use to create entity types in bulk by passing a csv file which contain entity type information
/v1/entityType/bulkCreaterequired| X-auth-token required | string To use this API, you require an X-auth-token. This token is available in the login API Response. |
| internal-access-token required | string |
| admin-auth-token required | string This header should be passed when system admin wants to create resources |
| tenantId required | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId required | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| file | string <binary> The CSV file to upload |
"name", "registry-name", "isObservable", "toBeMappedToParentEntities", "immediateChildrenEntityType", "registryDetails", "tenantId", "orgId", "_SYSTEM_ID", "status" "blockkks", "locationRegistry", true, true, "[""school""]", "{""name"":""locationRegistry""}", "shikshagraha", "orgId", "6679320261add28f7f681294", "SUCCESS"
You can use this API to update entityType by passing CSV file.
/v1/entityTypes/bulkUpdaterequired| X-auth-token required | string To use this API, you require an X-auth-token. This token is available in the login API Response. |
| internal-access-token required | string |
| admin-auth-token required | string This header should be passed when system admin wants to create resources |
| tenantId required | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId required | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| file | string <binary> The CSV file to upload |
"name", "registryname", "isObservable", "toBeMappedToParentEntities", "immediateChildrenEntityType", "tenantId", "orgId", "_SYSTEM_ID", "status", "ghj", "locationRegistry", true, true, "[""[\""school\"""", "" “high School” ]"" ]", "shikshagraha", "blr", "6679320261add28f7f681294","SUCCESS",
You can use this API to create a single entityType data.
/v1/entityTypes/createrequired| X-auth-token required | string To use this API, you require an X-auth-token. This token is available in the login API Response. |
| internal-access-token required | string |
| admin-auth-token required | string This header should be passed when system admin wants to create resources |
| tenantId required | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId required | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| name | string |
object | |
| isObservable | boolean |
| toBeMappedToParentEntities | boolean |
{- "name": "state",
- "registryDetails": {
- "name": "govt school"
}, - "isObservable": true,
- "toBeMappedToParentEntities": true
}{- "message": "string",
- "status": 0,
- "result": {
- "name": "string",
- "isObservable": true,
- "toBeMappedToParentEntities": true,
- "tenantId": "string",
- "orgId": "string",
- "status": "string",
- "_id": "string"
}
}You can use this API to update single entities based on the entityType id .
/v1/entityTypes/update/{_id}requiredstring |
| _id required | string The unique identifier for the data that needs to be updated. This id ensures the correct record is matched for the update operation. |
| X-auth-token required | string To use this API, you require an X-auth-token. This is available in the login API Response. |
| internal-access-token required | string |
| admin-auth-token required | string This header should be passed when system admin wants to create resources |
| tenantId required | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId required | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| name | string |
object | |
| isObservable | boolean |
| toBeMappedToParentEntities | boolean |
| immediateChildrenEntityType | string |
{- "name": "school",
- "registryDetails": {
- "name": "hub"
}, - "isObservable": true,
- "toBeMappedToParentEntities": true,
- "immediateChildrenEntityType": "collage"
}{- "status": 0,
- "result": {
- "profileForm": [
- "string"
], - "profileFields": [
- "string"
], - "types": [
- "string"
], - "callResponseTypes": [
- "string"
], - "isObservable": true,
- "immediateChildrenEntityType": [
- "string"
], - "createdBy": "string",
- "updatedBy": "string",
- "deleted": true,
- "_id": "string",
- "isDeleted": true,
- "name": "string",
- "registryDetails": {
- "name": "string"
}, - "toBeMappedToParentEntities": true,
- "tenantId": "string",
- "orgId": "string",
- "updatedAt": "string",
- "createdAt": "string",
- "__v": 0
}
}Use this API to list all entityTypes
/v1/entityTypes/listrequired| X-auth-token required | string To use this API, you require an X-auth-token, which is available in the login API response. |
{- "message": "ENTITY_TYPES_FETCHED",
- "status": 200,
- "result": [
- {
- "_id": "661384681797bc00de520555",
- "name": "district"
}, - {
- "_id": "661387f572fad002e57cce8f",
- "name": "state"
}
]
}Use this API to get the details of entityType data based on the request body passed.
/v1/entityTypes/findrequired| X-auth-token required | string To use this API, you require an X-auth-token, which is available in the login API Response. |
| internal-access-token required | string |
object | |
object | |
object |
{- "query": {
- "name": "school"
}, - "projection": {
- "_id": 1,
- "name": 1
}, - "skipFields": {
- "createdAt": 1
}
}{- "message": "ENTITY_TYPES_FETCHED",
- "status": 200,
- "result": [
- {
- "_id": "662f7dafcf215405591ce3af",
- "name": "state"
}, - {
- "_id": "661387f572fad002e57cce8f",
- "name": "block"
}
]
}You can use this API to create bulk create entities based on type and CSV file we pass.
/v1/entities/bulkCreaterequired| type required | any Please pass entity type value for the entity. |
| X-auth-token required | string To use this API, you require an X-auth-token. This token is available in the login API Response. |
| internal-access-token required | any |
| admin-auth-token | string This header should be passed when system admin wants to create resources |
| tenantId | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| entities | string <binary> The CSV file to upload |
| translationFile | string <binary> The JSON file to upload |
"Staff_id", "externalId", "name", "region", "capital", "tenantId", "orgId", "_arrayFields", "_existingKeyField", "_SYSTEM_ID" "", "PBS", "Punjab", "North east", "Chandigarh", "shikshagraha", "blr", "", "externalId", "6679336f61add28f7f681298"
You can use this API to update entities data based on the type and entity id we pass through CSV file that contain information to update.
/v1/entities/bulkUpdaterequired| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | string |
| content-type required | string |
| admin-auth-token | string This header should be passed when system admin wants to create resources |
| tenantId | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| entities | string <binary> The CSV file to upload |
| translationFile | string <binary> The JSON file to upload |
"externalId", "name", "region", "capital", "_arrayFields", "_existingKeyField", "tenantId", "orgId", "_SYSTEM_ID", "UPDATE_STATUS" "entity506", "bijapur", "North east", "Chandigarh", "", "externalId", "shikshagraha", "blr", "6679336f61add28f7f681298", "SUCCESS"
The API is used to create single entities based on entityType
/v1/entities/addrequired| type required | string Example: 1 Please pass entity type value for the entity. |
| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | string |
| admin-auth-token | string This header should be passed when system admin wants to create resources |
| tenantId | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| externalId | string |
| name | string |
| childHierarchyPath | Array of strings |
| targetedEntityTypes | Array of strings |
{- "externalId": "KA28",
- "name": "Karnataka",
- "childHierarchyPath": [
- "district",
- "block",
- "cluster",
- "school"
], - "targetedEntityTypes": [
- "state",
- "block"
]
}{- "message": "string",
- "status": 0,
- "result": [
- {
- "metaInformation": {
- "targetedEntityTypes": [
- "string"
], - "externalId": "string",
- "name": "string"
}, - "childHierarchyPath": [
- "string"
], - "createdBy": "string",
- "updatedBy": "string",
- "_id": "string",
- "deleted": true,
- "entityTypeId": "string",
- "entityType": "string",
- "registryDetails": {
- "locationId": "string",
- "code": "string"
}, - "userId": "string",
- "tenantId": "string",
- "orgId": "string",
- "updatedAt": "string",
- "createdAt": "string",
- "__v": 0
}
]
}You can use this API to get details based on entity id or externalId.
/v1/entities/detailsrequired| _id required | string Example: 1 Please append a valid entity id or externalId to the Request URL. |
{- "message": "ENTITY_INFORMATION_FETCHED",
- "status": 200,
- "result": [
- {
- "_id": "6852c9207248c20014b38dd3",
- "metaInformation": {
- "targetedEntityTypes": [ ],
- "externalId": "16030100406",
- "name": "BALARAM BAZAR J. B. SCHOOL"
}, - "childHierarchyPath": [ ],
- "createdBy": "20",
- "updatedBy": "20",
- "deleted": false,
- "entityTypeId": "6825915c97b5680013e6a148",
- "entityType": "school",
- "registryDetails": {
- "code": "16030100406",
- "locationId": "16030100406"
}, - "tenantId": "shikshalokam",
- "orgId": "sl",
- "updatedAt": "2025-06-18T14:11:49.122Z",
- "createdAt": "2025-06-18T14:11:49.122Z",
- "__v": 0,
- "parentInformation": {
- "state": [
- {
- "_id": "6852c86c7248c20014b38a4d",
- "externalId": "16",
- "name": "Tripura"
}
], - "district": [
- {
- "_id": "6852c8ae7248c20014b38a50",
- "externalId": "dhalai",
- "name": "Dhalai"
}
], - "block": [
- {
- "_id": "6852c8de7248c20014b38a61",
- "externalId": "160301",
- "name": "AMBASSA"
}
], - "cluster": [
- {
- "_id": "6852c9027248c20014b38af2",
- "externalId": "1603010007",
- "name": "BALARAM HIGH SCHOOL"
}
]
}
}
]
}You can use this API to update the entity data based on entiy id.
/v1/entities/update/{_id}required| _id required | string Example: 1 Please append a valid entities Id to the Request URL. |
| X-auth-token required | string You require an X-auth-token to use this API., which is available in the login API Response. |
| internal-access-token required | string |
| admin-auth-token | string This header should be passed when system admin wants to create resources |
| tenantId | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
Array of objects | |
| metaInformation.name | string |
| childHierarchyPath | Array of strings |
{- "metaInformation.targetedEntityTypes": [
- {
- "entityType": "state",
- "entityTypeId": "683953548f365ab56c8022e9"
}, - {
- "entityType": "block",
- "entityTypeId": "6839535b8f365ab56c8022ed"
}
], - "metaInformation.name": "Karnataka ",
- "childHierarchyPath": [ ]
}{- "message": "string",
- "status": 0,
- "result": {
- "metaInformation": {
- "targetedEntityTypes": [
- "string"
], - "externalId": "string",
- "name": "string"
}, - "registryDetails": {
- "locationId": "string",
- "code": "string"
}, - "childHierarchyPath": [
- "string"
], - "createdBy": "string",
- "updatedBy": "string",
- "deleted": true,
- "_id": "string",
- "entityTypeId": "string",
- "entityType": "string",
- "userId": "string",
- "tenantId": "string",
- "orgId": "string",
- "updatedAt": "string",
- "createdAt": "string",
- "__v": 0
}
}You can use this API to map the childEntity to parentEntity
/v1/entities/mappingUploadrequired| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | any |
| file | string <binary> The CSV file to upload |
{- "message": "ENTITY_INFORMATION_UPDATE",
- "status": 200,
- "result": {
- "success": true,
- "message": "ENTITY_INFORMATION_UPDATE"
}
}You can use this API to create a mapping CSV
/v1/entities/createMappingCsvrequired| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | any |
| admin-auth-token required | string This header should be passed when system admin wants to create resources |
| tenantId required | string This header specifies the tenant data of the resource creator. This header should be passed when system admin wants to create resources |
| orgId required | string This header specifies the organization data of the resource creator. This header should be passed when system admin wants to create resources |
| file | string <binary> The CSV file to upload |
{- "message": "MAPPING_CSV_GENERATED",
- "status": 200,
- "result": {
- "mappingCSV": "cGFyZW50RW50aXlJZCxjaGlsZEVudGl0eUlkCjY3OGY0MTZkOWIzMTJlZmY4YTRhMjRhNiw2NzhmNjhiZGNmOWI4MWZmODBjZjMzN2YKNjc4ZjQxNmQ5YjMxMmVmZjhhNGEyNGE3LDY3OGY2OGJkY2Y5YjgxZmY4MGNmMzM4MAo=",
- "resultCSV": "InBhcmVudEVudGl0eUlkIiwiY2hpbGRFbnRpdHlJZCIsInBhcmVudEVudGl0eUlkU3RhdHVzIiwiY2hpbGRFbnRpdHlJZFN0YXR1cyIKIktBUmNsdXN0ZXIxOSIsIm9yZ2wxOTkiLCJFTlRJVFlfRkVUQ0hFRCIsIkVOVElUWV9GRVRDSEVEIgoiS0FSY2x1c3RlcjIwIiwib3JnbDIwMCIsIkVOVElUWV9GRVRDSEVEIiwiRU5USVRZX0ZFVENIRUQi",
- "parentEntityIds": [
- "678f416d9b312eff8a4a24a6",
- "678f416d9b312eff8a4a24a7"
], - "childEntityIds": [
- "678f68bdcf9b81ff80cf337f",
- "678f68bdcf9b81ff80cf3380"
]
}
}You can use this API to list entities based on its type
v1/entities/listByEntityType/_idrequired| _id required | string Example: 1 Please append a valid entity id to the Request URL. |
| page | number Example: 1 Please append number for pagination. |
| limit | number Example: 2 number of record to limit |
| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | any |
{- "message": "ASSETS_FETCHED_SUCCESSFULLY",
- "status": 200,
- "result": [
- {
- "externalId": "PBS",
- "name": "Punjab",
- "locationId": "",
- "_id": "6613b8142c7d9408449474bf"
}, - {
- "externalId": "PBS",
- "name": "Punjab",
- "locationId": "",
- "_id": "6613b8f32c7d9408449474c2"
}
]
}You can use this API to find entities based on query.
/v1/entities/findrequired| page | number Page number for pagination |
| limit | number Number of documents to return per page |
| search | string Optional search string for text-based filtering |
| aggregateValue | string Field path to be used for aggregation |
| aggregateStaging | boolean Whether to apply aggregation stages in the pipeline |
| aggregateSort | boolean Whether to apply sorting within the aggregation pipeline |
| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | any |
object | |
| projection | Array of strings |
{- "query": {
- "metaInformation.externalId": "rajAP"
}, - "projection": [
- "metaInformation.externalId",
- "metaInformation.name",
- "registryDetails.locationId"
]
}{- "message": "ASSETS_FETCHED_SUCCESSFULLY",
- "status": 200,
- "result": [
- {
- "_id": "66e2b4bd7165395fcea49814",
- "registryDetails": {
- "locationId": "rajAP"
}, - "metaInformation": {
- "externalId": "rajAP",
- "name": "RAJANDHRA"
}
}
]
}You can use this API to list the entities based on entity id and entity Type
/v1/entities/listrequired| _id required | string Example: 1 Please append a valid entitie Id to the Request URL. |
| page | any |
| limit | any |
| type required | any Please pass entity type value for the entity |
| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | any |
{- "status": 200,
- "result": {
- "data": [
- {
- "_id": "627a13928ce12806f5803f57",
- "entityType": "school",
- "externalId": "entity123",
- "label": "undefined - entity123",
- "value": "627a13928ce12806f5803f57"
}
], - "count": 1
}
}You can use this API to get entities based on locations Id
/v1/entities/listByLocationIdsrequired| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token | string |
| locationIds | Array of strings |
{- "locationIds": [
- "entity44123"
]
}{- "message": "ENTITY_FETCHED",
- "status": 200,
- "result": [
- {
- "_id": "5f33c3d85f637784791cd830",
- "entityTypeId": "5f32d8228e0dc8312404056e",
- "entityType": "state",
- "metaInformation": {
- "externalId": "MH",
- "name": "Maharashtra",
- "region": "West",
- "capital": "Mumbai"
}, - "registryDetails": {
- "locationId": "db331a8c-b9e2-45f8-b3c0-7ec1e826b6df",
- "code": "db331a8c-b9e2-45f8-b3c0-7ec1e826b6df"
}
}, - {
- "_id": "627a13928ce12806f5803f57",
- "entityTypeId": "5f32d8228e0dc8312404056e",
- "entityType": "block",
- "metaInformation": {
- "externalId": "MH",
- "name": "Maharashtra",
- "region": "West",
- "capital": "Mumbai"
}, - "registryDetails": {
- "locationId": "db331a8c-b9e2-45f8-b3c0-7ec1e826b6df",
- "code": "db331a8c-b9e2-45f8-b3c0-7ec1e826b6df"
}
}
]
}You can use this API to list entity based on location id
*Endpoint to list entity based on location id /v1/entities/subEntityListBasedOnRoleAndLocation
required| _id required | string Example: 1 Please append a valid entity Id To the Request URL |
| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token | string |
{- "message": "ENTITIES_CHILD_HIERACHY_PATH",
- "status": 200,
- "result": [
- {
- "_id": "5fd1b52ab53a6416aaeefb1f",
- "childHierarchyPath": [
- "school",
- "cluster"
]
}, - {
- "_id": "6153158e5bec1d28882358ab",
- "childHierarchyPath": [
- "school",
- "cluster",
- "state",
- "district",
- "beat",
- "block"
]
}
]
}This API will help to get entities based on parent id and entity type we pass.
This API will help to get entities based on parent id and entity type we pass. * It is mandatory to provide values for parameters marked with required
| page | number Example: 1 Please add page number |
| limit | number Example: 2 number of record to limit |
| type | string Please pass entity type value for the entity |
| search | string |
| _id required | string Please append a valid entity id |
| parentInfoRequired | any Pass this paramater as true if need parents details |
| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | string |
{- "status": 200,
- "result": {
- "data": [
- {
- "_id": "627a13928ce12806f5803f57",
- "entityType": "school",
- "externalId": "entity123",
- "label": "undefined - entity123",
- "value": "627a13928ce12806f5803f57",
- "district": "BAGALKOT,",
- "block": "BADAMI,",
- "cluster": "CHOLACHAGUDDA"
}
], - "count": 1
}
}This API will help to list the entities based on entity id
/v1/entities/listByIdsrequired| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token | string |
| entities | Array of strings |
| fields | Array of strings |
{- "entities": [
- "66738b75c05aa58f89ba1300"
], - "fields": [
- "entityType"
]
}{- "message": "ENTITIES_FETCHED",
- "status": 200,
- "result": [
- {
- "_id": "66738b75c05aa58f89ba1300",
- "entityType": "block"
}
]
}You can use this API to list entity based on entity type
*Endpoint to list entity based on entity type /v1/entities/entityListBasedOnEntityType?entityType={entity_Type}
required| entityType required | string Example: 1 Please pass entity type value for the entity. |
| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token | string |
{- "message": "ASSETS_FETCHED_SUCCESSFULLY",
- "status": 200,
- "result": [
- {
- "_id": "6682714d5fb8bc3e93ceae52",
- "name": "Mysore Rural"
}, - {
- "_id": "66827210a845ef3e891daf05",
- "name": "T Narasipura "
}, - {
- "_id": "668273665fb8bc3e93ceae65",
- "name": "North Chennai "
}, - {
- "_id": "668273bda845ef3e891daf15",
- "name": "South Chennai "
}, - {
- "_id": "668276d45fb8bc3e93ceaeaf",
- "name": "Bangalore East* "
}, - {
- "_id": "6682771aa845ef3e891db070",
- "name": "Bangalore South "
}
]
}You can use this API to fetch targeted roles based on the provided entity id in the request parameters.
*Endpoint to fetch targeted roles based on the provided entity id /v1/entities/targetedRoles?{entity_id}
required| entity_id required | string Please append a valid entity Id to the Request URL. |
| entityType required | string Please append a valid entity type to retrieve the roles associated with its higher-level entity types. |
| paginate | string The data will be paginated and that will include count as well |
| roleLevel | string Role level to filter roles |
| X-auth-token | string You require an X-auth-token to use this API. This token is available in the login API Response. |
{- "message": "ROLES_FETCHED_SUCCESSFULLY",
- "status": 200,
- "result": {
- "data": [
- {
- "_id": "682301254e2812081f34266c",
- "value": "teacher-class-11-12",
- "label": "Teacher (Class 11-12)",
- "code": "-class-11-12"
}
], - "count": 1
}
}This endpoint allows an admin to create an index for a specificollection. The request body should include the keys to be indexed.
/v1/admin/createIndex.required| X-auth-token required | string You require an X-auth-token to use this API. This token is available in the login API Response. |
| internal-access-token required | string You require an internal-access-token to use this API. |
| collection_name required | string We need to pass valid collectionName to create an index for a specified collection. |
| keys | Array of strings |
{- "keys": [
- "groups"
]
}{- "message": "KEYS_INDEXED_SUCCESSFULL",
- "status": 200
}This endpoint allows an admin to delete the Entities and its child Entities
/v1/admin/deleteEntity.required| _id required | string Valid Entities Id to be passed |
| allowRecursiveDelete | boolean |
| x-auth-token required | string To use this API, you require an X-auth-token. This is available in the login API Response. |
| internal-access-token required | string internal-access-token |
| admin-auth-token required | string admin-auth-token |
| tenantId required | string tenantId |
| orgId required | string orgId |
{- "message": "ENTITIES_DELETED_SUCCESSFULLY",
- "status": 200,
- "result": {
- "deletedEntities": "6825952497b5680013e6a184",
- "deletedEntitiesCount": 1,
- "unLinkedEntitiesCount": 0
}
}This endpoint is used to verify the health status of the Entity Service and its dependencies.
/entity-management/health.required{- "id": "service.health.api",
- "ver": "1.0",
- "ts": "2025-07-18T04:34:56.113Z",
- "params": {
- "resmsgid": "8e3a9610-6390-11f0-bdd2-0b5dbb3b399b",
- "msgid": "8e3a9611-6390-11f0-bdd2-0b5dbb3b399b",
- "status": "successful",
- "err": null,
- "errMsg": null
}, - "status": 200,
- "result": {
- "name": "EntityManagementService",
- "version": "1.0.0",
- "healthy": true,
- "checks": [
- {
- "name": "mongodb",
- "healthy": true,
- "err": "",
- "errMsg": ""
}, - {
- "name": "UserService",
- "healthy": true,
- "err": "",
- "errMsg": ""
}
]
}
}