- Using DIGIT-PLAYGROUND
- User
- Master Data V1
- Master Data V2
- Create Schema
- Search Schema
- Add Data
- Seach Data
- Update data
- Access-control
- Action
- Role
- Role-Action
- Workflow-v2
- WorkFlow
- Create new workflow entry for a given application number(businessId).
- Process search of the applicaition
- Get the list of workflow applications defined in the system.
- Get the count of applications satisfying the given criteria
- Get the nearing sla count of workflow applications defined in the system.
- Get the list of status count workflow applications defined in the system.
- Escalate
- BusinessServiceV2
- BusinessService
- Filestore
- Idgen
- IdGeneration Controller
- Create new id.POST
- Location
- Enc-Service
- Crypto
- Encrypts the given input value/s OR values of the object.
- Decrypts the given input value/s OR values of the object.
- Provide signature for a given value.
- Check if the signature is correct for the provided value.
- Deactivate the keys for the given tenant and generate new keys. It will deactivate both symmetric and asymmetric keys for the provided tenant.
- cryptoRotateAllKeys
- Crypto
- PG-Service
- URL-Shortening
- Indexer
- egov-indexer service
- This endpoint is used to start legacy index job to reindex records from DB. The data is fetched from DB by calling api mentioned in request in batches. The is useful when some record is present in DB but missing on index.
- This endpoint is used to start indexing job to reindex records from one index to another index.
- This endpoint is used to index one record on a index. The information to pick correct config is provided with the data to be indexed.
- Index data in row
- egov-indexer service
- PDF-Service
- PDF-Service endpoints
- Generate PDF and store output pdfs to filestore and return their filestoreids. The information is also saved into DB so that using _search endpoint we can retrieve already generated pdfs.
- Generates pdf without storing any information on filestore or in DB. The generated pdf would be returned as binary response
- Get filestoreids and other information about already generated pdf by searching on jobid or entityid with other optional search parameters
- PDF-Service endpoints
- Report
- eGov-OTP
- User-OTP
- Localization
- Service Request
- Audit Service
Create
Developing
POST
/mdms-v2/v2/_create/{{schema}}
Last modified:2024-05-28 09:25:15
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params text/plain
Example
Example:{
"RequestInfo": {
"apiId": "Rainmaker",
"authToken": "c54ef5cb-54d9-4ce1-9341-3bd2ba73783e",
"userInfo":{
"id": 1417,
"uuid": "d5dfa5da-c22e-4ce6-9bfd-a779efa7d319",
"userName": "AllAcessNewMDMSAd",
"name": "mustak",
"mobileNumber": "9353822214",
"emailId": "xyz@egovernments.org",
"locale": "string",
"type": "EMPLOYEE",
"roles": [
{
"name": "FSM Administrator",
"code": "FSM_ADMIN",
"tenantId": "pg"
},
{
"name": "Grievance Routing Officer",
"code": "GRO",
"tenantId": "pg"
},
{
"name": "Employee",
"code": "EMPLOYEE",
"tenantId": "pg"
},
{
"name": "FSM Desluding Operator",
"code": "FSM_DSO",
"tenantId": "pg"
},
{
"name": "FSM Employee Report Viewer",
"code": "FSM_REPORT_VIEWER",
"tenantId": "pg"
},
{
"name": "PGR Last Mile Employee",
"code": "PGR_LME",
"tenantId": "pg"
},
{
"name": "System",
"code": "SYSTEM",
"tenantId": "pg"
},
{
"name": "MDMS Admin",
"code": "MDMS_ADMIN",
"tenantId": "pg"
},
{
"name": "SUPER USER",
"code": "SUPERUSER",
"tenantId": "pg"
},
{
"name": "Citizen",
"code": "CITIZEN",
"tenantId": "pg"
},
{
"name": "Department Grievance Routing Officer",
"code": "DGRO",
"tenantId": "pg"
},
{
"name": "HRMS Admin",
"code": "HRMS_ADMIN",
"tenantId": "pg"
}
],
"active": true,
"tenantId": "pg",
"permanentCity": "Kaikoo"
},
"msgId": "1695889012604|en_IN",
"plainAccessRequest": {}
},
"Mdms": {
"tenantId": "pg",
"schemaCode": "Owner.cardetialsTest",
"data": {
"ownerName": "mustakim N koujalagi1001",
"contectNumber": [123,9090],
"address": "",
"state": "",
"RTO": 1001,
"car": {
"moduleName": "122",
"color": "blue",
"carNumber": 123,
"engine": {
"Ename": "",
"capacity": "",
"power": "",
"average": "123"
}
}
},
"isActive": true
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://unified-dev.digit.org/mdms-v2/v2/_create/{{schema}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"RequestInfo": {
"apiId": "Rainmaker",
"authToken": "c54ef5cb-54d9-4ce1-9341-3bd2ba73783e",
"userInfo":{
"id": 1417,
"uuid": "d5dfa5da-c22e-4ce6-9bfd-a779efa7d319",
"userName": "AllAcessNewMDMSAd",
"name": "mustak",
"mobileNumber": "9353822214",
"emailId": "xyz@egovernments.org",
"locale": "string",
"type": "EMPLOYEE",
"roles": [
{
"name": "FSM Administrator",
"code": "FSM_ADMIN",
"tenantId": "pg"
},
{
"name": "Grievance Routing Officer",
"code": "GRO",
"tenantId": "pg"
},
{
"name": "Employee",
"code": "EMPLOYEE",
"tenantId": "pg"
},
{
"name": "FSM Desluding Operator",
"code": "FSM_DSO",
"tenantId": "pg"
},
{
"name": "FSM Employee Report Viewer",
"code": "FSM_REPORT_VIEWER",
"tenantId": "pg"
},
{
"name": "PGR Last Mile Employee",
"code": "PGR_LME",
"tenantId": "pg"
},
{
"name": "System",
"code": "SYSTEM",
"tenantId": "pg"
},
{
"name": "MDMS Admin",
"code": "MDMS_ADMIN",
"tenantId": "pg"
},
{
"name": "SUPER USER",
"code": "SUPERUSER",
"tenantId": "pg"
},
{
"name": "Citizen",
"code": "CITIZEN",
"tenantId": "pg"
},
{
"name": "Department Grievance Routing Officer",
"code": "DGRO",
"tenantId": "pg"
},
{
"name": "HRMS Admin",
"code": "HRMS_ADMIN",
"tenantId": "pg"
}
],
"active": true,
"tenantId": "pg",
"permanentCity": "Kaikoo"
},
"msgId": "1695889012604|en_IN",
"plainAccessRequest": {}
},
"Mdms": {
"tenantId": "pg",
"schemaCode": "Owner.cardetialsTest",
"data": {
"ownerName": "mustakim N koujalagi1001",
"contectNumber": [123,9090],
"address": "",
"state": "",
"RTO": 1001,
"car": {
"moduleName": "122",
"color": "blue",
"carNumber": 123,
"engine": {
"Ename": "",
"capacity": "",
"power": "",
"average": "123"
}
}
},
"isActive": true
}
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-05-28 09:25:15