---
updatedAt: 2026-09-16T09:37:59.000Z
agentTools:
  projectIndex: https://developer.leap.energy/llms.txt
---

# Create disenrollment requests for meters

This is a request to disenroll multiple meters at the requested date. 
Note that if a meter is Active in a program, Leap will remove the meter from that program as soon as possible.
This could be the end of the current month or current participation period depending on the program.
Changes are applied if at least one meter can be found. Disenrollment  requests for unknown meters are discarded.
Leap skips a meter whose participation status Leap has locked on dates that the request would change, and lists it in `skipped_meters`. Leap changes nothing for a skipped meter, also not on its dates outside the lock. Sending the locked status again for those dates is accepted.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "contact": {
      "email": "apiteam@leap.energy"
    },
    "description": "Manage the enrollment of your meters.\nYou can request to temporarily not participate in the market by setting an Idle period.\nYou can request to permanently withdraw from the market by requesting a Disenrollment.\nDon't forget to select the right server in the dropdown on the left, and to authorize with your JWT token on the right (don't add Bearer in front, just the token).",
    "title": "Manage meters",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.staging.leap.energy"
    },
    {
      "url": "https://api.leap.energy"
    }
  ],
  "tags": [
    {
      "description": "Manage the disenrollment requests of your meters. \nA meter can not be enrolled in any programs while being disenrolled.\nPlease see `participate` endpoints if you want to participate again in the market with a meter that was disenrolled.\n\nSome endpoints accept `text/csv` as content type. For those endpoints, please be aware of the following constraints:\n- Accepted column delimiters are: `,`, `;`, `|`.\n- Accepted line delimiters are: `\\r`, `\\r\\n`, `\\n`.\n- Double quotes can be used as text qualifier. The text can also be not quoted if it does not contain special characters.",
      "name": "disenroll"
    }
  ],
  "paths": {
    "/v1.1/enrollment/meters/disenrollment_requests": {
      "post": {
        "description": "This is a request to disenroll multiple meters at the requested date. \nNote that if a meter is Active in a program, Leap will remove the meter from that program as soon as possible.\nThis could be the end of the current month or current participation period depending on the program.\nChanges are applied if at least one meter can be found. Disenrollment  requests for unknown meters are discarded.\nLeap skips a meter whose participation status Leap has locked on dates that the request would change, and lists it in `skipped_meters`. Leap changes nothing for a skipped meter, also not on its dates outside the lock. Sending the locked status again for those dates is accepted.",
        "operationId": "postV1.1EnrollmentMetersDisenrollment_requests",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostMultipleMeterDisenrollmentRequestRequest"
              }
            },
            "text/csv": {
              "schema": {
                "$ref": "#/components/schemas/CsvMeterDisenrollmentRequestToPost"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "One meter skipped": {
                    "value": {
                      "disenrollment_requests": [
                        {
                          "meter_id": "11111111-1111-1111-1111-111111111111",
                          "disenrollment_date": "2026-12-01",
                          "reason_for_disenrollment": "Customer moved"
                        }
                      ],
                      "skipped_meters": [
                        {
                          "meter_id": "f5c5e328-e325-4d6d-b357-5015ed5962a7",
                          "reason": "Participation locked by Leap"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/PostMultipleMeterDisenrollmentRequestRequestOutput"
                }
              }
            },
            "description": "Disenrollment requests are created successfully for at least one meter."
          },
          "400": {
            "content": {
              "application/json": {
                "examples": {
                  "Meter id is not a UUID": {
                    "value": {
                      "title": "Meter id is not a UUID",
                      "status": 400,
                      "details": {
                        "meter_id": "abcdef"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseBadRequest"
                }
              }
            },
            "description": "- 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.\n- There are disenrollment requests without a reason.\n- Multiple occurrences of the same meter are present in the request body."
          },
          "401": {
            "content": {
              "application/json": {
                "examples": {
                  "Unauthorized": {
                    "value": {
                      "title": "Unauthorized",
                      "status": 401,
                      "details": {}
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseUnauthorized"
                }
              }
            },
            "description": "You are not authorized to perform this operation."
          },
          "403": {
            "content": {
              "application/json": {
                "examples": {
                  "Forbidden": {
                    "value": {
                      "title": "You do not have the necessary permissions for this operation",
                      "status": 403,
                      "details": {}
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseForbidden"
                }
              }
            },
            "description": "You do not have the necessary permissions for this operation."
          },
          "404": {
            "content": {
              "application/json": {
                "examples": {
                  "Meter not found": {
                    "value": {
                      "title": "Meter not found",
                      "status": 404,
                      "details": {
                        "meter_id": "f5c5e328-e325-4d6d-b357-5015ed5962a7"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseNotFound"
                }
              }
            },
            "description": "Some of the meters could not be found."
          },
          "409": {
            "content": {
              "application/json": {
                "examples": {
                  "Conflict": {
                    "value": {
                      "title": "Conflict",
                      "status": 409,
                      "details": {}
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseConflict"
                }
              }
            },
            "description": "There is a `Pending` disenrollment request for the specified meter. A meter can only have one disenrollment request with the status `Pending`."
          },
          "423": {
            "content": {
              "application/json": {
                "examples": {
                  "Participation locked by Leap": {
                    "value": {
                      "title": "Participation locked by Leap",
                      "status": 423,
                      "details": {
                        "meter_ids": "f5c5e328-e325-4d6d-b357-5015ed5962a7, 0b3a7e8d-2c4f-4a91-9d5e-6f1c2b8a4e70"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseLocked"
                }
              }
            },
            "description": "Leap has locked the participation status of every meter in the request on dates that the request would change."
          }
        },
        "security": [
          {
            "http": []
          }
        ],
        "summary": "Create disenrollment requests for meters",
        "tags": [
          "disenroll"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponseBadRequest": {
        "type": "object"
      },
      "ErrorResponseUnauthorized": {
        "type": "object"
      },
      "ErrorResponseForbidden": {
        "type": "object"
      },
      "ErrorResponseNotFound": {
        "type": "object"
      },
      "ErrorResponseLocked": {
        "type": "object"
      },
      "ErrorResponseConflict": {
        "type": "object"
      },
      "SkippedMeter": {
        "description": "A meter that Leap skipped. Leap changed nothing for this meter.",
        "example": {
          "meter_id": "11111111-1111-1111-1111-111111111111",
          "reason": "Participation locked by Leap"
        },
        "properties": {
          "meter_id": {
            "description": "The uuid of the skipped meter.",
            "example": "11111111-1111-1111-1111-111111111111",
            "format": "uuid",
            "type": "string"
          },
          "reason": {
            "description": "Why Leap skipped the meter.",
            "example": "Participation locked by Leap",
            "type": "string"
          }
        },
        "required": [
          "meter_id",
          "reason"
        ],
        "type": "object"
      },
      "PostMultipleMeterDisenrollmentRequestRequest": {
        "example": {
          "disenrollment_requests": [
            {
              "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",
              "reason_for_disenrollment": "reason_for_disenrollment"
            }
          ]
        },
        "properties": {
          "disenrollment_requests": {
            "description": "A list of objects containing details about the meter and disenrollment requests to be created.",
            "items": {
              "$ref": "#/components/schemas/MeterDisenrollmentRequestToPost"
            },
            "type": "array"
          }
        },
        "required": [
          "disenrollment_requests"
        ],
        "type": "object"
      },
      "MeterDisenrollmentRequestToPost": {
        "description": "A list of objects containing details about the meter and disenrollment requests to be created.",
        "example": {
          "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "disenrollment_date": "2000-01-23",
          "reason_for_disenrollment": "reason_for_disenrollment"
        },
        "properties": {
          "meter_id": {
            "description": "The uuid of the meter to disenroll.",
            "format": "uuid",
            "type": "string"
          },
          "disenrollment_date": {
            "description": "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.",
            "format": "date",
            "type": "string"
          },
          "reason_for_disenrollment": {
            "description": "The reason for disenrolling the meter.",
            "type": "string"
          }
        },
        "required": [
          "disenrollment_date",
          "meter_id",
          "reason_for_disenrollment"
        ],
        "type": "object"
      },
      "CsvMeterDisenrollmentRequestToPost": {
        "properties": {
          "meter_id": {
            "description": "The uuid of the meter to disenroll.",
            "format": "uuid",
            "type": "string"
          },
          "disenrollment_date": {
            "description": "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. Date format: `yyyy-MM-dd`.",
            "format": "date",
            "type": "string"
          },
          "reason_for_disenrollment": {
            "description": "The reason for disenrolling the meter.",
            "type": "string"
          }
        },
        "required": [
          "disenrollment_date",
          "meter_id",
          "reason_for_disenrollment"
        ],
        "type": "object"
      },
      "PostMultipleMeterDisenrollmentRequestRequestOutput": {
        "example": {
          "disenrollment_requests": [
            {
              "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",
              "reason_for_disenrollment": "reason_for_disenrollment"
            }
          ],
          "skipped_meters": [
            {
              "meter_id": "11111111-1111-1111-1111-111111111111",
              "reason": "Participation locked by Leap"
            },
            {
              "meter_id": "11111111-1111-1111-1111-111111111111",
              "reason": "Participation locked by Leap"
            }
          ]
        },
        "properties": {
          "disenrollment_requests": {
            "description": "A list of objects containing details about the meters and created disenrollment requests.",
            "items": {
              "$ref": "#/components/schemas/MeterDisenrollmentRequestToPostOutput"
            },
            "type": "array"
          },
          "skipped_meters": {
            "description": "The meters that Leap skipped. Leap created no disenrollment request for these meters.",
            "items": {
              "$ref": "#/components/schemas/SkippedMeter"
            },
            "type": "array"
          }
        },
        "required": [
          "disenrollment_requests"
        ],
        "type": "object"
      },
      "MeterDisenrollmentRequestToPostOutput": {
        "description": "A list of objects containing details about the meters and created disenrollment requests.",
        "example": {
          "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "disenrollment_date": "2000-01-23",
          "reason_for_disenrollment": "reason_for_disenrollment"
        },
        "properties": {
          "meter_id": {
            "description": "The uuid of the meter for which the disenrollment request was created.",
            "format": "uuid",
            "type": "string"
          },
          "disenrollment_date": {
            "description": "The date by which you want the meter to be disenrolled. Date format: `yyyy-MM-dd`.",
            "format": "date",
            "type": "string"
          },
          "reason_for_disenrollment": {
            "description": "The reason for disenrolling the meter.",
            "type": "string"
          }
        },
        "required": [
          "disenrollment_date",
          "meter_id",
          "reason_for_disenrollment"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "http": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```