Skip to content

Properties and schema discovery ​

Residenda accounts can use different languages, custom fields, requirements, and select options. Retrieve your account's current setup before creating or updating properties. The API Reference defines the stable response structure; GET /property-schema returns the values configured for your account.

Discover before writing ​

Properties successfully created or updated through the API are marked as API-managed by the server. Dashboard users can still edit them, but cannot delete them individually or in bulk; remove them through the API instead. The marker is internal, is not a writable API field, and does not depend on a particular credential. Existing XML provenance is not cleared by API updates. XML-managed properties retain their lifecycle protection by default; only an explicit operator opt-in for a paused XML profile permits API restore/delete during takeover.

Request the schema with catalog:read:

sh
curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  "${RESIDENDA_API}/property-schema"

Use the response as follows:

  • data.account_id identifies the account selected by your credential. Compare it with your saved intended account before writing. A missing or different value is not confirmation: stop rather than adopting another account or sending an account override. Recheck after credential rotation; this observation is not a permanent authorization or a lock against later account changes.
  • data.languages contains the accepted translation keys and identifies the default language.
  • data.interpretation.currency distinguishes the account's default currency from all supported currencies. A property write does not accept a currency override and interprets every supplied price using the current default.
  • data.interpretation.units gives the stable unit codes for every length and surface field. A null default or unit means the account setting is not safely interpretable; do not guess.
  • data.create.required lists every field required for creation, including custom fields configured in your account.
  • data.update.partial is true; both PATCH and PUT update only supplied fields.
  • data.update.translations describes server-side language merging and individual-language clears. This applies to all v1 updates, without an opt-in header.
  • data.update.conditional describes optional If-Match checks using the ETag from a single-property response.
  • data.fields describes whether each field is writable, nullable, and required, plus its JSON value shape and constraints.
  • options.values contains each select option's valid account-specific integer id, localized name, and stable semantic code when configured. Resolve known semantics by code, then send the corresponding id; never infer semantics from a translated name. The linked field-options endpoint returns the same option identity separately.
  • Fields with writable: false explain their read_only_reason; media fields are managed through the media API.

Treat option IDs as opaque account-specific values. A custom option can have code: null; do not synthesize a code from its name. Refresh the schema when validation starts rejecting previously valid fields or options. Integrations must ignore unknown response members because v1 may add metadata backwards-compatibly.

For a translated field, per-field nullable continues to describe whether whole-field null is allowed on creation and whether an update may remove an individual language with null. It does not permit whole-field null on updates: data.update.translations.whole_field_null is false. Nontranslated null handling is unchanged.

Location storage and public visibility ​

Storing a location is different from publishing it. Before relying on Classic's location flags, verify that schema discovery includes:

json
{
  "data": {
    "public_location_visibility": { "version": 1 }
  }
}

Version 1 describes the fixed-field boundary in public Wix rendering and PDF output:

FlagWhen false
show_addressWithholds street, street_number, box and the formatted address.
show_mapWithholds latitude and longitude; the public Wix detail JSON returns null coordinates, not merely a hidden map.

The protection also applies to configured detail sections, cards, feature bars, tables and PDF information fields. The flags are independent: show_address=false with show_map=true still publishes a map pin. City, postcode, region/state, country and custom department fields remain available.

Write the applicable flags together with the location fields in the same request. Stored values, backoffice access and authenticated /properties responses are unchanged, including when both flags are false. The capability confirms server behavior; it does not grant permission to publish a source's data.

Authenticated property responses preserve each coordinate independently: address.latitude: 0 or address.longitude: 0 is a real stored numeric zero, not null. This includes (0, 0) and pairs where only one coordinate is zero or null. Write latitude and longitude as top-level fields; explicit null clears that coordinate, while omission on update preserves it. Missing-coordinate geocoding must check for null, not falsiness: zero must not trigger replacement geocoding. Public visibility restrictions still apply separately.

