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

# Update partner reference for multiple meters

This is a request to set partner references for multiple meters.

# 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": [
    {
      "name": "partner_meter_ref"
    }
  ],
  "paths": {
    "/v1.1/meters/partner_meter_ref": {
      "patch": {
        "description": "This is a request to set partner references for multiple meters.",
        "operationId": "patchV1.1MetersPartner_meter_ref",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchMultiplePartnerCustomMeterRefRequest"
              }
            },
            "text/csv": {
              "schema": {
                "$ref": "#/components/schemas/BatchPatchMultiplePartnerCustomMeterRef"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PatchMultiplePartnerCustomMeterRefRequestOutput"
                }
              }
            },
            "description": "Partner references have been updated successfully."
          },
          "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": "One or more meters could not be found."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseUnprocessableEntity"
                }
              }
            },
            "description": "Supplied meter ids are not unique"
          }
        },
        "security": [
          {
            "http": []
          }
        ],
        "summary": "Update partner reference for multiple meters",
        "tags": [
          "partner_meter_ref"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponseUnauthorized": {
        "type": "object"
      },
      "ErrorResponseForbidden": {
        "type": "object"
      },
      "ErrorResponseNotFound": {
        "type": "object"
      },
      "PatchMultiplePartnerCustomMeterRefRequest": {
        "example": {
          "update_partner_custom_meter_ref": [
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "partner_custom_meter_ref": "partner_custom_meter_ref"
            },
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "partner_custom_meter_ref": "partner_custom_meter_ref"
            }
          ]
        },
        "properties": {
          "update_partner_custom_meter_ref": {
            "description": "The uuids of the meters to be updated",
            "items": {
              "$ref": "#/components/schemas/PartnerCustomMeterRefItem"
            },
            "type": "array"
          }
        },
        "required": [
          "update_partner_custom_meter_ref"
        ],
        "type": "object"
      },
      "PartnerCustomMeterRefItem": {
        "description": "A list uuids for the updated meters",
        "example": {
          "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
          "partner_custom_meter_ref": "partner_custom_meter_ref"
        },
        "properties": {
          "meter_id": {
            "description": "The uuid of a meter be updated.",
            "format": "uuid",
            "type": "string"
          },
          "partner_custom_meter_ref": {
            "description": "The Reference to be used for the meter",
            "type": "string"
          }
        },
        "required": [
          "meter_id",
          "partner_custom_meter_ref"
        ],
        "type": "object"
      },
      "BatchPatchMultiplePartnerCustomMeterRef": {
        "properties": {
          "meter_id": {
            "description": "The uuid of a meter be updated.",
            "format": "uuid",
            "type": "string"
          },
          "partner_custom_meter_ref": {
            "description": "The partner reference for the meter",
            "type": "string"
          }
        },
        "required": [
          "meter_id",
          "partner_custom_meter_ref"
        ],
        "type": "object"
      },
      "PatchMultiplePartnerCustomMeterRefRequestOutput": {
        "example": {
          "update_partner_custom_meter_ref": [
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "partner_custom_meter_ref": "partner_custom_meter_ref"
            },
            {
              "meter_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
              "partner_custom_meter_ref": "partner_custom_meter_ref"
            }
          ]
        },
        "properties": {
          "update_partner_custom_meter_ref": {
            "description": "A list uuids for the updated meters",
            "items": {
              "$ref": "#/components/schemas/PartnerCustomMeterRefItem"
            },
            "type": "array"
          }
        },
        "required": [
          "update_partner_custom_meter_ref"
        ],
        "type": "object"
      },
      "ErrorResponseUnprocessableEntity": {
        "type": "object"
      }
    },
    "securitySchemes": {
      "http": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```