web stats
REST API - PUT codeTemplate - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 08-08-2017, 01:31 AM
noackf noackf is offline
What's HL7?
Join Date: May 2017
Location: Germany
Posts: 1
noackf is on a distinguished road
Post REST API - PUT codeTemplate

Hi all!

I am currently developing a web application that accesses different Mirth instances. I want to be able to import and export components like channels, code templates, channelgroups, as well as codeTemplateLibraries.
For this purpose i rely on the REST API.

I am consuming a lot of HTTP GET requests, which are working perfectly by now.
The PUT for channels does also work fine.
Still there was a problem that i ran into of which i hope you can help me with.

When trying to PUT a code template, the server returns the status-code 200(OK), but when I try to access it in the desktop application( also in my own written application) the code template wont show up and it displays the old amount of codeTemplates, even after refresh and restart.
STILL: I can access it via the REST API(which is weird because in my application it does not show up via REST).
But when i try to import it manually in the desktop application it says : "The selected code template already exists in library "Library 1"."

I cant seem to find the problem here, thanks for your help!
Attached Images
File Type: png codeTemplatePUT.PNG (68.2 KB, 23 views)
File Type: png codeTemplateGET.PNG (184.8 KB, 21 views)
File Type: png codeTemplateConflict.PNG (181.0 KB, 23 views)
Reply With Quote
Old 08-28-2017, 12:37 PM
spookymodem spookymodem is offline
Mirth Newb
Join Date: Aug 2017
Posts: 6
spookymodem is on a distinguished road

Did you ever resolve this issue? I'm experiencing a similar problem: when I put a code library using the REST API, I see the library in the UI but do not see the code templates that belong to that library.
Reply With Quote

channel group, code template, library, rest api

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 07:08 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation