- OUTBACK APIs
- User
- Post
- Get Popular Categories PostGET
- Add PostPOST
- Update PostPATCH
- Get PostGET
- Get My PostGET
- Detail Post By IdGET
- Get Trending PostsGET
- Get Most Viewed PostGET
- get specfic user postGET
- Record Fav_Unfav postPOST
- Get Favt PostGET
- Record ViewsPOST
- All Posts ViewsGET
- Add CommentPOST
- Get CommentsGET
- Get Collection ListGET
- Get Post CollectionGET
- Remove CollectionDELETE
- Soft Delete PostDELETE
- Delete PostDELETE
- Update Sold TypePUT
- report postPOST
- update thumnail of postsPOST
- ChatRoom/Messages
- Town Hall
- notfication
- Category
- Payments
- PAYMENTS APIS
Update Post
Developing
PATCH
/post-mgt/get-posts/edit-post
Request
Query Params
post_id
string
optional
Header Params
Authorization
string
optional
Example:
bearer accessToken
Body Params application/json
object {0}
Example
{
"postDetails": {
"title": "A5 Audi",
"additional_props": {
"variant": {
"key": "ferrai",
"value": "ferrari"
}
}
}
}
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 PATCH 'http://13.239.78.144:3000/api/v1/post-mgt/get-posts/edit-post?post_id' \
--header 'Authorization: bearer accessToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"postDetails": {
"title": "A5 Audi",
"additional_props": {
"variant": {
"key": "ferrai",
"value": "ferrari"
}
}
}
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"status": 1,
"statusCode": 200,
"message": "upated post",
"data": {
"media": {
"videoUrl": "https://outback-prod-bucket.s3.ap-southeast-2.amazonaws.com/image_picker_8F2E20B8-1402-41AA-837D-EBB4330E6970-3349-00000146DCF93B78trim.3AB1D346-ABEC-4D67-8F01-CEE2AE8DFBB8.MOV",
"videoThumbnail": "https://source.unsplash.com/300x200/?technology",
"photoUrl": [
"https://outback-prod-bucket.s3.ap-southeast-2.amazonaws.com/image_picker_5A0BFD4E-151C-4994-850E-4F336F9C893E-3349-00000146EA1DCD75.jpg"
]
},
"postDetails": {
"title": "A5 Audi",
"description": "This is a detailed description of the laptop.",
"category": "cars_vehicles",
"additional_props": {
"make": {
"key": "audi",
"value": "Audi"
},
"variant": {
"key": "audi A5",
"value": "Ferrari 448"
},
"body_type": {
"key": "coupe",
"value": "Coupe"
},
"fuel_type": {
"key": "petrol",
"value": "Petrol"
},
"colour": {
"key": "white",
"value": "white"
},
"drive_train": {
"key": "rwd",
"value": "RWD"
},
"odometer": {
"key": "30000",
"value": 30000
},
"transmission": {
"key": "manual",
"value": "Manual"
},
"air_conditioning": {
"key": "true",
"value": true
},
"is_registered": {
"key": "true",
"value": true
},
"managed_by": {
"key": "private_owner",
"value": "Private Owner"
}
},
"price": 400000,
"currency": "USD"
},
"contactInfo": {
"location": {
"type": "Point",
"coordinates": [
29.47872,
-25.77223
]
},
"address": {
"place": "nav3ddd",
"zip_code": "0"
},
"name": "John photo",
"profile_photo_url": "https://outback-prod-bucket.s3.ap-southeast-2.amazonaws.com/2p4DsyO5qaVWBu4nAfTdkgrIswH%201.png",
"is_phone_show": false,
"phone": "1234567890"
},
"favourite": 0,
"views": 0,
"_id": "67f7d558da6dfc1128c823cb",
"user": "675a87b80a7c786f3d52a106",
"isFavourite": false,
"isSold": false,
"isDeleted": false,
"is_draft": false,
"objectionable_post": false,
"main_category": "cars_vehicles",
"createdAt": "2025-04-10T14:27:36.315Z",
"updatedAt": "2025-04-10T14:30:29.359Z",
"__v": 0
}
}
Modified at 2025-03-04 07:51:11