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

@ -37,7 +37,7 @@ Returns all sessions for a user with id = {id}
}
```
## PATCH /api/v1/user/{id}/email
## PATCH /api/v1/user/{id}
_Requires an authorization header_
@ -45,40 +45,19 @@ _Requires an authorization header_
```json
{
"email": "string"
"email": "string?",
"description": "string?"
}
```
Updates email for a user with id = {id}
### Response:
```json
{
"id": "string",
"email": "string"
}
```
## PATCH /api/v1/user/{id}/description
_Requires an authorization header_
### Request:
```json
{
"description": "string"
}
```
Updates description for a user with id = {id}
Updates a user with id = {id}
### Response:
```json
{
"id": "string",
"email": "string",
"description": "string"
}
```