---
title: "Update a community member, e.g. to end their membership via validTo (#285)"
method: PUT
path: "/api/energy-sharing-community/communities/:id/members/:memberId"
tags: ["Energy Sharing Community"]
---

# Update a community member, e.g. to end their membership via validTo (#285)

`PUT /api/energy-sharing-community/communities/:id/members/:memberId`

## Request

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

## Path parameters

- `id` string, required
- `memberId` string, required

## Query parameters

- `token` string

## Request body

- object
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Updated member

## Other responses

- `404`: Community or member 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)
