Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..
2018-12-05 11:17 AM
Hi all,
I'm trying to leverage the UpdateContactInfo soap call but can't get it to work. Getting 400 Bad Request errors so something's off in the structure of my xml but I've tried everything I could find in the API guide and just by trying different combinations. I use powershell for my API scripts and all my other commands are working fine.
Here is what my XML structure looks like in my call:
<UpdateContactInfo xmlns="http://archer-tech.com/webservices/">
<sessionToken>$SessionID</sessionToken>
<userId>$UserID</userId>
<contactInfo>
<ContactTypeId>7</ContactTypeId>
<ContactSubTypeId>2</ContactSubTypeId>
<ContactInfo>$EmailAddress</ContactInfo>
<ContactDefault>true</ContactDefault>
</contactInfo>
</UpdateContactInfo>
Anyone else having issues with the UpdateContactInfo soap call or any other suggestions?
Thanks.
2018-12-05 03:51 PM
Try something like this for email:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateContactInfo xmlns="http://archer-tech.com/webservices/">
<sessionToken>[SESSION_TOKEN]</sessionToken>
<userId>[USER_ID]</userId>
<ContactInfo>
<ContactTypeId>7</ContactTypeId>
<ContactInfo>[EMAIL]</ContactInfo>
<ContactDefault>True</ContactDefault>
<Id>[USER_ID]</Id>
<ContactSubTypeId>2</ContactSubTypeId>
<ContactSubTypeDesc>Business</ContactSubTypeDesc>
</ContactInfo>
</UpdateContactInfo>
</soap:Body>
</soap:Envelope>
2018-12-07 03:33 PM
Tried what you posted and various other combinations of it but still get the 400 bad request errors.
2018-12-07 03:35 PM
Interesting, I used that in API template, and went fine.
You can try API template and see if it works in your environment at all. Maybe you have some issue in API node configuration.
2018-12-07 04:13 PM
You're usng a POST ?
I'm assuming the session ID is for a user that has admin access to update the user contact info?