announcement

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 / Reporting Services / Delete Data Response

Delete Data Response

Updated on October 10, 2023

Description

This web service deletes a specific customer's data response. The data response must not already been submitted (i.e., sent). The customer can reference a user you're connected to or your own account.

NOTE: If the data response has not been submitted (i.e., sent) and the corresponding data request is closed then a 403 (access denied) is returned.

Version

25.0

HTTP Method

DELETE

Resource URL

/reports/customers/(customerId)/dataResponses/(dataResponseId)

Header

Field Name Value Comments
Authorization Basic credentials

Authorization Required

Yes

Parameters

Parameter Name Description
customerId Id of the customer
dataResponseId Id of the data response

XML Schemas

Request/Response Schema Name
Request None
Response response.xsd

Example Request

The following example deletes the data response that has an id of 9876 for a customer with an id of 675434.

DELETE  /reports/customers/675434/dataResponses/9876

Example Response

The following example shows the results when you call this web service.

<?xml version="1.0" encoding="UTF-8"?>
<response status="Ok"/>
LIVE