Rework patches

This commit is contained in:
Aslan 2025-12-27 00:09:46 +01:00
parent ffeec5108d
commit 6129941676
2 changed files with 10 additions and 52 deletions

View file

@ -13,7 +13,7 @@ Returns a community with id = {id}
}
```
## UPDATE /api/v1/community/{id}/name
## PATCH /api/v1/community/{id}
_Requires an authorization header_
@ -21,40 +21,19 @@ _Requires an authorization header_
```json
{
"name": "string"
"name": "string?",
"description": "string?"
}
```
Updates name for a community with id = {id}
### Response:
```json
{
"id": "string",
"name": "string"
}
```
## PATCH /api/v1/community/{id}/description
_Requires an authorization header_
### Request:
```json
{
"description": "string"
}
```
Updates description for a community with id = {id}
Updates a community with id = {id}
### Response:
```json
{
"id": "string",
"name": "string",
"description": "string"
}
```