[Service] Tracker
  1. message
[Service] Tracker
  • tracker-api
    • for-patient
      • Record multiple symptoms
      • Filter tasks
      • Filter Failed Tasks
      • Read Multi Task
      • Find Active Instances
      • Load Severity Trend Data
      • Find symptoms by ctcae codes and severity
      • Onboard
      • Close tracker
    • for-internal
      • tracker
        • Submit an on-going task
        • Update task
        • Resolve
        • Find Active Instances
      • patient
        • Find Patient Severities
        • Load Severity Trend Data
        • Find Patient Symptoms
        • Reset patient
      • treatment
        • Sync PIL Codes with their side effects
      • symptom
        • Upsert Multiple Symptoms
      • message
        • Filter Messages
          POST
        • Upsert Multiple Messages
          PUT
    • system
      • Get system version
  • dataflow
    • for-patient
      • Start an Instance
      • Throw Message
    • for-internal
      • Upsert a Process
  1. message

Upsert Multiple Messages

Testing
tracker - local
http://localhost:8081/
tracker - local
http://localhost:8081/
PUT
api/internal/v1/messages/upsert-multiple-messages

Request

Header Params
username
string 
required
Example:
{{username}}
password
string 
required
Example:
{{password}}
Body Params application/json
messages
array [object {3}] 
required
id
integer 
required
message
string 
required
type
enum<string> 
required
enum
Allowed values:
CONFIRMATIONCALL_TO_ACTIONFEEDBACK
Example
{
    "messages": [
        {
            "id": 0,
            "message": "string",
            "type": "CONFIRMATION"
        }
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:8081/api/internal/v1/messages/upsert-multiple-messages' \
--header 'username: content-synchronizer' \
--header 'password: 5BW9ow4COZOaz5eIj81Ot27LhwFH4EMO' \
--header 'Content-Type: application/json' \
--data-raw '{
    "messages": [
        {
            "id": 0,
            "message": "string",
            "type": "CONFIRMATION"
        }
    ]
}'

Responses

🟢200OK
application/json
Body
status
string 
required
data
array[integer]
required
return array of success messages
Examples
{
    "messages": [
        {
            "id": 4,
            "type": "CALL_TO_ACTION",
            "attributes": {
                "ctcaeCode": "12345678",
                "severity": "G1",
                "authorName": "Minh-Luan H. Phan",
                "authorTitle": "PhD"
            },
            "message": "Due to have G1 severity, you should take a rest"
        },
        {
            "id": 5,
            "type": "CALL_TO_ACTION",
            "attributes": {
                "ctcaeCode": "12345678",
                "severity": "G2",
                "authorName": "Minh-Luan H. Phan",
                "authorTitle": "PhD"
            },
            "message": "Due to have G2 severity, you should drink a cup of water"
        },
        {
            "id": 6,
            "type": "CALL_TO_ACTION",
            "attributes": {
                "ctcaeCode": "12345678",
                "severity": "G3",
                "authorName": "Minh-Luan H. Phan",
                "authorTitle": "PhD"
            },
            "message": "Due to have G3 severity, you should go to the hospital"
        }
    ]
}
Modified at 2024-03-17 12:45:37
Previous
Filter Messages
Next
Get system version
Built with