curl --location --request POST 'https://unified-dev.digit.org/egov-workflow-v2/egov-wf/businessservice/_create' \
--header 'Content-Type: application/json' \
--data-raw '{
"RequestInfo": {
"apiId": null,
"ver": null,
"ts": null,
"action": "POST",
"did": null,
"key": null,
"msgId": "5bfa85e7-dfa1-47c8-98b2-747bf552be86",
"authToken": "50b80fa6-bec2-438e-a168-ce5ad53770b5"
},
"BusinessServices": [
{
"tenantId": "pg",
"businessService": "WaterManegament7",
"business": "work",
"businessServiceSla": 123,
"states": [
{
"sla": 1234,
"state": null,
"applicationStatus":null ,
"docUploadRequired": false,
"isStartState": true,
"isTerminateState": false,
"isStateUpdatable": true,
"actions": [
{
"action": "APPLY",
"nextState": "PENDINGFORASSIGNMENT",
"roles": [
"CITIZEN"
]
}
]
},
{
"sla": null,
"state": "PENDINGFORASSIGNMENT",
"applicationStatus": "PENDINGFORASSIGNMENT",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": false,
"isStateUpdatable": false,
"actions": [
{
"action": "ASSIGN",
"nextState": "PENDINGATLME",
"roles": [
"EMPLOYEE"
]
}
]
},
{
"sla": null,
"state": "PENDINGATLME",
"applicationStatus": "PENDINGATLME",
"isStateUpdatable": false,
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": true
}
]
}
]
}'
{
"ResponseInfo": {},
"BusinessService": [
{
"tenantId": "string",
"uuid": "string",
"businessService": "string",
"business": "string",
"getUri": "string",
"postUri": "string",
"businessServiceSla": 0,
"states": [
{
"uuid": "string",
"tenantId": "string",
"businessServiceId": "string",
"sla": 0,
"state": "string",
"applicationStatus": "string",
"docUploadRequired": true,
"isStartState": true,
"isTerminateState": true,
"isStateUpdatable": true,
"actions": [
{
"uuid": "string",
"tenantId": "string",
"currentState": "string",
"action": "string",
"nextState": "string",
"roles": [
"string"
],
"active": true,
"auditDetails": {}
}
],
"auditDetails": {}
}
],
"auditDetails": {}
}
]
}