This is not universal address redaction. XML feeds/exports, descriptions, titles, custom aliases and other free text are outside this capability. Publication and password access rules are unchanged. Review those other exposure paths before storing nonpublic data in an account.

Older deployments omit the metadata. Treat a missing or unsupported version as unverified rather than inferring support from existing values or a hidden map. All serving instances must run the supporting release before an integration relies on it; recheck discovery before writes and retries, including after a rollback. Discovery is not a lock against deployment changes.

Create a property ​

Use properties:write and send fields as top-level members of one JSON object. Replace the example option IDs with values from your account's schema and use only its active language codes:

json
{
  "title": {
    "en": "Country house"
  },
  "description": {
    "en": "A quiet home near the coast."
  },
  "listing_type": 101,
  "listing_status": 202,
  "price": 350000,
  "reference": "SOURCE-42",
  "country": "BE",
  "status": "unpublished"
}
sh
curl --fail-with-body --silent --show-error \
  --request POST \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  --header 'Content-Type: application/json' \
  --data @property.json \
  "${RESIDENDA_API}/properties"

The response is 201 Created with the property under data. Your role, account settings, and plan determine whether a write is allowed. A reference is useful for your own mapping but is not an idempotency key and is not guaranteed unique; persist the returned data.id before continuing.

Price fields can have a property-specific currency when edited through the dashboard. Property responses therefore include data.value_metadata keyed by field slug. For price fields, currency is the effective currency and source is property_override, account_default, or unknown; length and surface fields expose their effective unit. Do not use the account default to reinterpret a value whose response reports an override or unknown metadata.

The public v1 write payload does not accept currency or unit overrides and performs no conversion. A price write uses the schema's current currency default; length and surface writes use its current unit. Re-discover immediately before writing when settings may have changed.

Recover a create after a lost response ​

For automated integrations, send an optional Idempotency-Key. Generate and save a random UUID before the first attempt, together with the intended account and exact input. Reuse that key and input on every retry, including after credential rotation within the same account:

First verify that GET /property-schema reports data.create.idempotency with header: Idempotency-Key and version: 1; do not assume older deployments honor this header. Successful keyed responses echo the same Idempotency-Key. Verify this acknowledgement and the returned property UUID before recording success.

sh
curl --fail-with-body --silent --show-error \
  --request POST \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  --header "Idempotency-Key: ${SAVED_CREATE_KEY}" \
  --header 'Content-Type: application/json' \
  --data @property.json \
  "${RESIDENDA_API}/properties"
  • The first successful creation returns 201; a retry returns 200 with the same property ID and its current data, without creating or updating anything. It does not restore old field values or replay a cached response. Schema changes and a now-full plan do not prevent recovery; a valid credential with properties:write is still required.
  • Concurrent requests with the same key/input create only one property. Keys belong to property creation in the account, not to a credential, source system or reference.
  • Reusing a key with different input returns 409 with code: idempotency_key_conflict. Object member order does not matter; list order, JSON value types and otherwise ignored input do. Keep the complete input unchanged rather than rebuilding it from a newer source snapshot.
  • If the original property was deleted or is no longer available, recovery returns 409 with code: idempotency_target_unavailable. It never restores or replaces the property. Do not generate a new key automatically on a conflict.
  • Keys do not expire and remain reserved for the lifetime of the account database, including after property deletion. Use a different key only for a deliberately new creation. A failed transaction reserves nothing; after an ambiguous failure, retry the original key/input because the commit may have succeeded.

Supply one case-sensitive key of 1–128 ASCII letters, digits, dots, underscores, colons or hyphens, with a JSON body. Do not put personal data or secrets in keys. Empty, malformed or repeated headers return 422. The fingerprint uses parsed body/query input after normal whitespace/empty-string normalization, before write validation and default insertion. Property updates have a separate key namespace; neither makes media delivery or the entire synchronization atomic.

