curl --location 'https://{{host}}/caseManagement/api/public/analytics/{{streamId}}/updateCase/{{caseId}}' \
--header 'sec-ch-ua: "Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"' \
--header 'AccountId: {{accountId}}' \
--header 'client-app: unified' \
--header 'X-Timezone-Offset: -330' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'auth: {{jwt-code}}' \
--header 'state: configured' \
--header 'Iid: st-084d3c5e-376a-559f-9987-a012bb2bxxxx' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Accept: application/json, text/plain, */*' \
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36' \
--header 'bot-language: en' \
--header 'app-language: en' \
--header 'Referer: http://localhost/builder/app/welcomeflows' \
--header 'sec-ch-ua-platform: "Linux"' \
--data-raw '{
"_id": "ci-1a634e1-3d97-427e-8b23-9b7b0a40xxxx",
"caseTmp": "one",
"name": "case one",
"lname": "case one",
"desc": "this is case one",
"tags": [],
"userInfo": {
"_id": "u-d0db86ae-8a26-51dd-a6d6-5d531c39xxxx",
"name": "",
"emailId": "john.doe@example.com"
},
"accountId": "{{accountId}}",
"iId": "st-5393141c-723b-579d-8265-27dd9b7fxxxx",
"orgId": "o-a55026c9-2abd-5503-b212-5fba600axxxx",
"status": {
"_id": "sts-47a7230-2a07-4b84-879b-e792542cxxxx",
"name": "Open",
"lname": "open",
"statusCategory": "open"
},
"priority": {
"_id": "pr-9d1a24a-1385-45e9-818b-295eab5bxxxx",
"name": "Medium",
"lname": "medium",
"desc": "Moderate urgency"
},
"refId": "CS000100",
"isActive": true,
"dueDate": 1748491380000
}'