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

Add Post

POST
/post-mgt/create-post

Request

Header Params
Authorization
string 
required
Example:
bearer {{accessToken}}
Body Params application/json
object {0}
Example
{
  "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",
    "photoUrl": ["https://outback-prod-bucket.s3.ap-southeast-2.amazonaws.com/image_picker_5A0BFD4E-151C-4994-850E-4F336F9C893E-3349-00000146EA1DCD75.jpg"]
  },
  "postDetails": {
    "title": "naveed nizami",
    "description": "This is a detailed description of the laptop.",
    "price": 400000,
    "currency": "USD",
    "category": "real_estate",
    "additional_props": {
      "property_type": {
        "name": "House",
        "key": "house",
        "imageUrl": "https://example.com/images/house.png"
      },
      "bed_rooms": 3,
      "bath_rooms": 2,
      "car_spaces": 1,
      "land_section": {
        "building_size": 1500,
        "land_size": 2000
      }
    }
  },
  "contactInfo": {
    "name": "John photo",
    "profile_photo_url": "https://outback-prod-bucket.s3.ap-southeast-2.amazonaws.com/2p4DsyO5qaVWBu4nAfTdkgrIswH%201.png",
    "location": {
      "lat": "-25.772230",
      "lng": "29.478720"
    },
    "address": {
      "zip_code": "0",
      "place": "nav3ddd"
    },
    "is_phone_show": false,
    "phone": "1234567890"
  }
}

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 POST 'http://13.239.78.144:3000/api/v1/post-mgt/create-post' \
--header 'Authorization: bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "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",
    "photoUrl": ["https://outback-prod-bucket.s3.ap-southeast-2.amazonaws.com/image_picker_5A0BFD4E-151C-4994-850E-4F336F9C893E-3349-00000146EA1DCD75.jpg"]
  },
  "postDetails": {
    "title": "naveed nizami",
    "description": "This is a detailed description of the laptop.",
    "price": 400000,
    "currency": "USD",
    "category": "real_estate",
    "additional_props": {
      "property_type": {
        "name": "House",
        "key": "house",
        "imageUrl": "https://example.com/images/house.png"
      },
      "bed_rooms": 3,
      "bath_rooms": 2,
      "car_spaces": 1,
      "land_section": {
        "building_size": 1500,
        "land_size": 2000
      }
    }
  },
  "contactInfo": {
    "name": "John photo",
    "profile_photo_url": "https://outback-prod-bucket.s3.ap-southeast-2.amazonaws.com/2p4DsyO5qaVWBu4nAfTdkgrIswH%201.png",
    "location": {
      "lat": "-25.772230",
      "lng": "29.478720"
    },
    "address": {
      "zip_code": "0",
      "place": "nav3ddd"
    },
    "is_phone_show": false,
    "phone": "1234567890"
  }
}'

Responses

🟢200Success
application/json
Body
media
object 
required
videoUrl
string 
required
videoThumbnail
string 
required
photoUrl
array[string]
required
postDetails
object 
required
title
string 
required
description
string 
required
price
integer 
required
currency
string 
required
category
string 
required
additional_props
object 
required
postDetails
object 
required
contactInfo
object 
required
name
string 
required
profile_photo_url
string 
required
location
object 
required
address
object 
required
is_phone_show
boolean 
required
phone
string 
required
Example
{
    "media": {
        "videoUrl": "string",
        "videoThumbnail": "string",
        "photoUrl": [
            "string"
        ]
    },
    "postDetails": {
        "title": "string",
        "description": "string",
        "price": 0,
        "currency": "string",
        "category": "string",
        "additional_props": {
            "make": {
                "key": "string",
                "value": "string"
            },
            "variant": {
                "key": "string",
                "value": "string"
            },
            "body_type": {
                "key": "string",
                "value": "string"
            },
            "fuel_type": {
                "key": "string",
                "value": "string"
            },
            "colour": {
                "key": "string",
                "value": "string"
            },
            "drive_train": {
                "key": "string",
                "value": "string"
            },
            "odometer": {
                "key": "string",
                "value": 0
            },
            "transmission": {
                "key": "string",
                "value": "string"
            },
            "air_conditioning": {
                "key": "string",
                "value": true
            },
            "is_registered": {
                "key": "string",
                "value": true
            },
            "managed_by": {
                "key": "string",
                "value": "string"
            },
            "model": {
                "value": "string",
                "key": "string"
            }
        },
        "postDetails": {
            "title": "string",
            "description": "string",
            "category": "string",
            "additional_props": {
                "make": {
                    "key": "string",
                    "value": "string"
                },
                "variant": {
                    "key": "string",
                    "value": "string"
                },
                "body_type": {
                    "key": "string",
                    "value": "string"
                },
                "fuel_type": {
                    "key": "string",
                    "value": "string"
                },
                "colour": {
                    "key": "string",
                    "value": "string"
                },
                "drive_train": {
                    "key": "string",
                    "value": "string"
                },
                "odometer": {
                    "key": "string",
                    "value": 0
                },
                "transmission": {
                    "key": "string",
                    "value": "string"
                },
                "air_conditioning": {
                    "key": "string",
                    "value": true
                },
                "is_registered": {
                    "key": "string",
                    "value": true
                },
                "managed_by": {
                    "key": "string",
                    "value": "string"
                }
            },
            "price": 0,
            "currency": "string"
        }
    },
    "contactInfo": {
        "name": "string",
        "profile_photo_url": "string",
        "location": {
            "lat": "string",
            "lng": "string"
        },
        "address": {
            "zip_code": "string",
            "place": "string"
        },
        "is_phone_show": true,
        "phone": "string"
    }
}
Modified at 2025-02-24 13:08:02
Previous
Get Popular Categories Post
Next
Update Post
Built with