Without this header, the existing behavior is unchanged: every successful POST creates a new property, and automatic retry can duplicate it. A recovered 200 proves the original creation succeeded, not that current target data still matches the original input or that the property is published on a website.

Read and list properties ​

Use properties:read to retrieve one property by UUID:

sh
curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  "${RESIDENDA_API}/properties/${PROPERTY_ID}"

Single-property GET responses include a strong ETag header for conditional updates. Translation values in property responses contain active languages only. Stored inactive translations are not exposed, but are preserved when omitted from an update. Do not reconstruct a replacement translation map from a GET response.

The list endpoint is the only paginated collection. It supports ids[], status, listing_type, listing_status, and contact_form_id filters. Filters are combined; omit status to include both published and unpublished properties:

sh
curl --fail-with-body --silent --show-error \
  --get \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  --data-urlencode 'status=unpublished' \
  --data-urlencode 'page=1' \
  --data-urlencode 'per_page=50' \
  "${RESIDENDA_API}/properties"

Follow links.next until it is null; links retain the validated filters and page size. Do not derive the final page from item counts. See Reliability and errors for limits and retry behavior.

Include soft-deleted properties explicitly ​

GET /properties?include_deleted=true includes soft-deleted properties in the same paginated collection. Combine it with ids[] to inspect known identities rather than searching by reference. All other filters still apply. Only explicit include_deleted=true adds deleted_at to each property: an ISO 8601 timestamp for a soft-deleted property, or null for an active one. Omitted or false excludes soft-deleted properties and leaves the ordinary response shape unchanged; deleted_at is not a required member of every property response.

An absent target is still not permission to recreate it: check account, filters and durable identity evidence. Restore is a separate, explicitly authorized operation, not a side effect of listing or create recovery.

Retrieve known properties in batches ​

When you already store Residenda property UUIDs, send up to 100 in one request instead of scanning the account or requesting each property separately:

sh
curl --fail-with-body --silent --show-error \
  --get \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  --data-urlencode "ids[]=${PROPERTY_ID_A}" \
  --data-urlencode "ids[]=${PROPERTY_ID_B}" \
  --data-urlencode 'per_page=100' \
  "${RESIDENDA_API}/properties"

Use repeated ids[] keys, or consecutive indexed keys such as ids[0] and ids[1]. The list must contain 1 through 100 valid UUIDs; empty, malformed, or oversized lists return 422. Duplicate IDs are accepted and each matching property appears only once. Split larger lists into batches.

The response uses the ordinary data, meta, and links envelope. Default page size remains 15, so request per_page=100 for a single-page batch. Results follow the normal sort order, not your ID order; index them by data[].id.

Unknown IDs and IDs outside the credential's account are omitted without distinguishing them. An entirely unmatched list returns 200 with empty data and meta.total: 0. Other filters can also exclude requested properties. Absence is not permission to recreate a property: first check the credential, filters, and durable integration mapping. A matching reference is not proof of identity.

Partially update a property ​

Both PATCH and PUT intentionally have partial-update semantics. Omitted fields remain unchanged:

json
{
  "price": 375000,
  "status": "published"
}
sh
curl --fail-with-body --silent --show-error \
  --request PATCH \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  --header 'Content-Type: application/json' \
  --data @property-update.json \
  "${RESIDENDA_API}/properties/${PROPERTY_ID}"

A token can access only properties in its Residenda account. Depending on the account setup, properties kept up to date by an XML feed may not be deletable through the API. Consult the API Reference for complete fields and responses.

Update only the intended translations ​

Both PUT and PATCH merge supplied language keys server-side, for fixed and custom translated fields. Every omitted language remains unchanged, including stored languages that are no longer active. No opt-in header or new API version is required. Omit the whole field to leave all its translations unchanged.

For example, when en and fr are active, this update changes the English title and description and removes only the French description:

