Custom views

Update a custom view

Replaces a saved column layout in full. Renaming the view regenerates its key, so the URL you used to update it may no longer address it afterwards. Requires the settings:write permission.

PUT
https://services.magicdoor.com/settings/company-portal/settings/custom-views/{type}/{key}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

typeenum<string>required

Which list screen the view belongs to. Matched case-insensitively, and echoed back in viewType exactly as spelled here.

example: LeasesUnitsPropertiesLeasesLeasesWithBalanceDueDraftLeasesExpiringLeasesPastLeasesLeasesWithMoveOutRequestsLeaseRentalApplicationsPropertyApplicationsAccountingBillsMaintenanceRequestsWorkOrdersWorkOrderBillsPropertyManagersOwnersTenants
keystringrequired

The view's key — its name lowercased with every run of non-alphanumeric characters turned into a hyphen. A view's key changes when its name changes.

example: delinquent-leases

Body

application/json

namestringrequired

What to call the view. Between 3 and 50 characters, and it cannot be Default in any casing — that name is reserved for the built-in view. The key is regenerated from this name.

favoriteboolean

Make this the view the screen opens with. Setting it clears the flag on every other view of the same type.

default: false
descriptionstring

Free text about the view.

columnsobject[]required

The columns the view shows. May be empty. When it is not empty every entry must have selected set to true and a displayOrder, and those orders must be the whole numbers 1 to N with no gaps and no repeats.

Response

200 · The updated view, carrying its current key.

idstringrequired

The view's Snowflake id, as a decimal string. The built-in default view returns the literal string default instead.

keystringrequired

The view's key, derived from its name and used to address it in the other endpoints.

namestringrequired

What the view is called on screen.

viewTypeenum<string>required

The list screen this view belongs to, capitalised.

UnitsPropertiesLeasesLeasesWithBalanceDueDraftLeasesExpiringLeasesPastLeasesLeasesWithMoveOutRequestsLeaseRentalApplicationsPropertyApplicationsAccountingBillsMaintenanceRequestsWorkOrdersWorkOrderBillsPropertyManagersOwnersTenants
favoritebooleanrequired

Whether this is the view the screen opens with. At most one view per type can be the favorite.

descriptionstring

Free text the property manager wrote about the view. Absent when none was given.

columnsobject[]required

The view's columns.

400 · The name is missing, shorter than 3 or longer than 50 characters, or is `Default`; or the columns are not all selected, not all numbered, or not numbered 1 to N without gaps or repeats.

401 · The access token is missing, expired, or invalid.

403 · The caller does not hold the `settings:write` permission.

404 · The company has no saved view with that key for that type.

409 · The new name produces a key another view of the same type already uses.

The body replaces the view outright — columns you leave out are dropped. Read the key on the response and use that from then on.