Update existing property definitions
  • 07 Feb 2025
  • 2 Minutes to read
  • Dark
    Light

Update existing property definitions

  • Dark
    Light

Article summary

Put
/api/v1/realestateobjects/publish/propertydefinitions

Update the configured property definition in the system

Description

The Bloxs user has the possibility to create custom properties which are shown in the published data in the third party system (e.g.  rental website). An example would be if the user wants to add to the published data the property 'sunny hours per day'. This is standard not available in Bloxs. To include this in the published data, a custom published property needs to be inserted. This endpoint can be used to overwrite currently existing custom properties. The identifier for a property is the 'apiLabel'. The GET operation can be used to retrieve the apiLabel of the properties.

Use Case

The Bloxs user has utilized the PropertyDefinitions/GET operation to retrieve the full list of property definitions. The user notices there is an error in one of the property definitions. With this endpoint the user can overwrite the custom property.

Request fields

The request contains the following fields:

FieldDescription
apiLabelThe unique identifier of the custom property.
labelNameThe name which has been assigned to the custom property.
controlTypeThe control type of the custom property. For example, it can only contain numbers or it is a date field.
orderOrder in which the fields are displayed within the screen in Bloxs. This can also help arrange the fields in the correct order on your website.
options.valueWhen the ControlType is Dropdown, then these are the configured options for the dropdown. Value contains the name of the option in the dropdown.
options.orderWhen the ControlType is Dropdown, then these are the configured options for the dropdown. Order contains the order in which the option is shown in the dropdown.
Security
HTTP
Type Bearer

Please enter a valid token

Body parameters
Expand All
object
apiLabel
string Required

The API Key of the property, this is the key used to identify the Object property

Min length1
labelName
string Required

The name of the property

Min length1
controlType
integer (int32)

0 = TextBox

1 = NumberBox

2 = DateBox

3 = Dropdown

4 = RichText

5 = AmountBox

6 = SquareMeterBox

7 = MultiSelectDropdown

Valid values[ 0, 1, 2, 3, 4, 5, 6, 7 ]
order
integer (int32)
options
Array of object (Publish_PropertyDefinitionOption) | null

When the ControlType is Dropdown, then these are the configured options for the Dropdown

object
value
string Required
Min length1
order
integer (int32)
Responses
200

The property definition was updated

Expand All
object
apiLabel
string

The API Key of the property, this is the key used to identify the Object property

Min length1
labelName
string

The name of the property

Min length1
controlType
integer (int32)

0 = TextBox

1 = NumberBox

2 = DateBox

3 = Dropdown

4 = RichText

5 = AmountBox

6 = SquareMeterBox

7 = MultiSelectDropdown

Valid values[ 0, 1, 2, 3, 4, 5, 6, 7 ]
order
integer (int32)
options
Array of object (Publish_PropertyDefinitionOption) | null

When the ControlType is Dropdown, then these are the configured options for the Dropdown

object
value
string
Min length1
order
integer (int32)
400

The property definition data has validation issues

Expand All
object
type
string | null
title
string | null
traceId
string | null
status
integer (int32)
errors
object | null
property*
Array of string | null additionalProperties
string