API parameters cause 404 error #6141
-
Mirth 4.5.0 I get messages back when I try
I get a 404 error, however, when I try
The only difference between the two is the addition of Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Note in the comments in the thread it links to another issue, so maybe fixed in later releases. And I know you know better to post your mirth version :) |
Beta Was this translation helpful? Give feedback.
-
curl -k -u admin:somepassword -X GET "https://192.168.66.104:8443/api/channels/3185d5f6-08fa-4f63-af3c-013ffbea4b5e/messages?startDate=2024-03-01T09%3A00%3A00.000-0700&endDate=2024-03-29T09%3A00%3A00.000-0700&status=SENT&includeContent=false&offset=0&limit=20" -H "accept: application/json" -H "X-Requested-With: OpenAPI" Works fine for me. |
Beta Was this translation helpful? Give feedback.
-
Thanks @pacmano1 for getting me going in the right direction. This works:
It appears that (a) the milliseconds must be included and (b) the timezone must be specified as an offset. For positive offsets, the plus sign must be specified as %3B. |
Beta Was this translation helpful? Give feedback.
-
Opened issue #6144 |
Beta Was this translation helpful? Give feedback.
Thanks @pacmano1 for getting me going in the right direction. This works:
curl -X GET -su elavy -k "https://interface.harris-chr.com:8443/api/channels/5c19b0fe-251b-40ce-a376-51e5951ba96e/messages?startDate=2020-01-01T00%3A00%3A00.000-0000&endDate=2025-01-01T00%3A00%3A00.000-0000" -H X-Requested-With:whatever -H accept:application/json
It appears that (a) the milliseconds must be included and (b) the timezone must be specified as an offset. For positive offsets, the plus sign must be specified as %3B.