POST ./mood

Creates a new mood entry.

Payload

NameValue TypeValidationDetails
uaIDintegerOptionalUser ID. Must be a natural number greater than zero.
datestringRequiredDate of the mood entry in YYYY-MM-DD format.
typeintegerOptionalMood type. Must be an integer between -2 and 2.
tagsarray of stringsOptionalTags associated with the mood entry. Valid tags are: grades, family, health, homeworks, free_time, colleagues, friends, fun, teachers, pet.
detailsstringOptionalAdditional 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.