Create Schema
DevelopingPOST
/mdms-v2/schema/v1/_createLast modified: 7 months ago
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params text/plain
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": {}
},
"SchemaDefinition": {
"tenantId": "pg",
"code": "Owner.cardetialsTest",
"description": "ChargeSlabs ",
"definition": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "Root Schema",
"required": [
"ownerName",
"RTO",
"car"
],
"x-unique": [
"ownerName"
],
"properties": {
"ownerName": {
"type": "string",
"title": "The ownerName Schema"
},
"contectNumber": {
"type": "array",
"title": "The contectNumber Schema",
"items": {
"type": "number"
}
},
"address": {
"type": "string",
"title": "The address Schema"
},
"state": {
"type": "string"
},
"RTO": {
"type": "integer",
"default": 0
},
"car": {
"type": "object",
"default": {},
"title": "The car Schema",
"required": [
"moduleName",
"carNumber"
],
"properties": {
"moduleName": {
"type": "string",
"default": "",
"title": "The moduleName Schema"
},
"color": {
"type": "string",
"default": "",
"title": "The color Schema"
},
"carNumber": {
"type": "integer",
"default": 0,
"title": "The carNumber Schema"
},
"engine": {
"type": "object",
"default": {},
"title": "The engine Schema",
"properties": {
"Ename": {
"type": "string",
"default": "",
"title": "The Ename Schema"
},
"capacity": {
"type": "string",
"default": "",
"title": "The capacity Schema",
"examples": [
""
]
},
"power": {
"type": "string",
"default": "",
"title": "The power Schema"
},
"average": {
"type": "string",
"default": "",
"title": "The average Schema"
}
}
}
}
}
}
}
}
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 7 months ago