---
title: "Add a member to an Energy Sharing community (#285)"
method: POST
path: "/api/energy-sharing-community/communities/:id/members"
tags: ["Energy Sharing Community"]
---

# Add a member to an Energy Sharing community (#285)

`POST /api/energy-sharing-community/communities/:id/members`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/energy-sharing-community/communities/:id/members`
- Auth: none declared

roles is combinable: ["generator"], ["consumer"], ["storage"], or e.g. ["generator","consumer"] for a Prosumer. "storage" is modelable but not yet fed into allocation arithmetic. validTo is optional (omit for an open-ended membership).

## Path parameters

- `id` string, required

## Query parameters

- `token` string

## Request body

- object
  - `maloId` string
  - `mastrNummer` string
  - `name` string
  - `roles` string[], required
  - `generatorSharePercent` number
  - `consumerSharePercent` number
  - `validFrom` string, required
  - `validTo` string
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Updated community with the new member

## Other responses

- `404`: Community not found

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
