Estates

Resource type: estate

Creates a new estate record, if the user has the necessary rights. The parameter data of this action include all fields active in enterprise for estate records.

Parameters:

  • data
    ARRAY
    • (individually)
    • verkauft
      TINYINT(1). Value 1 sets the field marketing status on value sold or rented, depending on the value of the field marketing method.
    • reserviert
      TINYINT(1). Value 1 sets the field marketing status on value reserved.
    • If neither verkauft or reserviert are set, marketing status will be set to open.

Example:

...
"actions":[ 
            { 
                "actionid":"urn:onoffice-de-ns:smart:2.5:smartml:action:create",
                "resourceid":"",
                "identifier":"",
                "resourcetype":"estate",
                "parameters":{ 
                    "data":{ 
                        "objektart":"haus",
                        "nutzungsart":"wohnen",
                        "vermarktungsart":"kauf",
                        "objekttyp":"einfamilienhaus",
                        "plz":52068,
                        "ort":"Aachen",
                        "land":"DEU",
                        "regionaler_zusatz":"Stuff",
                        "nebenkosten":10000,
                        "heizkosten":80,
                        "warmmiete":600,
                        "kaltmiete":600,
                        "mietpreis_pro_qm":12,
                        "wohnflaeche":50,
                        "nutzflaeche":30,
                        "anzahl_zimmer":2,
                        "anzahl_schlafzimmer":1,
                        "anzahl_badezimmer":1,
                        "ust_satz_bk":0,
                        "breitengrad":50.7762106,
                        "laengengrad":6.0857545,
                        "heizungsart":["zentral","fussboden"],
                        "stellplatzart":["freiplatz","carport"],
                        "kaufpreis":2000
                    }
                }
            }
        ]
...

Response:

  • id
    The ID of the new estate record
...
"response":{
        "results":[
            {
                "actionid":"urn:onoffice-de-ns:smart:2.5:smartml:action:create",
                "resourceid":"",
                "resourcetype":"estate",
                "identifier":"",
                "data":{
                    "meta":{
                        "cntabsolute":null
                    },
                    "records":[
                        {
                            "id":102,
                            "type":"estate",
                            "elements":[

                            ]
                        }
                    ]
                },
                "status":{
                    "errorcode":0,
                    "message":"OK"
                }
            }
        ]
...