json
{
  "title": { "en": "Renovated country house" },
  "description": {
    "en": "A quiet home with a renovated kitchen.",
    "fr": null
  }
}

The existing French title and any stored inactive translations remain unchanged. The same rule applies to a custom translated field; replace public_note below with a nullable translated text field from your schema:

json
{
  "public_note": {
    "en": "Visits by appointment.",
    "fr": null
  }
}
  • A null language entry removes only that language, and only when the translated field is nullable. title and required custom translations reject null entries with 422.
  • A supplied translated field must be a nonempty language map. Whole-field null, {}, [], non-map values and inactive language keys return 422. This also applies when trying to clear an inactive language with null.
  • Empty or whitespace-only language strings are normalized to null before validation: they clear a nullable translation and fail for title or a required custom translation.
  • Non-null custom values must still satisfy the field's discovered type and constraints. Rich text normalization runs only on supplied values before merging; omitted values are not normalized again.
  • To clear several optional active-language translations, send a nonempty map with null for each intended language. Do not send the whole field as null or an empty map/list. Inactive stored translations are preserved.
  • Creation rules are unchanged; use the POST schema rather than applying update-specific clearing rules to creation. Clears for nontranslated fields, such as "price": null or "city": null, are unchanged.

Discovery advertises the update rules as follows:

json
{
  "data": {
    "update": {
      "translations": {
        "mode": "merge",
        "null_removes_language": true,
        "whole_field_null": false
      },
      "conditional": {
        "request_header": "If-Match",
        "response_header": "ETag",
        "conflict_status": 412,
        "required": false
      }
    }
  }
}

Older deployments omit this metadata. Verify support before relying on these rules; metadata describes the global behavior, not a mode you enable. Translation merging does not require If-Match and does not protect supplied languages from another writer's edits. Use a condition when the update depends on the property state you reviewed.

Avoid overwriting an unreviewed property state ​

GET /properties/{property} and every successful PUT/PATCH, including a recovered keyed update, return ETag. It is exactly one strong, opaque token: 64 lowercase hexadecimal characters inside double quotes. Keep the entire received value, including the quotes. Do not use a list or POST response as the source of a conditional-update token.

First read the property and save its response headers alongside the data:

sh
curl --fail-with-body --silent --show-error \
  --dump-header property-read.headers \
  --output property-read.json \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  "${RESIDENDA_API}/properties/${PROPERTY_ID}"

Inspect the returned property and review your intended changes before continuing. Save the received quoted ETag as SAVED_IF_MATCH, the reviewed input in property-update.json, and a new random operation UUID as SAVED_UPDATE_KEY before the first attempt. Then send:

sh
curl --fail-with-body --silent --show-error \
  --request PATCH \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  --header "If-Match: ${SAVED_IF_MATCH}" \
  --header "Idempotency-Key: ${SAVED_UPDATE_KEY}" \
  --header 'Content-Type: application/json' \
  --data @property-update.json \
  "${RESIDENDA_API}/properties/${PROPERTY_ID}"

If-Match is optional and works with or without an idempotency key. Without it, updates remain unconditional. Empty, malformed, weak (W/), list, wildcard (*) or repeated If-Match headers return 422 with errors under errors.If-Match. Normal authentication and permissions still apply.

For a new update, the server locks and rereads the property row, then compares the token before any property mutations. A mismatch returns 412:

json
{
  "message": "The property changed since it was read. Read it again and review the update.",
  "code": "property_revision_conflict"
}

There is no partial property update and no retained idempotency-key reservation on this failure. Read the property again, inspect the differences, and review whether the proposed update is still appropriate before choosing a new condition. Never blindly refresh the ETag and retry the same overwrite. A definitive 412 leaves the attempted key unreserved; this differs from recovery of a successful or uncertain operation, where the original header must be retained.

What the condition protects ​

