Updates a existing v2 BuinessService.
POST
/businessservice/v2/_updateLast modified: 8 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
ResponseInfo
object
optional
BusinessService
array[object (BusinessService) {9}]
optional
Used for search result and create only
tenantId
string
required
Unique Identifier of ULB
>= 2 characters<= 256 characters
uuid
string
optional
Unique Identifier uuid
>= 2 characters<= 256 characters
businessService
string
required
Unique name of business service
>= 2 characters<= 256 characters
business
string
required
<= 256 characters
getUri
string
optional
>= 2 characters<= 1024 characters
postUri
string
optional
>= 2 characters<= 1024 characters
businessServiceSla
integer <int64>
optional
states
array[object (State) {12}]
required
auditDetails
object
optional
Example
{
"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": {}
}
]
}
Last modified: 8 months ago