Updates a existing v2 BuinessService.
POST
/businessservice/v2/_updateModified at: 4 months ago
Can be used only to add new state or action in the workflow. Can update any existing field. Removing of any state is not allowed as applications in that state will be in invalid state
Following Conditions are applied -
- can add states and actions
- can update roles in action, SLA etc.
Request
Header Params
Content-Type
string
optional
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",
"authToken": "50b80fa6-bec2-438e-a168-ce5ad53770b5"
},
"BusinessServices": [
{
"tenantId": "pg",
"uuid": "479c27fa-cf5e-44a9-a884-109df31e6bcd",
"businessService": "WaterManegament12",
"business": "work",
"businessServiceSla": 123,
"states": [
{
"auditDetails": {
"createdBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"lastModifiedBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"createdTime": 1716366762741,
"lastModifiedTime": 1716366762741
},
"uuid": "b3b6ae82-6b63-4ebb-b855-c6ccef4da805",
"tenantId": "pg",
"businessServiceId": null,
"sla": 1234,
"state": null,
"applicationStatus": null,
"docUploadRequired": false,
"isStartState": true,
"isTerminateState": false,
"isStateUpdatable": true,
"actions": [
{
"auditDetails": {
"createdBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"lastModifiedBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"createdTime": 1716366762741,
"lastModifiedTime": 1716366762741
},
"uuid": "a31ecfd0-473c-45f2-b2e5-80159aabf006",
"tenantId": "pg",
"currentState": "b3b6ae82-6b63-4ebb-b855-c6ccef4da805",
"action": "APPLY",
"nextState": "65be5ad8-400d-4dc4-9cca-f0b4e9fdb9e3",
"roles": [
"CITIZEN"
],
"active": true
}
]
},
{
"auditDetails": {
"createdBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"lastModifiedBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"createdTime": 1716366762741,
"lastModifiedTime": 1716366762741
},
"uuid": "65be5ad8-400d-4dc4-9cca-f0b4e9fdb9e3",
"tenantId": "pg",
"businessServiceId": null,
"sla": null,
"state": "PENDINGFORASSIGNMENT",
"applicationStatus": "PENDINGFORASSIGNMENT",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": false,
"isStateUpdatable": false,
"actions": [
{
"auditDetails": {
"createdBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"lastModifiedBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"createdTime": 1716366762741,
"lastModifiedTime": 1716366762741
},
"uuid": "2ee712c8-4009-4e7d-8b55-5bc13129e08b",
"tenantId": "pg",
"currentState": "65be5ad8-400d-4dc4-9cca-f0b4e9fdb9e3",
"action": "ASSIGN",
"nextState": "f68e7851-f222-48d8-9e60-cd2b6eec2ada",
"roles": [
"EMPLOYEE"
],
"active": true
}
]
},
{
"auditDetails": {
"createdBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"lastModifiedBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"createdTime": 1716366762741,
"lastModifiedTime": 1716366762741
},
"uuid": "f68e7851-f222-48d8-9e60-cd2b6eec2ada",
"tenantId": "pg",
"businessServiceId": null,
"sla": null,
"state": "PENDINGATLME",
"applicationStatus": "PENDINGATLME",
"docUploadRequired": false,
"isStartState": false,
"isTerminateState": true,
"isStateUpdatable": false,
"actions": null
}
],
"auditDetails": {
"createdBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"lastModifiedBy": "3b68bb99-310b-4fb4-ae27-ddb948cab9e3",
"createdTime": 1716366762741,
"lastModifiedTime": 1716366762741
}
}
]
}
Request samples
Responses
ReponseInfo withBusinessService(s) created successfully(201)
BusinessService(s) creation failed(400)
ReponseInfo withBusinessService(s) created successfully
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Modified at 4 months ago