service create
DevelopingPOST
/service-request/service/v1/_createLast modified: 7 months ago
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
RequestInfo
object
required
apiId
null
required
ver
null
required
ts
null
required
action
string
required
did
null
required
key
null
required
msgId
string
required
userInfo
object
required
authToken
string
required
tenantId
string
required
code
string
required
Service
object
required
tenantId
string
required
serviceDefId
string
required
isActive
boolean
required
attributes
array [object {3}]
required
additionalDetails
object
required
accountId
string
required
clientId
string
required
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"
},
"tenantId": "pg.citya",
"code": "HEALTH1",
"Service": {
"tenantId": "pg.citya",
"serviceDefId": "c18ddd97-d498-4ee3-a8c1-544c9323f8e0",
"isActive": true,
"attributes": [
{
"attributeCode": "ATTR1",
"value": "Apple",
"additionalDetails": {}
},
{
"attributeCode": "ATTR2",
"value": 2,
"additionalDetails": {}
},
{
"attributeCode": "ATTR3",
"value": [
"Orange"
],
"additionalDetails": {}
}
],
"additionalDetails": {},
"accountId": "5d11a49d-9fb8-484b-905b-dd55f3512781",
"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