---
title: "Update community"
method: PATCH
path: "/api/communities/{id}"
tags: ["Communities"]
---

# Update community

`PATCH /api/communities/{id}`

## Request body

- UpdateCommunityInputDto
  - `hostname` string
  - `name` string
  - `email` string
  - `owners` string[]

## Response `200`

Community

- Community
  - `_id` ObjectId, required
  - `hostname` string, required
  - `name` string, required
  - `email` string, required
  - `creator` string, required
  - `owners` string[], required
  - `discordGuildId` string
  - `discordLinkNonce` string, required
  - `isPublic` boolean, required
  - `discordLinkState` 'NOT_SET' | 'PENDING' | 'ACTIVE' | 'DEACTIVE', required

## Changes

- **2023-03-31** `af4ea0086c6f` — 2 breaking, 1 info
  - the `_id` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - removed the required property `features` from the response with the `200` status
  - added `#/components/schemas/ObjectId` to the `_id` response property `allOf` list for the response status `200`

[Change history](https://skmtc.dev/givepraise/apis/praise-api/changes/api/communities/:id/patch.md)

---

[API](https://skmtc.dev/givepraise/apis/praise-api.md) · [All operations](https://skmtc.dev/givepraise/apis/praise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/givepraise/praise-api/revisions/af4ea0086c6f/schema)
