webAPI set site

Hi,
I’m trying to configure a new site connection using the webAPI more precise the set_site command.
First question can I even create a complete new site using the set_site command or is just update already existing connection?

If I read the documentation it’s saying.

Connections to sites can only be altered in their entirety – thus if a customisation is to be performed over the Web-API any existing connections must be recreated as completely new versions.

So I created a dummy site in the webGUI called myRemote and I can use the get_site command to get all the information but now I try to change it using the set_site.

curl -k "https://MasterIP/MasterSiteName/check_mk/webapi.py?action=set_site&_username=automation&_secret=SECRET&output_format=python" -d "request={'site_id': 'myRemote', 'site_config': {'url_prefix': 'http://myRemoteServer/myRemote/', 'user_sync': None, 'user_login': True, 'insecure': False, 'disabled': False, 'replication': 'slave', 'multisiteurl': 'http://myRemoteServer/myRemote/check_mk/', 'replicate_mkps': True, 'status_host': None, 'socket': ('proxy', {'params': None, 'socket': ('myRemoteServer', 6557)}), 'disable_wato': True, 'alias': u'My Remote', 'timeout': 10, 'persist': False, 'replicate_ec': True}, 'configuration_hash': 'HASH'}"

The Result is this:

{'result': u"Check_MK exception: Failed to parse JSON request: '{'site_id': 'myRemote', 'site_config': {'url_prefix': 'http://myRemoteServer/myRemote/', 'user_sync': None, 'user_login': True, 'insecure': False, 'disabled': False, 'replication': 'slave', 'multisiteurl': 'http://myRemoteServer/myRemote/check_mk/', 'replicate_mkps': True, 'status_host': None, 'socket': ('proxy', {'params': None, 'socket': ('myRemoteServer', 6557)}), 'disable_wato': True, 'alias': u'My Remote', 'timeout': 10, 'persist': False, 'replicate_ec': True}, 'configuration_hash': 'HASH'}': Expecting property name: line 1 column 2 (char 1)", 'result_code': 1}

Thanks in advance.