POST PEM through the API - formatting issues

Hello Dawid,
Thanks a lot, this works perfectly! I’ll use this solution or a variation thereof in my automation script.

Kind regards,
Mitja