The token is bound to the account and property and hashes both the raw persisted property row and the resolved response representation. It includes hidden and inactive translations, not just updated_at; it can change even when the visible data or timestamp appears unchanged. Treat it as opaque rather than computing it from response JSON.

This is a conservative whole-property condition, not per-field merge-if-unchanged. Property-row edits by other writers, including the dashboard or an import, are covered when committed before the locked check. Catalog, settings and media are not locked by this condition, and it does not prevent another edit after the update commits. It is a state comparison, not permanent revision history: if the entire hashed state becomes identical again, the same token can recur. A successful response is not a promise that the property will remain unchanged.

Recover an update after a lost response ​

Save a new random operation UUID, the complete update input, target property UUID and any original If-Match before sending. Use the operation UUID as Idempotency-Key on PATCH or PUT /properties/{property}. A retry must use the same key, property UUID, input and original condition, including keeping the header absent if it was originally absent. Key syntax and input normalization are the same as for creation, but update keys are separate from creation keys and shared between PUT, PATCH and restore in one account. Restore has an action-distinct fingerprint, so a key cannot be reused between update and restore even with the same target and body.

  • The property changes and successful key are saved together. A first successful update and a recovered update both return 200, echoing Idempotency-Key and returning the current state's ETag.
  • Recovery returns the property's current state, without reapplying old values or rechecking the old condition. For example, if update A sets a price to 125000 and update B later sets it to 140000, retrying completed A does not restore 125000. Changes to the field configuration or credential do not prevent recovery within the same account; valid authentication and write permission remain required.
  • A supplied If-Match participates in the key fingerprint. Keep the original header even after the successful update itself made it stale. Do not replace it with the successful response's ETag when retrying that operation. Different input, another property UUID, or changing, adding or removing the condition under a successful key returns 409 idempotency_key_conflict. Historical requests without a condition keep their existing fingerprints.
  • A missing/deleted property returns 404, even on recovery. Never automatically switch keys or create a replacement to bypass these responses.
  • Keys have no expiry. A failed transaction, including a 412 precondition failure, reserves nothing; a timeout or 500 may follow a successful save. Retry uncertain operations with the original key/input/condition and a finite retry limit. Finish or investigate an uncertain operation before sending newer content for the same property.
  • Without Idempotency-Key, every request is a new update subject to its own If-Match, if supplied. Idempotency alone does not protect against other writers using different keys. Neither header makes media or deletion part of the property-update transaction.

Discover support using GET /property-schema: data.update.idempotency contains {"header":"Idempotency-Key","version":1}. Older deployments omit it; do not assume a server honours the header without this capability. All serving instances must support the contract before enabling keyed delivery. An acknowledged operation does not prove the current property still matches that operation or is visible on a website.

Restore a soft-deleted property ​

First verify GET /property-schema reports data.restore.idempotency as {"header":"Idempotency-Key","version":1}. Older deployments may omit it; update or create support alone does not establish restore support. Use properties:write, save a new operation UUID before the first attempt, and send exactly {} as JSON with no query parameters:

