پرش به مطلب اصلی

postGetUserPostResponse

business_data object
business_namestring
business_typePremiumPanelBusinessDataSubBusinessType (string)

Possible values: [CAR, REAL_ESTATE, JOBS, MARKETPLACE, SERVICES, PERSONAL]

category_dataobject
general_data object
category_slugstringrequired

نام دسته‌بندی هدف. دسته‌بندی‌های موجود را در این آدرس بیابید: https://kenar.divar.dev/openapi-doc/assets-get-categories/

Example: apartment-sell
chat_enabledbooleanrequired

امکان چت فعال باشد

Example: true
citystringrequired

شهر آگهی

Example: tehran
descriptionstringrequired

توضیحات آگهی

Example: I'm available only in chat.
districtstring

محله آگهی

Example: abshar
hide_phonebooleanrequired

عدم نمایش شماره تماس به کاربران

Example: true
imagesstring[]required
latitudenumber<double>

عرض جغرافیایی آگهی

Example: 35.7152
location_typepostLocationType (string)required

نوع موقعیت

Possible values: [LOCATION_TYPE_EMPTY, LOCATION_TYPE_EXACT, LOCATION_TYPE_APPROXIMATE]

Example: LOCATION_TYPE_EXACT
longitudenumber<double>

طول جغرافیایی آگهی

Example: 51.4043
titlestringrequired

عنوان آگهی

Example: Temporary Residence for Rent in Tehran
video object
durationstring<uint64>required

Duration of the video in seconds

Example: 34
namestringrequired

Name of the video, retrieved from video_name field in the response of upload video endpoint

Example: raw/4786eb10-eac6-4077-b622-78c1c42855c7.mp4
thumbnail_namestringrequired

Thumbnail of the video, retrieved from thumbnail_name field in the response of upload video endpoint. It will be the first frame of the uploaded video

Example: thumbnail/4786eb10-eac6-4077-b622-78c1c42855c7.jpg
reject_reasonstring
stateopen_platformpostPostState (string)

Possible values: [POST_STATE_IN_PUBLISH_QUEUE, POST_STATE_PUBLISHED, POST_STATE_WAITING_FOR_EDIT, POST_STATE_WAITING_FOR_PAYMENT, POST_STATE_WAITING_FOR_REVIEW, POST_STATE_PUBLISHED_AND_EDIT_REJECTED, POST_STATE_REJECTED, POST_STATE_DELETED, POST_STATE_RETIRED]

postGetUserPostResponse
{
"business_data": {
"business_name": "string",
"business_type": "CAR"
},
"category_data": {},
"general_data": {
"category_slug": "apartment-sell",
"chat_enabled": true,
"city": "tehran",
"description": "I'm available only in chat.",
"district": "abshar",
"hide_phone": true,
"images": [
"string"
],
"latitude": 35.7152,
"location_type": "LOCATION_TYPE_EXACT",
"longitude": 51.4043,
"title": "Temporary Residence for Rent in Tehran",
"video": {
"duration": 34,
"name": "raw/4786eb10-eac6-4077-b622-78c1c42855c7.mp4",
"thumbnail_name": "thumbnail/4786eb10-eac6-4077-b622-78c1c42855c7.jpg"
}
},
"reject_reason": "string",
"state": "POST_STATE_IN_PUBLISH_QUEUE"
}