@ -244,7 +244,7 @@ You will get a JSON response with user token. You need this user token for makin
```json
```json
{
{
"id": 3,
"id": 3,
"name": "Captain Cook X",
"name": "Captain Cook",
"email": "captaincook@hydra.project",
"email": "captaincook@hydra.project",
}
}
```
```
@ -258,6 +258,15 @@ For any unsuccsesful attempt with invalid token, you will receive a 401 error re
}
}
```
```
If a bearer user token attempts to update any other user but itself, a 409 error response will be relivered
```json
{
"error": 1,
"message": "Not authorized"
}
```
For any unsuccsesful attempt with invalid `user id`, you will receive a 404 not found error response. For example when you are trying to delete a non existing user with id 16, you will receive the following response.
For any unsuccsesful attempt with invalid `user id`, you will receive a 404 not found error response. For example when you are trying to delete a non existing user with id 16, you will receive the following response.