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

PostEditPostV2Body

category_dataobject

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

general_data object
category_slugstringrequired

slug دسته‌بندی. لیست دسته‌بندی‌ها: 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

زمان ویدیو به ثانیه

Example: 34
namestringrequired

نام ویدیو (از فیلد video_name در پاسخ آپلود)

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

کاور ویدیو (از فیلد thumbnail_name در پاسخ آپلود). فریم اول ویدیوی آپلود‌شده است.

Example: thumbnail/4786eb10-eac6-4077-b622-78c1c42855c7.jpg
update_maskstring[]required

مشخص می‌کند کدام فیلدها به‌روزرسانی شوند. از مسیرهای تودرتو مانند 'general_data.title' یا 'category_data.price' استفاده کنید. این کار تمایز بین پاک کردن یک فیلد و تغییر ندادن آن را ممکن می‌سازد.

Example: ["general_data.title","general_data.description","general_data.video","category_data.price"]
PostEditPostV2Body
{
"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"
}
},
"update_mask": [
"general_data.title",
"general_data.description",
"general_data.video",
"category_data.price"
]
}