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

postSubmitUserPostRequest

category_fieldsobjectrequired

فیلدهای ویژه هر دسته‌بندی که باید مطابق قالب مشخص شده تکمیل شوند. قالب را از اینجا ببینید: https://divar-ir.github.io/kenar-docs/openapi-doc/assets-get-submit-schema/

general_data objectrequired
category_slugstringrequired

نام دسته‌بندی هدف. دسته‌بندی‌های موجود را در این آدرس بیابید: https://divar-ir.github.io/kenar-docs/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

Type of the location

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
postSubmitUserPostRequest
{
"category_fields": {},
"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"
}
}