REST API - Create Integration "script"


I’m currently trying to figure out how to create an Integration with the API method from

I dont have any problems setting the type, name, username, etc. attributes. But script wont work how i want it to.

Iam having a “normal” script with breaks, collums etc.

but the Problem is everytime i try to run it i get this error msg:

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<pre>Bad Request</pre>

I already tried to make it a oneliner but it doesnt help either.

I am missing something or does it not Support this kind of Scripts?

I am running RC in a Docker environment.
Version: 1.0.3

Can I recommend switching to the Apps system? It has greater functionality and is supported a lot better. Internally we have been moving our integrations over to Apps from scripts.