Create disenrollment requests for meters
| Time | Status | User Agent | |
|---|---|---|---|
| Make a request to see history. |
URL Expired
The URL for this request expired after 30 days.
disenrollment_requests
array of objects
required
A list of objects containing details about the meter and disenrollment requests to be created.
disenrollment_requests*
ADD object
content-type
string
enum
Defaults to application/json
Generated from available request content types
application/json,text/csv
Allowed:application/json,text/csv
``200 Disenrollment requests are created successfully for at least one meter.
object
disenrollment_requests
array of objects
required
A list of objects containing details about the meters and created disenrollment requests.
disenrollment_requests*
object
A list of objects containing details about the meters and created disenrollment requests.
meter_id
uuid
required
The uuid of the meter for which the disenrollment request was created.
disenrollment_date
date
required
The date by which you want the meter to be disenrolled. Date format: yyyy-MM-dd.
reason_for_disenrollment
string
required
The reason for disenrolling the meter.
``400 - The date by which you want the meter to be disenrolled. It cannot be today's date and must be a date in the future. - There are disenrollment requests without a reason. - Multiple occurrences of the same meter are present in the request body.
``401 You are not authorized to perform this operation.
``403 You do not have the necessary permissions for this operation.
``404 Some of the meters could not be found.
``409 There is a Pending disenrollment request for the specified meter. A meter can only have one disenrollment request with the status Pending.
Updated 11 months ago
Base URL
https://api.staging.leap.energy/v1.1/enrollment/meters/disenrollment_requests
curl --request POST \
--url https://api.staging.leap.energy/v1.1/enrollment/meters/disenrollment_requests \
--header 'accept: application/json' \
--header 'content-type: application/json'
{
"disenrollment_requests": [
{
"reason_for_disenrollment": "reason_for_disenrollment",
"meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"disenrollment_date": "2000-01-23"
},
{
"reason_for_disenrollment": "reason_for_disenrollment",
"meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"disenrollment_date": "2000-01-23"
}
]
}