Create service defination
DevelopingPOST
/service-request/service/definition/v1/_createLast modified: 7 months ago
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params text/plain
Example:{
"RequestInfo": {
"apiId": null,
"ver": null,
"ts": null,
"action": "POST",
"did": null,
"key": null,
"msgId": "5bfa85e7-dfa1-47c8-98b2-747bf552be86",
"userInfo": {
"id": 1406,
"uuid": "0cac16a0-6f20-4ab1-8143-f4b1c042d516",
"userName": "AllAcessNew",
"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": "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"
},
"authToken": "b272efa5-bf99-43f9-8714-5af2064ed66c"
},
"ServiceDefinition": {
"tenantId": "pg.citya",
"code": "HEALTH_mustakim1",
"isActive": true,
"attributes": [
{
"tenantId": "pg.citrya",
"code": "ATTR1",
"dataType": "String",
"values": null,
"required": true,
"isActive": true,
"regex": null,
"order": "1",
"additionalDetails": {
"latitude" : 24.22
}
},
{
"tenantId": "pg.citrya",
"code": "ATTR2",
"dataType": "Number",
"values": null,
"required": true,
"isActive": true,
"reGex": null,
"order": "1",
"additionalDetails": {}
},
{
"tenantId": "pg.citrya",
"code": "ATTR3",
"dataType": "MultiValueList",
"values": ["Apple", "Orange", "Pear"],
"required": true,
"isActive": true,
"reGex": null,
"order": "1",
"additionalDetails": {}
}
],
"additionalDetails": {
},
"clientId": "f1737fa6-8ae3-4476-8279-b966406c6066"
}
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 7 months ago