cancel
Showing results for 
Search instead for 
Did you mean: 
jay2thejay
New Member

Enterprise API help - pushsitestousers

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

1 REPLY 1
GlennD
GoTo Manager

Re: Enterprise API help - pushsitestousers

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.

 

Glenn is a member of the GoTo Community Care Team.

Was your question answered? Please mark it as an Accepted Solution.
Was a post helpful or informative? Give it a Kudo!.

Free new user and admin training
Tags (1)