POST ./mood
Creates a new mood entry.
Payload
Name | Value Type | Validation | Details |
---|---|---|---|
uaID | integer | Optional | User ID. Must be a natural number greater than zero. |
date | string | Required | Date of the mood entry in YYYY-MM-DD format. |
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
{"uaID": 123,"date": "2023-10-01","type": 1,"tags": ["grades", "family"],"details": "Feeling good about my grades."}
Example Response
{"result": true}
- 200 OK: Mood entry created successfully.
- 400 Bad Request: Validation errors.
- 403 Forbidden: User does not have permission to create mood entries.