1. Likes
plantera-api
Plantera API
  • Plantera API
  • Plant Analyzer
  • Plantera API V2
  • Auth
    • Register
      POST
    • Login
      POST
    • Forgot password
      POST
    • Verify OTP
      POST
    • Reset password
      POST
    • Verify OTP
      POST
    • Logout
      POST
    • Refresh Token
      POST
  • Plants
    • List Plants
      GET
    • Get Plant By Id
      GET
  • Smart Diagnostics
    • Run AI disease diagnostics
      POST
  • My Plants
    • Care
      • Fertilize Plant
      • Water Plant
      • Mark care task as complete
      • Get Upcoming Care Tasks
      • Get Care Calendar
      • Get care habit logs
      • Get care events
    • Identification
      • Identify plant from image
      • Confirm plant identification
    • Diagnosis
      • Diagnose MyPlant
      • Get diagnosis history
    • Settings
      • Update plant image
    • Retrieve user's garden plants
      GET
    • Add plant to garden
      POST
    • Remove plant from garden
      DELETE
    • Update care schedule
      PATCH
  • Profile
    • Update Profile
    • Update Password
    • Update notification preferences
    • Retrieve notification preferences
    • Get Profile
    • Remove Push Token
    • Save Push Token
  • Plants
    • Diagnose Plant
    • Classify Plant
  • Diseases
    • List Diseases
    • Get Disease
  • Diagnostics
    • Get Diagnostic Record
    • List Diagnostic Records
  • Notifications
    • List Notifications
    • Mark Notification Read
  • Posts
    • Comments
      • Create Comment
      • List Comments
      • Delete Comment
    • Likes
      • Toggle Like
        POST
      • Get Likes
        GET
    • List Posts
      GET
    • Create Post
      POST
    • Get Post
      GET
    • Update Post
      PATCH
    • Delete Post
      DELETE
  • Admin
    • Article
      • Create Article
      • List Articles
      • Get Article
      • Update Article
      • Delete Article
  • Schemas
    • DTOs
      • Auth
        • Register
          • RegisterRequest
          • RegisterResponse
        • Login
          • LoginRequest
          • LoginResponse
        • Forgot password
          • ForgotPasswordRequest
          • ForgotPasswordResponse
        • Verify otp
          • VerifyOtpRequest
          • VerifyOtpResponse
        • Reset password
          • ResetPasswordResponse
          • ResetPasswordRequest
        • AuthErrorCode
      • Plant
        • PlantListResponse
        • PlantResponse
        • PlantErrorCode
      • Diagnostic
        • DiseaseResponse
      • My Plants
        • MyPlantsListResponse
        • AddToMyPlantsRequest
        • AddToMyPlantsResponse
        • RemoveFromMyPlantsResponse
        • UpdateScheduleRequest
        • UpdateScheduleResponse
      • Profile
        • UpdateProfileRequest
        • UpdateProfileResponse
        • ChangePasswordRequest
        • ChangePasswordResponse
        • UpdateNotificationPreferencesRequest
        • UpdateNotificationPreferencesResponse
        • GetNotificationPreferencesResponse
      • Common
        • PaginationMeta
    • Envelopes
      • Errors
        • GlobalErrorCode
        • ErrorResponse
      • Success
      • ConflictError
      • ValidationError
    • Models
      • User
        • Model
        • Props
          • FirstName
          • LastName
          • UserName
          • Email
          • Password
      • User
      • Plant
      • Disease
      • MyPlant
      • NotificationPreferences
    • Errors
      • InternalServerError
      • RateLimitError
      • NotFoundError
      • ForbiddenError
      • MethodNotAllowedError
      • BadRequestError
      • UnsupportedMediaTypeError
      • UnauthorizedError
    • Auth
      • dto
        • LogoutResponse
        • RefreshTokenRequest
        • AuthResponse
        • RefreshTokenResponse
      • Errors
        • LoginValidationError
        • ForgotPasswordValidationError
        • RefreshTokenValidationError
        • ResetPasswordValidationError
        • VerifyOtpValidationError
        • LoginUnauthorizedError
        • VerifyOtpBadRequestError
        • RefreshUnauthorizedError
        • ResetPasswordBadRequestError
        • ResetPasswordNotFoundError
        • RegisterValidationError
        • RegisterConflictEmailError
        • RegisterConflictUsernameError
        • LoginConflictError
    • Plants
      • PlantNotFoundError
      • PlantMissingImageError
      • PlantInvalidFileTypeError
      • PlantClassifyResponse
      • PlantListQuery
      • PlantDiagnoseResponse
      • PlantFileSizeExceededError
      • PlantEmptyImageFileError
    • Diseases
      • DiseaseListQuery
      • DiseaseListResponse
      • DiseaseNotFoundError
    • Diagnostics
      • DiagnosticNotFoundError
      • DiagnosticRecord
      • DiagnosticListResponse
      • DiagnosticListQueryDto
      • DiagnosticResponse
    • MyPlants
      • MyPlantListQueryDto
      • CalendarCareQueryDto
      • UpdateScheduleDto
      • MyPlantResponse
      • UpcomingCareResponse
      • MyPlantNotFoundError
      • MyPlantAlreadyExistsError
      • DeleteMyPlantResponse
      • UpdateScheduleValidationError
      • CareLog
      • CareLogListResponse
      • CareEvent
      • CareEventListResponse
      • IdentifyPlantResponse
      • IdentifyPlantSuggestionsResponse
      • ConfirmIdentifyResponse
      • AddToMyPlantsDto
      • CalendarCareResponse
      • AddToMyPlantsValidationError
    • Profile
      • ChangePasswordRequestDto
      • UpdateProfileRequestDto
      • EmailTakenError
      • PasswordIncorrectError
      • PasswordFailedError
      • UserNotFoundError
      • SendEmailOtpDto
      • VerifyEmailOtpDto
      • EmailOtpSentResponse
      • EmailVerifiedResponse
      • RemovePushTokenResponse
      • SavePushTokenResponse
      • Profile
      • GetProfileResponse
      • SavePushTokenDto
      • UpdateNotificationPreferencesRequestDto
      • PushTokenInvalidError
      • ProfileUpdateFailedError
    • Notifications
      • Notification
      • NotificationListResponse
      • NotificationNotFoundError
      • MarkNotificationReadResponse
    • Articles
      • Article
      • CreateArticleDto
      • UpdateArticleDto
      • ArticleListResponse
      • ArticleResponse
      • ArticleNotFoundError
      • ArticleForbiddenError
      • ArticleValidationError
      • ArticleDeleteResponse
    • Community
      • CommunityPost
      • CreateCommunityDto
      • UpdateCommunityDto
      • CommunityListResponse
      • CommunityResponse
      • CommunityNotFoundError
      • CommunityForbiddenError
      • CommunityValidationError
      • Comment
      • CommentResponse
      • CommentListResponse
      • LikeResponse
      • CreateCommentDto
      • CommunityDeleteResponse
    • User1
Github
  1. Likes

Toggle Like

POST
/api/v1/posts/{postId}/like
Maintainer:Not configured

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Query Params

Responses

🟠400Bad Request
application/json
Bodyapplication/json

Example
{
    "success": false,
    "errorCode": "VALIDATION_FAILED",
    "message": "Community post validation failed.",
    "error": "Unprocessable Entity",
    "details": {
        "property1": {
            "code": "string",
            "message": "string"
        },
        "property2": {
            "code": "string",
            "message": "string"
        },
        "title": {
            "code": "REQUIRED",
            "message": "Title is required."
        }
    }
}
🟠401Unauthorized
🟠403Forbidden
🟠405
🟠415
🟠429
🔴500Server Error
Modified at 2026-07-02 17:33:16
Previous
Delete Comment
Next
Get Likes
Built with