- OUTBACK APIs
- User
- 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
- Town Hall
- notfication
- Category
- Payments
- PAYMENTS APIS
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