My Project
  1. Post
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
        GET
      • Add Post
        POST
      • Update Post
        PATCH
      • Get Post
        GET
      • Get My Post
        GET
      • Detail Post By Id
        GET
      • Get Trending Posts
        GET
      • Get Most Viewed Post
        GET
      • get specfic user post
        GET
      • Record Fav_Unfav post
        POST
      • Get Favt Post
        GET
      • Record Views
        POST
      • All Posts Views
        GET
      • Add Comment
        POST
      • Get Comments
        GET
      • Get Collection List
        GET
      • Get Post Collection
        GET
      • Remove Collection
        DELETE
      • Soft Delete Post
        DELETE
      • Delete Post
        DELETE
      • Update Sold Type
        PUT
      • report post
        POST
      • update thumnail of posts
        POST
    • ChatRoom/Messages
      • Create Chatroom
      • Send Message
      • Get Messages
      • Get ChatRoom
      • Update block status
      • Delete Message
    • Town Hall
      • Add townhall post
      • get town hall post
      • get specific user townhall post
      • reaction on townhall post
      • Add replies
      • get replies
      • Reaction On reply
      • get Location search
      • Report Townhall 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. Post

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
Previous
Add Post
Next
Get Post
Built with