---
title: "Admin Fb Props Sync"
method: POST
path: "/admin/api/fb-props/sync"
tags: ["admin_fb_props"]
---

# Admin Fb Props Sync

`POST /admin/api/fb-props/sync`

## Request

- Base URL: `https://api.thaiprops.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thaiprops.com/admin/api/fb-props/sync`
- Auth: none declared

Sync selected fb_props rows into properties.

Rules:
- If property does NOT exist yet: INSERT a new properties row (copy base fields once)
  and set properties.modified_at = fb_props.modified_at explicitly.
- If property EXISTS: update ONLY properties.modified_at (keep all other fields intact).
- Always store linkage:
    properties.fb_props_id = fb_props.id (unique)
    fb_props.linked_property_id = properties.id
  And mark fb_props.synced + synced_at.

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thaiprops/apis/thaiprops-admin-api.md) · [All operations](https://skmtc.dev/thaiprops/apis/thaiprops-admin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thaiprops/apis/thaiprops-admin-api/revisions/acaced1e12a2?raw)
