PUT ./mood/{id}
Updates an existing mood entry.
Payload
| Name | Value Type | Validation | Details |
|---|---|---|---|
| id | integer | Required | ID of the mood entry to be updated. |
| type | integer | Optional | Mood type. Must be an integer between -2 and 2. |
| tags | array of strings | Optional | Tags associated with the mood entry. Valid tags are: grades, family, health, homeworks, free_time, colleagues, friends, fun, teachers, pet. |
| details | string | Optional | Additional details about the mood entry. |
Example
{"type": 2,"tags": ["fun", "friends"],"details": "Had a great time with friends."}
Example Response
{"result": true}
- 200 OK: Mood entry updated successfully.
- 400 Bad Request: Validation errors.
- 403 Forbidden: User does not have permission to create mood entries.
