curl --location --request POST 'https://unified-dev.digit.org/egov-workflow-v2/egov-wf/businessservice/_update' \
--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",
"uuid": "8c88b224-bbda-47a7-913c-a1271635f16d",
"businessService": "WaterManegament4",
"business": "work",
"businessServiceSla": 123,
"states": [
{
"auditDetails": {
"createdBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"lastModifiedBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"createdTime": 1714454762743,
"lastModifiedTime": 1714454762743
},
"uuid": "ed1ec758-f231-4d25-862e-6fe9d2000f33",
"tenantId": "pg",
"businessServiceId": null,
"sla": 1234,
"state": null,
"applicationStatus": null,
"docUploadRequired": false,
"isStartState": true,
"isTerminateState": false,
"isStateUpdatable": true,
"actions": [
{
"auditDetails": {
"createdBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"lastModifiedBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"createdTime": 1714454762743,
"lastModifiedTime": 1714454762743
},
"uuid": "9b3c1026-6b6a-4e32-8192-6449623bde75",
"tenantId": "pg",
"currentState": "ed1ec758-f231-4d25-862e-6fe9d2000f33",
"action": "APPLY",
"nextState": "c68d2798-abdd-48ce-8850-16dcb0a86815",
"roles": [
"CITIZEN"
],
"active": true
}
]
},
{
"auditDetails": {
"createdBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"lastModifiedBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"createdTime": 1714454762743,
"lastModifiedTime": 1714454762743
},
"uuid": "c68d2798-abdd-48ce-8850-16dcb0a86815",
"tenantId": "pg",
"businessServiceId": null,
"sla": null,
"state": "PENDINGFORASSIGNMENT",
"applicationStatus": "PENDINGFORASSIGNMENT",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": false,
"isStateUpdatable": false,
"actions": [
{
"auditDetails": {
"createdBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"lastModifiedBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"createdTime": 1714454762743,
"lastModifiedTime": 1714454762743
},
"uuid": "5c139906-3524-42c6-9133-cf2adbef267c",
"tenantId": "pg",
"currentState": "c68d2798-abdd-48ce-8850-16dcb0a86815",
"action": "ASSIGN",
"nextState": "2366b99f-cafe-4d3a-9060-6f86fb7d8154",
"roles": [
"EMPLOYEE"
],
"active": true
}
]
},
{
"auditDetails": {
"createdBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"lastModifiedBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"createdTime": 1714454762743,
"lastModifiedTime": 1714454762743
},
"uuid": "2366b99f-cafe-4d3a-9060-6f86fb7d8154",
"tenantId": "pg",
"businessServiceId": null,
"sla": null,
"state": "PENDINGATLME",
"applicationStatus": "PENDINGATLME",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": true,
"isStateUpdatable": false,
"actions": null
}
],
"auditDetails": {
"createdBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"lastModifiedBy": "afc7eaf1-a25f-46c9-b16f-3f7de29009ff",
"createdTime": 1714454762743,
"lastModifiedTime": 1714454762743
}
}
]
}'
{
"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": {}
}
]
}