sh
curl --fail-with-body --silent --show-error \
  --request POST \
  --header "Authorization: Bearer ${RESIDENDA_TOKEN}" \
  --header "Idempotency-Key: ${SAVED_RESTORE_KEY}" \
  --header 'Content-Type: application/json' \
  --data '{}' \
  "${RESIDENDA_API}/properties/${PROPERTY_ID}/restore"
  • Resolution includes soft-deleted properties, only within the credential's account. Unknown or other-account UUIDs return 404. XML ownership restrictions and plan capacity can forbid an actual restoration (403). This is not a way to bypass ownership or quota.
  • An API credential may restore a property with legacy API import provenance (profile type api), without erasing that provenance; legacy API-profile deletion remains forbidden. XML profiles require the separate paused-profile operator opt-in, and unknown/unavailable import-profile types remain protected. Dashboard restoration remains unchanged. Coordinate and drain the previous writer before restoring.
  • The first actual restore forces status: unpublished while preserving the ID, slug, media, field values and contact routing. If another active property owns the historical slug, restoration returns 422 with a slug validation error instead of silently changing the URL. An already active property is acknowledged without changing its status. Review and deliver current fields, media and controls before deciding to publish.
  • A successful request returns 200 with the current property under data and echoes Idempotency-Key. Verify both the echoed key and expected property UUID before recording success. Recovery returns current state, not a cached response; it never resets a status changed after the first restoration.
  • Reuse the same saved key, target UUID and {} after an ambiguous timeout or server error, with a finite retry limit. The receipt and restore commit together. Keys are account-scoped, have no expiry and share the PUT/PATCH namespace, separate from create keys. Restore's fingerprint is action-distinct: using a reserved key for PATCH/PUT, another target or different input returns 409 idempotency_key_conflict.
  • If the restored property is soft-deleted again, replay returns 409 idempotency_target_unavailable, not another restore or a replacement. Never switch keys automatically to bypass either conflict. A missing target returns 404.
  • Authentication, write permission and property authorization still apply on replay; plan capacity applies only to an actual restoration. Missing/malformed/repeated keys, nonempty or non-object JSON bodies (including []), and query parameters fail validation (422). Rate limiting returns 429 with Retry-After.

Restoration recovers identity only. It does not certify current source parity, configure new routing, publish, or prove that a website displays the property.

XML lifecycle permission during manual takeover ​

The API protects XML import-profile properties from restore and delete by default. A server operator can opt in one exact account UUID and import-profile ID pair for an existing profile of type xml, but both conditions must hold:

  1. The pair is explicitly listed in xml_import.api_lifecycle_profiles, configured through XML_IMPORT_API_LIFECYCLE_PROFILES (default '[]').
  2. ImportPause::isPaused confirms that same pair in xml_import.paused_profiles, configured through XML_IMPORT_PAUSED_PROFILES.

Each configuration value is a JSON array whose entries contain exactly tenant_id (account UUID) and import_profile_id (positive JSON integer, not a string). UUID casing is ignored; wildcards, extra fields and malformed entries are not supported. The whole list is validated, even entries after a match. Invalid allowlist or pause configuration denies the XML action with an ordinary 403, without returning private configuration. A pause alone never grants permission, and an allowlist entry alone never pauses an importer.

This permits POST /properties/{property}/restore and DELETE /properties/{property} for credential holders in that account with normal properties:write. It is not tied to one special credential and adds no writable API field or client-controlled override. Other accounts/profiles, unknown or unavailable profiles, and dashboard/users stay protected. Normal authentication, restore keys, plan capacity and other endpoint rules still apply, including authorization on restore replay. Removing either flag removes this XML permission.

The opt-in does not clear or convert provenance: UUID, import_profile_id, import_key and the existing API-management marker are retained. Restore remains unpublished; delete remains soft deletion. Updates do not gain new permission or silently transfer ownership.

Operator permission is not proof that a running legacy job drained. Stop and independently verify completion of the previous writer before takeover. Refresh application/service configuration, including its config cache, on every serving process after flag changes; these checks do not reload environment variables or interrupt in-flight writes. Keep both flags until takeover has ended, including its restore/delete work and recovery attempts. Do not unpause a legacy importer while the replacement writer still owns delivery. Coordinate any later resumption separately; the flags are not a lock or automatic ownership transfer.

Interpretation scope ​

Residenda stores no account-level rental price frequency, so the API does not claim that rent is monthly. Integrations must obtain frequency from a source that actually defines it. Locale and number formatting affect presentation only and are intentionally omitted. Dates already use explicit OpenAPI date or date-time formats, while the API currently has no separate stored timezone or field-level precision contract that changes property value meaning. Exchange rates, automatic conversions, and a general settings endpoint are outside the property contract.

Residenda developer documentation