I'm using the Enterprise API "pushsitestousers" from PowerShell, and I can successfully push a site to a user, however, when the password contains a £ sign, I get an error:
Code:
$payloadcontent = '{ "cid": "XXXXXXX", "provhash": "XXXXXXX", "cmd": "pushsitestousers", "data": { "users": "myaccount@mydomiain.com", "persistent": "0", "url": "", "name": "Site Name", "group": "Group", "usernametype": "custom", "username": "myusername", "password": "mypassword£", "notes": "Notes", "fav": "", "decryptid": "0" } }' # Then I run in the payload with this command Invoke-RestMethod -Uri $LASTPASSENDPOINT -Method POST -Body $payloadContent
Response
{ "status": "FAIL", "errors": [ "invalid args" ] }
I assume I'm not passing the json in the correct format, but any advice is welcome.
Thanks
Hi @jay2thejay, welcome to the community.
One of our support team members tried to recreate this issue but was unable to, I would recommend calling our support team so they can troubleshoot this with you directly.