My Project
  1. Town Hall
My Project
  • OUTBACK APIs
    • User
      • Create User
      • Login User
      • Forgot Password
      • Validate otp
      • Reset Password
      • Social login
      • Search Post
      • Update User
      • Get Profile
      • Get User Profile for Web
      • Delete Account
      • Logout
      • Get All Users
      • Update FCM TOKEN
      • Verify User
      • Follow Unfollow User
      • Get User Connections
    • Post
      • Get Popular Categories Post
      • Add Post
      • Update Post
      • Get Post
      • Get My Post
      • Detail Post By Id
      • Get Trending Posts
      • Get Most Viewed Post
      • get specfic user post
      • Record Fav_Unfav post
      • Get Favt Post
      • Record Views
      • All Posts Views
      • Add Comment
      • Get Comments
      • Get Collection List
      • Get Post Collection
      • Remove Collection
      • Soft Delete Post
      • Delete Post
      • Update Sold Type
      • report post
      • update thumnail of posts
    • ChatRoom/Messages
      • Create Chatroom
      • Send Message
      • Get Messages
      • Get ChatRoom
      • Update block status
      • Delete Message
    • Town Hall
      • Add townhall post
        POST
      • get town hall post
        GET
      • get specific user townhall post
        GET
      • reaction on townhall post
        PUT
      • Add replies
        POST
      • get replies
        GET
      • Reaction On reply
        PUT
      • get Location search
        GET
      • Report Townhall post
        POST
    • notfication
      • message notfication
      • message notfication
    • Category
      • Update Category
      • Get Model By Makes
      • get category V2
      • Add Category
      • Add subcategory
      • Get Categories
      • Delete Category
    • Payments
      • Add Card
      • Get Cards
      • Top up Wallet
      • Get Transaction History
      • View Wallet balence
      • Make Payments
      • Update Default Card
      • Add Bank Account
      • Update Bank Account
      • Withdraw to Bank Acc
    • PAYMENTS APIS
      • Create Setup Intent
      • Save Payment Method
      • For getting test payment Id
      • View Balance
      • Add funds to Account
      • Add Bank Account
      • Get User Bank Accounts
      • Select Default Bank Acc
  1. Town Hall

reaction on townhall post

PUT
/town-hall-mgt/reaction-on-townhall-post

Request

Query Params
townhall_post_id
string 
required
Example:
67345d77c41137363ec9f4ab
Header Params
Authorization
string 
required
Example:
bearer {{accessToken}}
Body Params application/json
emoji
string 
required
Example
{
    "reaction_type":"like"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://13.239.78.144:3000/api/v1/town-hall-mgt/reaction-on-townhall-post?townhall_post_id=67345d77c41137363ec9f4ab' \
--header 'Authorization: bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "reaction_type":"like"
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "status": 1,
    "statusCode": 200,
    "message": "Reaction added/updated successfully",
    "data": {
        "townhall_post_id": "6818745a2956d29e91602542",
        "reactions": [
            {
                "emoji": "❤️",
                "createdAt": "2025-05-05T12:25:07.277Z",
                "user": {
                    "_id": "67f8e46246f9ede1448808f5",
                    "name": "test",
                    "profile_photo_url": ""
                }
            },
            {
                "emoji": "♥️",
                "createdAt": "2025-05-05T12:25:07.278Z",
                "user": {
                    "_id": "67f8e45c46f9ede1448808ee",
                    "name": "test",
                    "profile_photo_url": ""
                }
            },
            {
                "emoji": "👌🏻",
                "createdAt": "2025-05-05T12:25:07.278Z",
                "user": {
                    "_id": "67d7ca2e3bb9e0b3827073de",
                    "name": "test",
                    "profile_photo_url": ""
                }
            },
            {
                "emoji": "😂",
                "createdAt": "2025-05-05T12:25:07.278Z",
                "user": {
                    "_id": "67d7d614e1a2a7fbaeae5947",
                    "name": "test",
                    "profile_photo_url": ""
                }
            },
            {
                "emoji": "❤️",
                "createdAt": "2025-05-05T12:25:07.278Z",
                "user": {
                    "_id": "68188a2d5e9561638d26cb10",
                    "name": "test",
                    "profile_photo_url": ""
                }
            }
        ]
    }
}
Modified at 2025-05-02 12:21:17
Previous
get specific user townhall post
Next
Add replies
Built with