PUT ./mood/{id}

Updates an existing mood entry.

Payload

NameValue TypeValidationDetails
idintegerRequiredID of the mood entry to be updated.
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

{
"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.