{
"messages": [
{
"id": 0,
"message": "string",
"type": "CONFIRMATION"
}
]
}
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"
}
]
}'
{
"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"
}
]
}