During the current lapse in appropriations, EPA intends to keep the ENERGY STAR website, tools, and resources available, however they will not be updated regularly. Many services may not be available during this time.
Web Service Documentation / Categories / Basic Account Services / Edit Customer
Updated on August 25, 2019
25.0
PUT
/customer/(customerId)
Field Name | Value | Comments |
---|---|---|
Authorization | Basic credentials | |
Content-Type | application/xml |
Yes
None
Request/Response | Schema Name |
---|---|
Request | customer.xsd |
Response | response.xsd |
The following example updates a customer account that has an id of 23421.
PUT /customer/23421<?xml version="1.0" encoding="UTF-8"?> <customer> <includeTestPropertiesInGraphics>false</includeTestPropertiesInGraphics> <billboardMetric>score</billboardMetric> </customer>
The following example updates a customer account that has an id of 23421. If the customer account belongs to Canada, an email preference setting (emailPreferenceCanadianAccount) can also be included which indicates whether the account can receive ENERGY STAR information from the Natural Resources of Canada (NRCAN).
PUT /customer/23421<?xml version="1.0" encoding="UTF-8"?> <customer> <includeTestPropertiesInGraphics>false</includeTestPropertiesInGraphics> <billboardMetric>score</billboardMetric> <emailPreferenceCanadianAccount>true</emailPreferenceCanadianAccount> </customer>
The following example indicates that the customer account was successfully updated.
<?xml version="1.0" encoding="UTF-8"?>
<response status="Ok">
<id>23421</id>
<links>
<link httpMethod="GET" link="/customer/23421" linkDescription="This is the GET url for this Customer."/>
</links>
</response>