---
title: Push Property
slug: NJB--push-property
createdAt: 2025-09-11T10:47:14.175Z
---

:::ApiMethodV2
```json
{
  "name": "Push Property",
  "method": "POST",
  "url": "https://wsb.bakuun.com/v2/push-property/CPBXXX/XXXX",
  "description": "Sends property static data and mapping information from Connectivity Partner to Bakuun.\nThis action is typically used when:\nA new property is onboarded is updated in the Connectivity Partner system or when the mapping status change",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "rJxEFDXZtK-ii0Nh24633",
        "language": "json",
        "code": "{\n    \"sharePost\": \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    \"propertyId\": \"JHJK456\",\n    \"sourceId\": \"TPSXX\",\n    \"action\": \"pushPropertyInfo\",\n    \"mappingStatus\": \"Active\",\n    \"propertyData\": {\n        \"propertyName\": \"sdcds\",\n        \"roomTypes\": [\n            {\n                \"roomId\": \"Rxx.x\",\n                \"roomName\": \"test room\",\n                \"type\": \"DailyRoom\",\n                \"rateTypes\": [\n                    {\n                        \"rateId\": \"Rxx.x.x\",\n                        \"ratePlanName\": \"Superior One Room Breakfast rate\",\n                        \"cancelType\": \"1\",\n                        \"authPerson\": \"2\",\n                        \"defaultMeal\": \"HB\",\n                        \"rateCategory\": \"\",\n                        \"restrictedCountry\": \"\"\n                    }\n                ]\n            }\n        ]\n    }\n}",
        "customLabel": ""
      },
      {
        "id": "M_FL9uBx9kzKkaVn7rwIq",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://wsb.bakuun.com/v2/push-property/test/{sourceId}/165688',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"sharePost\": \"String\",\n      \"propertyId\": \"String\",\n      \"sourceId\": \"String\",\n      \"action\": \"String\",\n      \"mappingStatus\": \"String\",\n      \"propertyData\": {\n         \"propertyName\": \"\",\n         \"roomTypes\": {\n            \"roomId\": \"\",\n            \"roomName\": \"\",\n            \"type\": \"\",\n            \"rateTypes\": {\n               \"rateId\": \"\",\n               \"ratePlanName\": \"\"\n            }\n         }\n      }\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "U6JqBISc8QHYq83AA8pH4",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"sharePost\": \"String\",\n   \"propertyId\": \"String\",\n   \"sourceId\": \"String\",\n   \"action\": \"String\",\n   \"mappingStatus\": \"String\",\n   \"propertyData\": {\n      \"propertyName\": \"\",\n      \"roomTypes\": {\n         \"roomId\": \"\",\n         \"roomName\": \"\",\n         \"type\": \"\",\n         \"rateTypes\": {\n            \"rateId\": \"\",\n            \"ratePlanName\": \"\"\n         }\n      }\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://wsb.bakuun.com/v2/push-property/test/{sourceId}/165688\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "JEaXh_s8QxuppVfAmcUfW",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://wsb.bakuun.com/v2/push-property/test/{sourceId}/165688\"\n\npayload = json.dumps({\n   \"sharePost\": \"String\",\n   \"propertyId\": \"String\",\n   \"sourceId\": \"String\",\n   \"action\": \"String\",\n   \"mappingStatus\": \"String\",\n   \"propertyData\": {\n      \"propertyName\": \"\",\n      \"roomTypes\": {\n         \"roomId\": \"\",\n         \"roomName\": \"\",\n         \"type\": \"\",\n         \"rateTypes\": {\n            \"rateId\": \"\",\n            \"ratePlanName\": \"\"\n         }\n      }\n   }\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "KvsKi9jhWyL_PiG1UnvdH",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://wsb.bakuun.com/v2/push-property/test/{sourceId}/165688\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"sharePost\": \"String\",\n   \"propertyId\": \"String\",\n   \"sourceId\": \"String\",\n   \"action\": \"String\",\n   \"mappingStatus\": \"String\",\n   \"propertyData\": {\n      \"propertyName\": \"\",\n      \"roomTypes\": {\n         \"roomId\": \"\",\n         \"roomName\": \"\",\n         \"type\": \"\",\n         \"rateTypes\": {\n            \"rateId\": \"\",\n            \"ratePlanName\": \"\"\n         }\n      }\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "rJxEFDXZtK-ii0Nh24633"
  },
  "results": {
    "languages": [
      {
        "id": "CUwUQnM2-ToHwU-bXfbdm",
        "language": "200",
        "code": "{\n    \"success\": true,\n    \"trackingId\": \"6895dcaca77bdcd61a0a0b99\"\n}",
        "customLabel": ""
      },
      {
        "id": "gclSFeG7TcL3xcGR1oOZh",
        "language": "415",
        "code": "{\n    \"success\": false,\n    \"trackingId\": \"68c2abfc04829387650a4dbd\",\n    \"errors\": [\n        {\n            \"code\": 415,\n            \"message\": \"Invalid authentication key.\"\n        }\n    ]\n}",
        "customLabel": ""
      },
      {
        "id": "vVHipUgMYGg65zy_yKtQY",
        "language": "422",
        "code": "{\n    \"success\": false,\n    \"trackingId\": \"68c2abfc04829387650a4dbd\",\n    \"errors\": [\n        {\n            \"code\": 422,\n            \"message\": \"Validation failed\"\n        }\n    ]\n}",
        "customLabel": ""
      },
      {
        "id": "CpbdwNfOXUccKPwEmFOLa",
        "language": "428",
        "code": "{\n    \"success\": false,\n    \"trackingId\": \"68c2abfc04829387650a4dbd\",\n    \"errors\": [\n        {\n            \"code\": 415,\n            \"message\": \"No room mappings found for this property\"\n        }\n    ]\n}",
        "customLabel": ""
      },
      {
        "id": "WQk_iSE_mL6p69i9hYUJs",
        "language": "431",
        "code": "{\n    \"success\": false,\n    \"trackingId\": \"68c2abfc04829387650a4dbd\",\n    \"errors\": [\n        {\n            \"code\": 431,\n            \"message\": \"Endpoint is not active\"\n        }\n    ]\n}",
        "customLabel": ""
      },
      {
        "id": "Em0_O6MUFotrdSgFlmKS_",
        "language": "451",
        "code": "{\n    \"success\": false,\n    \"trackingId\": \"68c2abfc04829387650a4dbd\",\n    \"errors\": [\n        {\n            \"code\": 415,\n            \"message\": \"Mapping is not active\"\n        }\n    ]\n}",
        "customLabel": ""
      },
      {
        "id": "X8oarA7dktkyutXjA77Lg",
        "language": "500",
        "code": "{\n    \"success\": false,\n    \"trackingId\": \"68c2abfc04829387650a4dbd\",\n    \"errors\": [\n        {\n            \"code\": 415,\n            \"message\": \"Internal server error\"\n        }\n    ]\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "CUwUQnM2-ToHwU-bXfbdm"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "sharePost",
        "kind": "required",
        "type": "string",
        "description": "System-generated, human-readable secret API access key (unique per account).",
        "": "System-generated, human-readable secret API access key (unique per account)."
      },
      {
        "name": "propertyId",
        "kind": "required",
        "type": "string",
        "description": "Property identifier on your side or mapping key (e.g. HTLXXX).",
        "": "Property identifier on your side or mapping key (e.g. HTLXXX)."
      },
      {
        "name": "sourceId",
        "kind": "required",
        "type": "string",
        "description": "TPS Partner identifier assigned by Bakuun (e.g. TPSAlways set as pushPropertyInfo.XX)",
        "": "TPS Partner identifier assigned by Bakuun (e.g. TPSAlways set as pushPropertyInfo.XX)"
      },
      {
        "name": "action",
        "kind": "required",
        "type": "string",
        "description": "Always set as pushPropertyInfo.",
        "": "Always set as pushPropertyInfo."
      },
      {
        "name": "mappingStatus",
        "kind": "required",
        "type": "string",
        "description": "Current mapping status for this property , available options are :\nActive\nSuspended \nDisconnected",
        "": "Current mapping status for this property , available options are :\nActive\nSuspended \nDisconnected"
      },
      {
        "name": "propertyData",
        "kind": "required",
        "type": "object",
        "description": "Container for all static property, room, and rate plan data.",
        "": "Container for all static property, room, and rate plan data.",
        "children": [
          {
            "name": "propertyName",
            "kind": "required",
            "type": "string",
            "description": "Name of the property as shown to users."
          },
          {
            "name": "roomTypes",
            "kind": "required",
            "type": "object",
            "description": "List of room types configured for this property.",
            "children": [
              {
                "name": "roomId",
                "kind": "required",
                "type": "string",
                "description": "Unique identifier for the room type"
              },
              {
                "name": "roomName",
                "kind": "required",
                "type": "string",
                "description": "Descriptive name of the room type (e.g. Deluxe Queen Room With Two Queen Beds)."
              },
              {
                "name": "type",
                "kind": "required",
                "type": "string",
                "description": "DailyRoom would be the used default type"
              },
              {
                "name": "rateTypes",
                "kind": "required",
                "type": "object",
                "description": "",
                "children": [
                  {
                    "name": "rateId",
                    "kind": "required",
                    "type": "string",
                    "description": "Unique identifier for the rate plan (e.g. RXX.1.2.1)."
                  },
                  {
                    "name": "ratePlanName",
                    "kind": "required",
                    "type": "string",
                    "description": "Name of the rate plan (e.g. Advance Purchase )."
                  },
                  {
                    "name": "cancelType",
                    "kind": "required",
                    "type": "string",
                    "description": "Cancellation rule type code (mapping provided by Bakuun; e.g. 0 = non-refundable, 1 = refundable)."
                  },
                  {
                    "name": "authPerson",
                    "kind": "required",
                    "type": "string",
                    "description": "Maximum authorized occupancy (number of persons) for this rate plan."
                  },
                  {
                    "name": "defaultMeal",
                    "kind": "required",
                    "type": "string",
                    "description": "Default meal plan code \n0 = Room Only\n1 = Breakfast\n2 = Half Board\n3 = Full Board"
                  },
                  {
                    "name": "rateCategory",
                    "kind": "required",
                    "type": "string",
                    "description": "Assigned rate category (e.g. corporate, package, promotion)"
                  },
                  {
                    "name": "restrictedCountry",
                    "kind": "required",
                    "type": "string",
                    "description": "Optional country restrictions for selling this rate. Can be empty or contain a list of countries."
                  }
                ]
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "propertyName",
            "kind": "required",
            "type": "string",
            "description": "Name of the property as shown to users."
          },
          {
            "name": "roomTypes",
            "kind": "required",
            "type": "object",
            "description": "List of room types configured for this property.",
            "children": [
              {
                "name": "roomId",
                "kind": "required",
                "type": "string",
                "description": "Unique identifier for the room type"
              },
              {
                "name": "roomName",
                "kind": "required",
                "type": "string",
                "description": "Descriptive name of the room type (e.g. Deluxe Queen Room With Two Queen Beds)."
              },
              {
                "name": "type",
                "kind": "required",
                "type": "string",
                "description": "DailyRoom would be the used default type"
              },
              {
                "name": "rateTypes",
                "kind": "required",
                "type": "object",
                "description": "",
                "children": [
                  {
                    "name": "rateId",
                    "kind": "required",
                    "type": "string",
                    "description": "Unique identifier for the rate plan (e.g. RXX.1.2.1)."
                  },
                  {
                    "name": "ratePlanName",
                    "kind": "required",
                    "type": "string",
                    "description": "Name of the rate plan (e.g. Advance Purchase )."
                  },
                  {
                    "name": "cancelType",
                    "kind": "required",
                    "type": "string",
                    "description": "Cancellation rule type code (mapping provided by Bakuun; e.g. 0 = non-refundable, 1 = refundable)."
                  },
                  {
                    "name": "authPerson",
                    "kind": "required",
                    "type": "string",
                    "description": "Maximum authorized occupancy (number of persons) for this rate plan."
                  },
                  {
                    "name": "defaultMeal",
                    "kind": "required",
                    "type": "string",
                    "description": "Default meal plan code \n0 = Room Only\n1 = Breakfast\n2 = Half Board\n3 = Full Board"
                  },
                  {
                    "name": "rateCategory",
                    "kind": "required",
                    "type": "string",
                    "description": "Assigned rate category (e.g. corporate, package, promotion)"
                  },
                  {
                    "name": "restrictedCountry",
                    "kind": "required",
                    "type": "string",
                    "description": "Optional country restrictions for selling this rate. Can be empty or contain a list of countries."
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "response": [
    {
      "name": "success",
      "kind": "optional",
      "type": "boolean",
      "description": "true"
    },
    {
      "name": "trackingId",
      "kind": "optional",
      "type": "string",
      "description": "",
      "children": []
    }
  ],
  "autoGeneratedAnchorSlug": "push-property",
  "legacyHash": "y84A3KTR0Zv2rgzfNkuWR"
}
```
:::

