WEBWebUserUpdate
| Initial Build | 2008.01 |
| xWeb | Web Method |
| Response Type | object |
This method can be used to update a web user's customer record. It is a simple edit and only contains the required fields for eWeb.
Parameters
oWebUser (WebUserType).
Response
The updated WebUserType is returned.
XML Method
Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>df3d1644-ba3e-4dc7-8399-ae06ee6063e5</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBWebUserUpdate>
<!--Optional:-->
<ns:oWebUser>
<ns:Individual>
<ns:ind_cst_key>207d1a31-567e-4a97-ac21-a1923a092755</ns:ind_cst_key>
<ns:ind_first_name>Robert</ns:ind_first_name>
<ns:ind_mid_name></ns:ind_mid_name>
<ns:ind_last_name>Smith</ns:ind_last_name>
<ns:ind_full_name_cp>Robert Smith</ns:ind_full_name_cp>
<ns:ind_token></ns:ind_token>
</ns:Individual>
<ns:Customer>
<ns:cst_recno>82896</ns:cst_recno>
<ns:cst_web_login>bsmith</ns:cst_web_login>
<ns:cst_new_password>123</ns:cst_new_password>
<ns:cst_new_password_confirm>123</ns:cst_new_password_confirm>
</ns:Customer>
<ns:Email>
<ns:eml_address>bsmith@avectra.com</ns:eml_address>
</ns:Email>
<ns:Business_Address>
<ns:adr_city>Falls Church</ns:adr_city>
<ns:adr_state>VA</ns:adr_state>
<ns:adr_post_code>22043</ns:adr_post_code>
<ns:adr_country>UNITED STATES</ns:adr_country>
</ns:Business_Address>
<ns:Business_Phone>
<ns:phn_number>7035067000</ns:phn_number>
</ns:Business_Phone>
<ns:Business_Phone_XRef>
<ns:cph_extension></ns:cph_extension>
</ns:Business_Phone_XRef>
<ns:Business_Fax>
<ns:fax_number>7035067001</ns:fax_number>
</ns:Business_Fax>
<ns:Business_Fax_XRef>
<ns:cfx_extension></ns:cfx_extension>
</ns:Business_Fax_XRef>
</ns:oWebUser>
</ns:WEBWebUserUpdate>
</soapenv:Body>
</soapenv:Envelope>
Sample Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>df3d1644-ba3e-4dc7-8399-ae06ee6063e5</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBWebUserUpdateResponse xmlns="http://www.avectra.com/2005/">
<WEBWebUserUpdateResult>
<Individual>
<ind_cst_key>207d1a31-567e-4a97-ac21-a1923a092755</ind_cst_key>
<ind_first_name>Robert</ind_first_name>
<ind_last_name>Smith</ind_last_name>
<ind_full_name_cp>Robert Smith</ind_full_name_cp>
</Individual>
<Customer>
<cst_recno>82896</cst_recno>
<cst_web_login>bsmith</cst_web_login>
</Customer>
<Email>
<eml_address>bsmith@avectra.com</eml_address>
</Email>
<Business_Address>
<adr_city>Falls Church</adr_city>
<adr_state>VA</adr_state>
<adr_post_code>22043</adr_post_code>
<adr_country>UNITED STATES</adr_country>
</Business_Address>
<Business_Phone>
<phn_number>7035067000</phn_number>
</Business_Phone>
<Business_Fax>
<fax_number>7035067001</fax_number>
</Business_Fax>
</WEBWebUserUpdateResult>
</WEBWebUserUpdateResponse>
</soap:Body>
</soap:Envelope>
JSON Method
Updates a customer record.
Use this endpoint to update a customer's password if they cannot remember the old one.
SECURITY WARNING: this endpoint call NEEDS to be protected behind a security token implemented by the 3rd party. If this endpoint is available to be called by a "bad actor", they could reset a customer's password by simply knowing their email address and take control of their account.
If the old password is known, use the reset password endpoint.
GET n/a
POST /xweb/JSON/WEBWebUserUpdate
DATA: JSON
{
"WEBWebUserUpdate": {
"oWebUser": {
"CurrentKey": "ec8ff4c0-f5a6-4812-b313-75dd5dba8fd1",
"Customer": {
"cst_key": "ec8ff4c0-f5a6-4812-b313-75dd5dba8fd1",
"cst_recno": "240656",
"cst_new_password": "pass304D",
"cst_new_password_confirm": "pass304D"
}
}
}
}
Sample Response
SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
{
"WebUserType": {
"CurrentKey": "ec8ff4c0-f5a6-4812-b313-75dd5dba8fd1",
"Individual": {
"ind_cst_key": "ec8ff4c0-f5a6-4812-b313-75dd5dba8fd1",
"ind_first_name": "JasonTest1",
"ind_mid_name": "D",
"ind_last_name": "WattsTest1",
"ind_full_name_cp": "Mr. JasonTest1 D WattsTest1",
"ind_token": "c29956ed-3677-416d-bd52-dec4ac31b8d6"
},
"Customer": {
"cst_recno": "240656"
},
"Organization_XRef": null,
"Organization": null,
"Email": {
"eml_address": "jwatts1980+Test1@gmail.com"
},
"Website": null,
"Messaging": null,
"Business_Address_XRef": null,
"Business_Address": {
"adr_city": "Houston",
"adr_state": "TX",
"adr_post_code": "77433",
"adr_country": "UNITED STATES"
},
"Business_Address_State": null,
"Business_Address_Country": null,
"Business_Phone_XRef": null,
"Business_Phone": null,
"Business_Phone_Country": null,
"Business_Fax_XRef": null,
"Business_Fax": null,
"Business_Fax_Country": null,
"Home_Address_XRef": null,
"Home_Address": {
"ad2__adr_country": "UNITED STATES"
},
"Home_Address_State": null,
"Home_Address_Country": null,
"Home_Phone": null,
"Home_Phone_Country": null,
"Home_Phone_XRef": null,
"Home_Fax": null,
"Home_Fax_Country": null,
"Home_Fax_XRef": null,
"Address_Change_Log": null,
"TransferToCustomer": null,
"Individual_Custom_Demographics": null,
"Social_Links": null,
"source_code": null
}
}