// Send the rules you decided; every other active rule is written `false`.
const res = await fetch(
'https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules',
{
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.MAAT_PARTNER_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
answers: [
{ slug: 'pets_allowed', allowed: true },
{ slug: 'smoking_allowed', allowed: false },
],
check_in_time: '15:00',
check_out_time: '12:00',
}),
},
);
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.detail}`);
console.log(body.house_rules, body.check_in_time);
import os
import requests
# Send the rules you decided; every other active rule is written False.
res = requests.put(
"https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules",
headers={"Authorization": f"Bearer {os.environ['MAAT_PARTNER_TOKEN']}"},
json={
"answers": [
{"slug": "pets_allowed", "allowed": True},
{"slug": "smoking_allowed", "allowed": False},
],
"check_in_time": "15:00",
"check_out_time": "12:00",
},
timeout=30,
)
body = res.json()
if res.status_code >= 400:
raise RuntimeError(f"{body['code']}: {body.get('detail')}")
print(body["house_rules"], body["check_in_time"])
package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
)
type answer struct {
Slug string `json:"slug"`
Allowed bool `json:"allowed"`
}
type unit struct {
HouseRules []answer `json:"house_rules"`
CheckInTime string `json:"check_in_time"`
}
func main() {
// Send the rules you decided; every other active rule is written false.
payload, _ := json.Marshal(map[string]any{
"answers": []answer{
{Slug: "pets_allowed", Allowed: true},
{Slug: "smoking_allowed", Allowed: false},
},
"check_in_time": "15:00",
"check_out_time": "12:00",
})
req, _ := http.NewRequest(http.MethodPut,
"https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules",
bytes.NewReader(payload))
req.Header.Set("Authorization", "Bearer "+os.Getenv("MAAT_PARTNER_TOKEN"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
if res.StatusCode >= 400 {
log.Fatalf("house-rule write failed: %d", res.StatusCode)
}
var body unit
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
log.Fatal(err)
}
fmt.Println(len(body.HouseRules), body.CheckInTime)
}
Replaces a unit’s house-rule answers, and optionally its door times.
You send the rules you decided; we expand the rest. Every active rule in
Maat’s catalogue that you did not name is written allowed: false. That is what
makes this a set replace rather than a merge, and it is what keeps a rule with no
answer meaning “never asked” on the read side rather than quietly meaning
“no”. Absence has to keep meaning what it says.
An empty answers array is legitimate, and it means “nothing is allowed”. It
is not the same as never having answered.
A slug the catalogue does not have — including a retired one — refuses the
whole call with 400, naming the slugs. GET /catalog/house-rules publishes
every rule and flags a retired one: keep a retired entry to explain an answer you
read back, never to write a new one.
check_in_time and check_out_time are not rules. A time is a value, not a
permission, and both are columns on the unit. They ride this request because they
are written in the same transaction as the answers, so a half-applied edit
where the times saved and the answers rolled back cannot happen. Omit them to
leave the stored times alone.
At most a hundred answers, and no repeated slug.
A 403 on this operation carries one of two codes — insufficient_scope or
workspace_scope_mismatch. Branch on code.
The body is strict. An undeclared field is a 400 validation_failed naming it,
never a silent drop, and a stray query string is refused the same way.
A property with more than one unit, or more than one listing, is refused with
409 property_not_simple; a listing that is not a stay with
409 inventory_not_supported. Nothing is written either way.
// Send the rules you decided; every other active rule is written `false`.
const res = await fetch(
'https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules',
{
method: 'PUT',
headers: {
Authorization: `Bearer ${process.env.MAAT_PARTNER_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
answers: [
{ slug: 'pets_allowed', allowed: true },
{ slug: 'smoking_allowed', allowed: false },
],
check_in_time: '15:00',
check_out_time: '12:00',
}),
},
);
const body = await res.json();
if (!res.ok) throw new Error(`${body.code}: ${body.detail}`);
console.log(body.house_rules, body.check_in_time);
import os
import requests
# Send the rules you decided; every other active rule is written False.
res = requests.put(
"https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules",
headers={"Authorization": f"Bearer {os.environ['MAAT_PARTNER_TOKEN']}"},
json={
"answers": [
{"slug": "pets_allowed", "allowed": True},
{"slug": "smoking_allowed", "allowed": False},
],
"check_in_time": "15:00",
"check_out_time": "12:00",
},
timeout=30,
)
body = res.json()
if res.status_code >= 400:
raise RuntimeError(f"{body['code']}: {body.get('detail')}")
print(body["house_rules"], body["check_in_time"])
package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
)
type answer struct {
Slug string `json:"slug"`
Allowed bool `json:"allowed"`
}
type unit struct {
HouseRules []answer `json:"house_rules"`
CheckInTime string `json:"check_in_time"`
}
func main() {
// Send the rules you decided; every other active rule is written false.
payload, _ := json.Marshal(map[string]any{
"answers": []answer{
{Slug: "pets_allowed", Allowed: true},
{Slug: "smoking_allowed", Allowed: false},
},
"check_in_time": "15:00",
"check_out_time": "12:00",
})
req, _ := http.NewRequest(http.MethodPut,
"https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules",
bytes.NewReader(payload))
req.Header.Set("Authorization", "Bearer "+os.Getenv("MAAT_PARTNER_TOKEN"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
if res.StatusCode >= 400 {
log.Fatalf("house-rule write failed: %d", res.StatusCode)
}
var body unit
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
log.Fatal(err)
}
fmt.Println(len(body.HouseRules), body.CheckInTime)
}
A short-lived partner token, obtained by exchanging your API key at
POST /token. Send it as Authorization: Bearer <access_token>.
Tokens live for fifteen minutes by default and never for more than an hour.
Mint one per batch of work, not one per request.
The token carries the workspace and the environment its key was issued for. You
cannot change either by asking: the exchange ignores everything in the request
body for exactly that reason.
It also carries the key's scopes (scope, a list). Every operation names a
scope as x-maat-scope, and a token whose key lacks it is refused with
403 insufficient_scope, naming the scope. Scopes are fixed when a key is
issued and are re-read from the key on every request, so a key narrowed today is
narrowed on its next call — the token's scope is what the key held at exchange
time, for your own reading, never what authorizes a request.
x-maat-scope is the floor, and on nine operations it is not the whole
story.PUT and DELETE /listings/{listing_id}/quick-actions/{template_key}
carry rules:write, and additionally require pricing:write when
template_key begins pricing. — the capability depends on the template in
the path, because a cleaning fee changes what a guest pays and a minimum stay
does not. The refusal is the same 403 insufficient_scope, naming
pricing:write. The two READS apply the same requirement without erroring:
GET /listings/{listing_id}/quick-actions still lists the pricing.* rows but
withholds their applied state, and GET /listings/{listing_id}/rules omits the
pricing rules entirely and reports pricing_withheld in warnings. The five
operations that return a booking — the two booking reads, confirm, reject and
POST /sandbox/bookings — read guests:read the same way, without ever
erroring: it decides whether a booking's guest carries the guest's display name
(and, where guest contact is enabled for your workspace, email and phone) or is
null, and whether guest_note can be anything but null. These nine are the only operations in this document whose answer
depends on more than their x-maat-scope, and each of them says so
machine-readably: x-maat-scope-additional lists the second scope it can read
and x-maat-scope-additional-when says what happens without it.
Never send it as a cookie or in a query string, and never store it — store the
API key, mint tokens from it.
Path Parameters
unit_id
string<uuid>
required
Maat's identifier for the physical unit.
Body
application/json
The house-rule answer set, replaced — and the door times, which ride along.
Send the rules you decided. Every active rule in Maat's catalogue you did not
name is written allowed: false, which is what keeps "a rule with no answer"
meaning never asked on the read side.
answers
HouseRuleAnswer · object[]
required
At most a hundred, and no repeated slug — a repeat is a 400. An EMPTY
array is legitimate and means "nothing is allowed"; it is not the same as
never having answered.
A slug the catalogue does not have, INCLUDING a retired one, refuses the
whole call with 400 naming the slugs.
Maximum array length: 100
Show child attributes
check_in_time
string
Local time, 24-hour. NOT a rule — a value on the unit, written in the
same transaction as the answers. Omit it to leave the stored time alone.
Pattern: ^([01]\d|2[0-3]):[0-5]\d$
Example:
"15:00"
check_out_time
string
Local check-out time, 24-hour HH:MM. The platform default is 12:00.
Pattern: ^([01]\d|2[0-3]):[0-5]\d$
Example:
"12:00"
Response
The unit, read back after the change.
One physical unit, and the listings sold on it.
unit_type
string
required
What kind of physical inventory this is, as a slug.
max_guests
integer
required
The most people the unit sleeps.
bedrooms
integer
required
Rooms intended for sleeping.
beds
integer
required
Beds in total, across every room.
bathrooms
integer
required
Whole bathrooms. Half-bathrooms are not expressible.
check_in_time
string
required
Local HH:MM, 24-hour.
Pattern: ^([01]\d|2[0-3]):[0-5]\d$
Example:
"15:00"
check_out_time
string
required
Local check-out time, 24-hour HH:MM. The platform default is 12:00.
Pattern: ^([01]\d|2[0-3]):[0-5]\d$
Example:
"12:00"
amenities
string[]
required
Amenity slugs. See GET /catalog/amenities.
house_rules
HouseRuleAnswer · object[]
required
Every house rule that has been answered for this unit. A rule that was never asked is absent.
Show child attributes
listings
Listing · object[]
required
The sellable views of this unit. One today; the model allows more.
Show child attributes
unit_id
string<uuid>
The unit's id — the one GET /units/{unit_id} takes.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Maat Stays","description":"Guides and reference for managing your Maat Stays listings, calendars, rates, bookings and reviews from your own system.","colors":{"primary":"#c5142a","light":"#ff6a74","dark":"#a8122a"},"logo":{"light":"https://mintcdn.com/maat-stays/ygU_m5Epp3x1yrso/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=ygU_m5Epp3x1yrso\u0026q=85\u0026s=7bdd8b6510d319f3eac8835912546dcc","dark":"https://mintcdn.com/maat-stays/ygU_m5Epp3x1yrso/logo/logo-dark.svg?fit=max\u0026auto=format\u0026n=ygU_m5Epp3x1yrso\u0026q=85\u0026s=50cf3353b610a530a0657a8d261df0be"},"favicon":"https://mintcdn.com/maat-stays/ygU_m5Epp3x1yrso/logo/icon.svg?fit=max\u0026auto=format\u0026n=ygU_m5Epp3x1yrso\u0026q=85\u0026s=0fcc683aa8ad70eae0ba06b5460afa34","api":{"playground":{"display":"interactive","proxy":true},"examples":{"defaults":"required","languages":["curl","javascript","python","go"]}},"appearance":{"default":"system"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"maat-stays","hasAudioNarration":false,"actualSubdomain":"maat-stays","customDomains":["developer.maatstays.com"],"gitSource":{"type":"github","owner":"imustafa","repo":"geospacial","deployBranch":"main","contentDirectory":"developer-docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10fc559ffae5051c41c048"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b152e6693b18845e0999d48","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"API Reference","count":113},{"language":"default","tag":"Enums","count":41},{"language":"default","tag":"Pricing","count":11},{"language":"default","tag":"Guides","count":11},{"language":"default","tag":"Booking notifications","count":8},{"language":"default","tag":"Reference","count":8},{"language":"default","tag":"Webhooks","count":8},{"language":"default","tag":"Calendar","count":6},{"language":"default","tag":"Get started","count":6},{"language":"default","tag":"Finance","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/units/replace-a-units-house-rule-answers","slug":"/api-reference/units/replace-a-units-house-rule-answers","pageMetadata":{"title":"Replace a unit's house-rule answers","description":"Replaces a unit's house-rule answers, and optionally its door times.\n\n**You send the rules you decided; we expand the rest.** Every active rule in\nMaat's catalogue that you did not name is written `allowed: false`. That is what\nmakes this a set replace rather than a merge, and it is what keeps a rule with no\nanswer meaning **\"never asked\"** on the read side rather than quietly meaning\n\"no\". Absence has to keep meaning what it says.\n\nAn **empty `answers` array is legitimate**, and it means \"nothing is allowed\". It\nis not the same as never having answered.\n\nA slug the catalogue does not have — **including a retired one** — refuses the\nwhole call with `400`, naming the slugs. `GET /catalog/house-rules` publishes\nevery rule and flags a retired one: keep a retired entry to explain an answer you\nread back, never to write a new one.\n\n**`check_in_time` and `check_out_time` are not rules.** A time is a value, not a\npermission, and both are columns on the unit. They ride this request because they\nare written in the **same transaction** as the answers, so a half-applied edit\nwhere the times saved and the answers rolled back cannot happen. Omit them to\nleave the stored times alone.\n\nAt most a hundred answers, and no repeated slug.\n\nA `403` on this operation carries one of two codes — `insufficient_scope` or\n`workspace_scope_mismatch`. Branch on `code`.\n\nThe body is strict. An undeclared field is a `400 validation_failed` naming it,\nnever a silent drop, and a stray query string is refused the same way.\n\nA property with more than one unit, or more than one listing, is refused with\n`409 property_not_simple`; a listing that is not a stay with\n`409 inventory_not_supported`. Nothing is written either way.\n","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /units/{unit_id}/house-rules","href":"/api-reference/units/replace-a-units-house-rule-answers","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Replaces a unit’s house-rule answers, and optionally its door times.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"You send the rules you decided; we expand the rest.\"\n }), \" Every active rule in\\nMaat’s catalogue that you did not name is written \", _jsx(_components.code, {\n children: \"allowed: false\"\n }), \". That is what\\nmakes this a set replace rather than a merge, and it is what keeps a rule with no\\nanswer meaning \", _jsx(_components.strong, {\n children: \"“never asked”\"\n }), \" on the read side rather than quietly meaning\\n“no”. Absence has to keep meaning what it says.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"An \", _jsxs(_components.strong, {\n children: [\"empty \", _jsx(_components.code, {\n children: \"answers\"\n }), \" array is legitimate\"]\n }), \", and it means “nothing is allowed”. It\\nis not the same as never having answered.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A slug the catalogue does not have — \", _jsx(_components.strong, {\n children: \"including a retired one\"\n }), \" — refuses the\\nwhole call with \", _jsx(_components.code, {\n children: \"400\"\n }), \", naming the slugs. \", _jsx(_components.code, {\n children: \"GET /catalog/house-rules\"\n }), \" publishes\\nevery rule and flags a retired one: keep a retired entry to explain an answer you\\nread back, never to write a new one.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsxs(_components.strong, {\n children: [_jsx(_components.code, {\n children: \"check_in_time\"\n }), \" and \", _jsx(_components.code, {\n children: \"check_out_time\"\n }), \" are not rules.\"]\n }), \" A time is a value, not a\\npermission, and both are columns on the unit. They ride this request because they\\nare written in the \", _jsx(_components.strong, {\n children: \"same transaction\"\n }), \" as the answers, so a half-applied edit\\nwhere the times saved and the answers rolled back cannot happen. Omit them to\\nleave the stored times alone.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"At most a hundred answers, and no repeated slug.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A \", _jsx(_components.code, {\n children: \"403\"\n }), \" on this operation carries one of two codes — \", _jsx(_components.code, {\n children: \"insufficient_scope\"\n }), \" or\\n\", _jsx(_components.code, {\n children: \"workspace_scope_mismatch\"\n }), \". Branch on \", _jsx(_components.code, {\n children: \"code\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The body is strict. An undeclared field is a \", _jsx(_components.code, {\n children: \"400 validation_failed\"\n }), \" naming it,\\nnever a silent drop, and a stray query string is refused the same way.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A property with more than one unit, or more than one listing, is refused with\\n\", _jsx(_components.code, {\n children: \"409 property_not_simple\"\n }), \"; a listing that is not a stay with\\n\", _jsx(_components.code, {\n children: \"409 inventory_not_supported\"\n }), \". Nothing is written either way.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Replace a unit's house-rule answers","description":"Replaces a unit's house-rule answers, and optionally its door times.\n\n**You send the rules you decided; we expand the rest.** Every active rule in\nMaat's catalogue that you did not name is written `allowed: false`. That is what\nmakes this a set replace rather than a merge, and it is what keeps a rule with no\nanswer meaning **\"never asked\"** on the read side rather than quietly meaning\n\"no\". Absence has to keep meaning what it says.\n\nAn **empty `answers` array is legitimate**, and it means \"nothing is allowed\". It\nis not the same as never having answered.\n\nA slug the catalogue does not have — **including a retired one** — refuses the\nwhole call with `400`, naming the slugs. `GET /catalog/house-rules` publishes\nevery rule and flags a retired one: keep a retired entry to explain an answer you\nread back, never to write a new one.\n\n**`check_in_time` and `check_out_time` are not rules.** A time is a value, not a\npermission, and both are columns on the unit. They ride this request because they\nare written in the **same transaction** as the answers, so a half-applied edit\nwhere the times saved and the answers rolled back cannot happen. Omit them to\nleave the stored times alone.\n\nAt most a hundred answers, and no repeated slug.\n\nA `403` on this operation carries one of two codes — `insufficient_scope` or\n`workspace_scope_mismatch`. Branch on `code`.\n\nThe body is strict. An undeclared field is a `400 validation_failed` naming it,\nnever a silent drop, and a stray query string is refused the same way.\n\nA property with more than one unit, or more than one listing, is refused with\n`409 property_not_simple`; a listing that is not a stay with\n`409 inventory_not_supported`. Nothing is written either way.\n","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /units/{unit_id}/house-rules","href":"/api-reference/units/replace-a-units-house-rule-answers","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["units"],"operationId":"replaceUnitHouseRules","x-maat-scope":"catalog:write","x-maat-availability":"production","summary":"Replace a unit's house-rule answers","x-codeSamples":[{"lang":"bash","label":"cURL","source":"curl --fail-with-body -X PUT https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules \\\n -H \"Authorization: Bearer $MAAT_PARTNER_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"answers\": [\n { \"slug\": \"pets_allowed\", \"allowed\": true },\n { \"slug\": \"smoking_allowed\", \"allowed\": false }\n ],\n \"check_in_time\": \"15:00\",\n \"check_out_time\": \"12:00\"\n }'\n"},{"lang":"javascript","label":"Node.js","source":"// Send the rules you decided; every other active rule is written `false`.\nconst res = await fetch(\n 'https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules',\n {\n method: 'PUT',\n headers: {\n Authorization: `Bearer ${process.env.MAAT_PARTNER_TOKEN}`,\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n answers: [\n { slug: 'pets_allowed', allowed: true },\n { slug: 'smoking_allowed', allowed: false },\n ],\n check_in_time: '15:00',\n check_out_time: '12:00',\n }),\n },\n);\n\nconst body = await res.json();\nif (!res.ok) throw new Error(`${body.code}: ${body.detail}`);\n\nconsole.log(body.house_rules, body.check_in_time);\n"},{"lang":"python","label":"Python","source":"import os\n\nimport requests\n\n# Send the rules you decided; every other active rule is written False.\nres = requests.put(\n \"https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules\",\n headers={\"Authorization\": f\"Bearer {os.environ['MAAT_PARTNER_TOKEN']}\"},\n json={\n \"answers\": [\n {\"slug\": \"pets_allowed\", \"allowed\": True},\n {\"slug\": \"smoking_allowed\", \"allowed\": False},\n ],\n \"check_in_time\": \"15:00\",\n \"check_out_time\": \"12:00\",\n },\n timeout=30,\n)\n\nbody = res.json()\nif res.status_code >= 400:\n raise RuntimeError(f\"{body['code']}: {body.get('detail')}\")\n\nprint(body[\"house_rules\"], body[\"check_in_time\"])\n"},{"lang":"go","label":"Go","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"fmt\"\n \"log\"\n \"net/http\"\n \"os\"\n)\n\ntype answer struct {\n Slug string `json:\"slug\"`\n Allowed bool `json:\"allowed\"`\n}\n\ntype unit struct {\n HouseRules []answer `json:\"house_rules\"`\n CheckInTime string `json:\"check_in_time\"`\n}\n\nfunc main() {\n // Send the rules you decided; every other active rule is written false.\n payload, _ := json.Marshal(map[string]any{\n \"answers\": []answer{\n {Slug: \"pets_allowed\", Allowed: true},\n {Slug: \"smoking_allowed\", Allowed: false},\n },\n \"check_in_time\": \"15:00\",\n \"check_out_time\": \"12:00\",\n })\n\n req, _ := http.NewRequest(http.MethodPut,\n \"https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules\",\n bytes.NewReader(payload))\n req.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"MAAT_PARTNER_TOKEN\"))\n req.Header.Set(\"Content-Type\", \"application/json\")\n\n res, err := http.DefaultClient.Do(req)\n if err != nil {\n log.Fatal(err)\n }\n defer res.Body.Close()\n\n if res.StatusCode >= 400 {\n log.Fatalf(\"house-rule write failed: %d\", res.StatusCode)\n }\n\n var body unit\n if err := json.NewDecoder(res.Body).Decode(\u0026body); err != nil {\n log.Fatal(err)\n }\n fmt.Println(len(body.HouseRules), body.CheckInTime)\n}\n"}],"description":"Replaces a unit's house-rule answers, and optionally its door times.\n\n**You send the rules you decided; we expand the rest.** Every active rule in\nMaat's catalogue that you did not name is written `allowed: false`. That is what\nmakes this a set replace rather than a merge, and it is what keeps a rule with no\nanswer meaning **\"never asked\"** on the read side rather than quietly meaning\n\"no\". Absence has to keep meaning what it says.\n\nAn **empty `answers` array is legitimate**, and it means \"nothing is allowed\". It\nis not the same as never having answered.\n\nA slug the catalogue does not have — **including a retired one** — refuses the\nwhole call with `400`, naming the slugs. `GET /catalog/house-rules` publishes\nevery rule and flags a retired one: keep a retired entry to explain an answer you\nread back, never to write a new one.\n\n**`check_in_time` and `check_out_time` are not rules.** A time is a value, not a\npermission, and both are columns on the unit. They ride this request because they\nare written in the **same transaction** as the answers, so a half-applied edit\nwhere the times saved and the answers rolled back cannot happen. Omit them to\nleave the stored times alone.\n\nAt most a hundred answers, and no repeated slug.\n\nA `403` on this operation carries one of two codes — `insufficient_scope` or\n`workspace_scope_mismatch`. Branch on `code`.\n\nThe body is strict. An undeclared field is a `400 validation_failed` naming it,\nnever a silent drop, and a stray query string is refused the same way.\n\nA property with more than one unit, or more than one listing, is refused with\n`409 property_not_simple`; a listing that is not a stay with\n`409 inventory_not_supported`. Nothing is written either way.\n","parameters":["e7f312a2-243a-450f-a199-a352639b38a7"],"requestBody":"e2286261-23c0-44c1-b8ce-4c3325f68cb5","responses":{"200":"fefc8e85-2e39-4acc-8e7f-2bfe39c45bb6","400":"09aefceb-e736-4f55-8939-84ec92613a63","401":"434ebf23-498a-4274-8ebe-0cae767e4a00","403":"9002a74c-6c35-4d4a-9f0d-49b392c5539c","404":"6f4d2ad7-ab91-4bfe-949f-489179732fe1","409":"a2f40be8-2201-41c4-a53a-a46f6fdc894b","429":"4fac9978-8783-4d98-9e51-280e41ee746c","500":"4eb92085-469a-4644-8ecf-2e62cd9a270b"},"method":"put","type":"path","servers":["bfd060a5-0f89-4901-9142-ddadbc088436"],"security":["27c1ff0b-58c5-43d0-84ca-9d1f79d33330"],"path":"/units/{unit_id}/house-rules","baseUrlOptions":["https://maatstays.com/v1"],"title":"Replace a unit's house-rule answers","codeSamples":[{"label":"cURL","lang":"bash","source":"curl --fail-with-body -X PUT https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules \\\n -H \"Authorization: Bearer $MAAT_PARTNER_TOKEN\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"answers\": [\n { \"slug\": \"pets_allowed\", \"allowed\": true },\n { \"slug\": \"smoking_allowed\", \"allowed\": false }\n ],\n \"check_in_time\": \"15:00\",\n \"check_out_time\": \"12:00\"\n }'\n"},{"label":"Node.js","lang":"javascript","source":"// Send the rules you decided; every other active rule is written `false`.\nconst res = await fetch(\n 'https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules',\n {\n method: 'PUT',\n headers: {\n Authorization: `Bearer ${process.env.MAAT_PARTNER_TOKEN}`,\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n answers: [\n { slug: 'pets_allowed', allowed: true },\n { slug: 'smoking_allowed', allowed: false },\n ],\n check_in_time: '15:00',\n check_out_time: '12:00',\n }),\n },\n);\n\nconst body = await res.json();\nif (!res.ok) throw new Error(`${body.code}: ${body.detail}`);\n\nconsole.log(body.house_rules, body.check_in_time);\n"},{"label":"Python","lang":"python","source":"import os\n\nimport requests\n\n# Send the rules you decided; every other active rule is written False.\nres = requests.put(\n \"https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules\",\n headers={\"Authorization\": f\"Bearer {os.environ['MAAT_PARTNER_TOKEN']}\"},\n json={\n \"answers\": [\n {\"slug\": \"pets_allowed\", \"allowed\": True},\n {\"slug\": \"smoking_allowed\", \"allowed\": False},\n ],\n \"check_in_time\": \"15:00\",\n \"check_out_time\": \"12:00\",\n },\n timeout=30,\n)\n\nbody = res.json()\nif res.status_code >= 400:\n raise RuntimeError(f\"{body['code']}: {body.get('detail')}\")\n\nprint(body[\"house_rules\"], body[\"check_in_time\"])\n"},{"label":"Go","lang":"go","source":"package main\n\nimport (\n \"bytes\"\n \"encoding/json\"\n \"fmt\"\n \"log\"\n \"net/http\"\n \"os\"\n)\n\ntype answer struct {\n Slug string `json:\"slug\"`\n Allowed bool `json:\"allowed\"`\n}\n\ntype unit struct {\n HouseRules []answer `json:\"house_rules\"`\n CheckInTime string `json:\"check_in_time\"`\n}\n\nfunc main() {\n // Send the rules you decided; every other active rule is written false.\n payload, _ := json.Marshal(map[string]any{\n \"answers\": []answer{\n {Slug: \"pets_allowed\", Allowed: true},\n {Slug: \"smoking_allowed\", Allowed: false},\n },\n \"check_in_time\": \"15:00\",\n \"check_out_time\": \"12:00\",\n })\n\n req, _ := http.NewRequest(http.MethodPut,\n \"https://maatstays.com/v1/units/8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804/house-rules\",\n bytes.NewReader(payload))\n req.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"MAAT_PARTNER_TOKEN\"))\n req.Header.Set(\"Content-Type\", \"application/json\")\n\n res, err := http.DefaultClient.Do(req)\n if err != nil {\n log.Fatal(err)\n }\n defer res.Body.Close()\n\n if res.StatusCode >= 400 {\n log.Fatalf(\"house-rule write failed: %d\", res.StatusCode)\n }\n\n var body unit\n if err := json.NewDecoder(res.Body).Decode(\u0026body); err != nil {\n log.Fatal(err)\n }\n fmt.Println(len(body.HouseRules), body.CheckInTime)\n}\n"}],"requestExampleLanguages":["bash","javascript","python","go"],"requiredOnlyExamples":true,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{"e7f312a2-243a-450f-a199-a352639b38a7":{"name":"unit_id","in":"path","required":true,"description":"Maat's identifier for the physical unit.","schema":{"type":"string","format":"uuid","isRequired":true,"description":"Maat's identifier for the physical unit.","uniqueKey":"","typeLabel":"string\u003cuuid>"},"example":"8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","title":"HouseRulesWriteRequest","description":"The house-rule answer set, replaced — and the door times, which ride along.\n\nSend the rules you decided. Every active rule in Maat's catalogue you did not\nname is written `allowed: false`, which is what keeps \"a rule with no answer\"\nmeaning **never asked** on the read side.\n","required":["answers"],"additionalProperties":false,"properties":{"answers":{"type":"array","maxItems":100,"description":"At most a hundred, and no repeated slug — a repeat is a `400`. An EMPTY\narray is legitimate and means \"nothing is allowed\"; it is not the same as\nnever having answered.\n\nA slug the catalogue does not have, INCLUDING a retired one, refuses the\nwhole call with `400` naming the slugs.\n","items":{"type":"object","title":"HouseRuleAnswer","description":"One rule and the host's answer to it. A rule that is **absent** was never asked —\nabsence does not mean `false`.\n","required":["slug","allowed"],"additionalProperties":false,"properties":{"slug":{"type":"string","description":"A house-rule slug from `GET /catalog/house-rules`.","isRequired":true,"uniqueKey":"answers.items.[INDEX].slug","typeLabel":"string"},"allowed":{"type":"boolean","description":"The answer to that rule. Absence of the slug means the question was never asked, which is not the same as `false`.","isRequired":true,"uniqueKey":"answers.items.[INDEX].allowed","typeLabel":"boolean"}},"uniqueKey":"answers.items.[INDEX]","typeLabel":"HouseRuleAnswer · object"},"isRequired":true,"uniqueKey":"answers","typeLabel":"HouseRuleAnswer · object[]"},"check_in_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"Local time, 24-hour. NOT a rule — a value on the unit, written in the\nsame transaction as the answers. Omit it to leave the stored time alone.\n","example":"15:00","uniqueKey":"check_in_time","typeLabel":"string"},"check_out_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"Local check-out time, 24-hour `HH:MM`. The platform default is `12:00`.","example":"12:00","uniqueKey":"check_out_time","typeLabel":"string"}},"uniqueKey":"","typeLabel":"HouseRulesWriteRequest · object"},"example":{"answers":[{"slug":"pets_allowed","allowed":true},{"slug":"smoking_allowed","allowed":false}],"check_in_time":"15:00","check_out_time":"12:00"},"examples":{"Example":{"title":"Example","value":{"answers":[{"slug":"pets_allowed","allowed":true},{"slug":"smoking_allowed","allowed":false}],"check_in_time":"15:00","check_out_time":"12:00"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"fefc8e85-2e39-4acc-8e7f-2bfe39c45bb6":{"headers":{"X-Correlation-Id":{"description":"This request's own identifier, on **every** response including the ones with no\nbody. It is the same value as `instance` in a problem document, minus the\n`urn:maat:request:` prefix, and it is what to quote when you raise a problem —\nhttps://developer.maatstays.com/guides/developer-access says where that goes.\n\nSend your own `X-Correlation-Id` and we return it unchanged — as long as it is\nat most 200 characters of visible ASCII with no spaces. Anything else is\nreplaced by an id of ours, returned in this same header and used as `instance`,\nso the id you are handed is always one that resolves on both sides. Nothing is\never truncated: a clipped id is a wrong id that looks right.\n","schema":{"type":"string","maxLength":200},"example":"3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33"},"RateLimit-Policy":{"description":"The quota and its window, e.g. `600;w=3600`. Absent on a `401` or `403` from\nauthentication itself, which happens before your key is known.\n","schema":{"type":"string"},"example":"600;w=3600"},"RateLimit-Limit":{"description":"The quota for the current window, for THIS key. 600 by default; a key whose\nceiling has been raised reports its own figure here.\n","schema":{"type":"integer"},"example":600},"RateLimit-Remaining":{"description":"Requests left in the current window. Pace against this.","schema":{"type":"integer"},"example":587},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"},"example":2384}},"description":"The unit, read back after the change.","content":{"application/json":{"schema":{"type":"object","title":"Unit","description":"One physical unit, and the listings sold on it.\n","required":["unit_type","max_guests","bedrooms","beds","bathrooms","check_in_time","check_out_time","amenities","house_rules","listings"],"additionalProperties":false,"properties":{"unit_type":{"type":"string","description":"What kind of physical inventory this is, as a slug.","isRequired":true,"uniqueKey":"unit_type","typeLabel":"string"},"max_guests":{"type":"integer","description":"The most people the unit sleeps.","isRequired":true,"uniqueKey":"max_guests","typeLabel":"integer"},"bedrooms":{"type":"integer","description":"Rooms intended for sleeping.","isRequired":true,"uniqueKey":"bedrooms","typeLabel":"integer"},"beds":{"type":"integer","description":"Beds in total, across every room.","isRequired":true,"uniqueKey":"beds","typeLabel":"integer"},"bathrooms":{"type":"integer","description":"Whole bathrooms. Half-bathrooms are not expressible.","isRequired":true,"uniqueKey":"bathrooms","typeLabel":"integer"},"check_in_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"Local `HH:MM`, 24-hour.","example":"15:00","isRequired":true,"uniqueKey":"check_in_time","typeLabel":"string"},"check_out_time":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$","description":"Local check-out time, 24-hour `HH:MM`. The platform default is `12:00`.","example":"12:00","isRequired":true,"uniqueKey":"check_out_time","typeLabel":"string"},"amenities":{"type":"array","description":"Amenity slugs. See `GET /catalog/amenities`.","items":{"type":"string","uniqueKey":"amenities.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"amenities","typeLabel":"string[]"},"house_rules":{"type":"array","description":"Every house rule that has been answered for this unit. A rule that was never asked is absent.","items":{"type":"object","title":"HouseRuleAnswer","description":"One rule and the host's answer to it. A rule that is **absent** was never asked —\nabsence does not mean `false`.\n","required":["slug","allowed"],"additionalProperties":false,"properties":{"slug":{"type":"string","description":"A house-rule slug from `GET /catalog/house-rules`.","isRequired":true,"uniqueKey":"house_rules.items.[INDEX].slug","typeLabel":"string"},"allowed":{"type":"boolean","description":"The answer to that rule. Absence of the slug means the question was never asked, which is not the same as `false`.","isRequired":true,"uniqueKey":"house_rules.items.[INDEX].allowed","typeLabel":"boolean"}},"uniqueKey":"house_rules.items.[INDEX]","typeLabel":"HouseRuleAnswer · object"},"isRequired":true,"uniqueKey":"house_rules","typeLabel":"HouseRuleAnswer · object[]"},"listings":{"type":"array","description":"The sellable views of this unit. One today; the model allows more.","items":{"type":"object","title":"Listing","description":"The sellable view of one unit.\n\n`console_url` is a deep link into the Maat host console. It is `null` for a\nlisting with no property behind it.\n","required":["listing_id","inventory_kind","title","description","status","base_rate","cleaning_fee","instant_booking","is_exclusive","is_best_price","rating","publishable","missing"],"additionalProperties":false,"properties":{"listing_id":{"type":"string","format":"uuid","description":"Maat's id for the listing. The id every listing-scoped operation takes.","isRequired":true,"uniqueKey":"listings.items.[INDEX].listing_id","typeLabel":"string\u003cuuid>"},"inventory_kind":{"type":"string","title":"InventoryKind","description":"What the listing sells. `unit` is a place somebody stays in; the other\ntwo are sold by the seat and are read-only through this contract.\n\nSee [`InventoryKind`](/api-reference/enums/inventory-kind).\n","enum":["unit","service","experience"],"x-enum-descriptions":{"unit":"A place somebody sleeps. The only kind this contract manages.","service":"A provider's time, sold in slots. Refused with `inventory_not_supported`.","experience":"A scheduled session, sold in seats. Refused with `inventory_not_supported`."},"x-maat-internal-enum":{"name":"PartnerInventoryKind","relation":"equals"},"isRequired":true,"uniqueKey":"listings.items.[INDEX].inventory_kind","typeLabel":"enum\u003cstring>"},"title":{"type":"string","description":"The listing's title, as guests see it.","isRequired":true,"uniqueKey":"listings.items.[INDEX].title","typeLabel":"string"},"description":{"type":"string","description":"The listing's description, as guests see it. Empty string when the host has written none.","isRequired":true,"uniqueKey":"listings.items.[INDEX].description","typeLabel":"string"},"status":{"type":"string","title":"ListingStatus","description":"Whether it is on sale right now. `unlisted` covers every reason — asked\nfor, held back by the validity gate, or suspended. `missing` says which.\n\nSee [`ListingStatus`](/api-reference/enums/listing-status).\n","enum":["listed","unlisted"],"x-enum-descriptions":{"listed":"On sale on Maat right now.","unlisted":"Not on sale — read `missing` to tell \"held back\" from \"taken off\"."},"x-maat-internal-enum":{"name":"PartnerPropertyStatus","relation":"equals"},"isRequired":true,"uniqueKey":"listings.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"base_rate":{"type":"object","title":"Money","description":"An amount and its currency, always together.\n\n`value` is a decimal **string**, not a number. `1250.10` has no exact IEEE-754\nrepresentation, and a JSON parser that rounds it costs a cent on every booking.\nParse it with a decimal type, not a float.\n\nThere is no bare amount anywhere in this API and no currency field sitting beside\none. Two fields can be read separately; one object cannot.\n","required":["value","currency"],"additionalProperties":false,"properties":{"value":{"type":"string","pattern":"^\\d{1,10}(\\.\\d{1,2})?$","description":"Decimal string, at most two decimal places.","example":"1250.00","isRequired":true,"uniqueKey":"listings.items.[INDEX].base_rate.value","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217, uppercase.","example":"EGP","isRequired":true,"uniqueKey":"listings.items.[INDEX].base_rate.currency","typeLabel":"string"}},"isRequired":true,"uniqueKey":"listings.items.[INDEX].base_rate","typeLabel":"Money · object"},"cleaning_fee":{"oneOf":[{"type":"object","title":"Money","description":"The cleaning fee a booking is charged, however it was set — here or with the\n`pricing.cleaning_fee` quick action. `null` when the listing charges none.\nNever `\"0.00\"`, which would read as a price of zero. A fee with stay-length\ntiers shows its base amount; the tiers are on the quick-actions list.\n","required":["value","currency"],"properties":{"value":{"type":"string","pattern":"^\\d{1,10}(\\.\\d{1,2})?$","description":"Decimal string, at most two decimal places.","example":"1250.00","isRequired":true,"uniqueKey":"listings.items.[INDEX].cleaning_fee.oneOf.0.value","typeLabel":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217, uppercase.","example":"EGP","isRequired":true,"uniqueKey":"listings.items.[INDEX].cleaning_fee.oneOf.0.currency","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"listings.items.[INDEX].cleaning_fee.oneOf.0","typeLabel":"Money · object"},{"type":"null","description":"The cleaning fee a booking is charged, however it was set — here or with the\n`pricing.cleaning_fee` quick action. `null` when the listing charges none.\nNever `\"0.00\"`, which would read as a price of zero. A fee with stay-length\ntiers shows its base amount; the tiers are on the quick-actions list.\n","isRequired":true,"uniqueKey":"listings.items.[INDEX].cleaning_fee.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"listings.items.[INDEX].cleaning_fee","typeLabel":"Money · object | null"},"instant_booking":{"type":"boolean","description":"Whether a guest can book without the host confirming first.","isRequired":true,"uniqueKey":"listings.items.[INDEX].instant_booking","typeLabel":"boolean"},"is_exclusive":{"type":"boolean","description":"Whether the listing is part of Maat's curated collection. Set by Maat, not by this API.","isRequired":true,"uniqueKey":"listings.items.[INDEX].is_exclusive","typeLabel":"boolean"},"is_best_price":{"type":"boolean","description":"A marketing badge. Not an amount, despite the name.","isRequired":true,"uniqueKey":"listings.items.[INDEX].is_best_price","typeLabel":"boolean"},"rating":{"type":"object","title":"ListingRating","description":"The review score, as one object. `average` is `null` until somebody has scored\nthe listing — a zero would be a terrible score, and \"nobody has stayed yet\" is\nnot one.\n","required":["average","count"],"additionalProperties":false,"properties":{"average":{"oneOf":[{"type":"number","description":"The mean guest score out of five, or `null` when nobody has reviewed the listing yet.","example":4.7,"isRequired":true,"uniqueKey":"listings.items.[INDEX].rating.average.oneOf.0","typeLabel":"number"},{"type":"null","description":"The mean guest score out of five, or `null` when nobody has reviewed the listing yet.","example":4.7,"isRequired":true,"uniqueKey":"listings.items.[INDEX].rating.average.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"listings.items.[INDEX].rating.average","typeLabel":"number | null"},"count":{"type":"integer","description":"How many reviews the average is over. Zero when there are none.","isRequired":true,"uniqueKey":"listings.items.[INDEX].rating.count","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"listings.items.[INDEX].rating","typeLabel":"ListingRating · object"},"publishable":{"oneOf":[{"type":"boolean","description":"Whether the listing satisfies the platform's validity gate — a price\nabove zero, at least one amenity, a cover photo and a minimum photo\ncount.\n\n`null` means **nothing was assessed**, and is not the same as `false`:\nthe gate describes a place somebody stays in, so a `service` or\n`experience` listing has no answer to it.\n","isRequired":true,"uniqueKey":"listings.items.[INDEX].publishable.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether the listing satisfies the platform's validity gate — a price\nabove zero, at least one amenity, a cover photo and a minimum photo\ncount.\n\n`null` means **nothing was assessed**, and is not the same as `false`:\nthe gate describes a place somebody stays in, so a `service` or\n`experience` listing has no answer to it.\n","isRequired":true,"uniqueKey":"listings.items.[INDEX].publishable.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"listings.items.[INDEX].publishable","typeLabel":"boolean | null"},"missing":{"type":"array","description":"Reasons `publishable` is false. Empty otherwise.\n\nSee [`MissingReason`](/api-reference/enums/missing-reason).\n","items":{"type":"string","title":"MissingReason","description":"Why a listing is not publishable. A closed vocabulary.","enum":["price","amenities","cover_photo","photos","photos_processing","unlisted"],"x-enum-descriptions":{"price":"No nightly price has been set.","amenities":"No amenity has been selected.","cover_photo":"No photo is marked as the cover.","photos":"Fewer photos than publication needs.","photos_processing":"Photos are still being processed — this one clears itself.","unlisted":"Nothing is missing; somebody took it off sale deliberately."},"x-maat-internal-enum":{"name":"PartnerPropertyMissingReason","relation":"equals"},"uniqueKey":"listings.items.[INDEX].missing.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"listings.items.[INDEX].missing","typeLabel":"enum\u003cstring>[]"},"console_url":{"oneOf":[{"type":"string","format":"uri","description":"The listing's page in the Maat host console.","uniqueKey":"listings.items.[INDEX].console_url.oneOf.0","typeLabel":"string\u003curi>"},{"type":"null","format":"uri","description":"The listing's page in the Maat host console.","uniqueKey":"listings.items.[INDEX].console_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"listings.items.[INDEX].console_url","typeLabel":"string\u003curi> | null"}},"uniqueKey":"listings.items.[INDEX]","typeLabel":"Listing · object"},"isRequired":true,"uniqueKey":"listings","typeLabel":"Listing · object[]"},"unit_id":{"type":"string","format":"uuid","description":"The unit's id — the one `GET /units/{unit_id}` takes.","uniqueKey":"unit_id","typeLabel":"string\u003cuuid>"}},"uniqueKey":"","typeLabel":"Unit · object"},"example":{"unit_id":"8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804","unit_type":"apartment","max_guests":4,"bedrooms":2,"beds":3,"bathrooms":1,"check_in_time":"15:00","check_out_time":"12:00","amenities":["wifi","air-conditioning","washing-machine"],"house_rules":[{"slug":"pets_allowed","allowed":true},{"slug":"smoking_allowed","allowed":false}],"listings":[{"listing_id":"7c4b1e58-2a90-4f61-b3d2-5e8a1c0f7d24","inventory_kind":"unit","title":"Courtyard flat with the blue door","description":"A two-bedroom flat one street back from the corniche.","status":"listed","base_rate":{"value":"1250.00","currency":"EGP"},"cleaning_fee":{"value":"200.00","currency":"EGP"},"instant_booking":true,"is_exclusive":false,"is_best_price":true,"rating":{"average":4.8,"count":24},"publishable":true,"missing":[],"console_url":"https://maatstays.com/properties/3c9d1f42-7b60-4a18-9e55-0d2a6f8c31b7"}]},"examples":{"Example":{"title":"Example","value":{"unit_id":"8e4b2a17-5c39-4d61-b0f2-7a9c3e51d804","unit_type":"apartment","max_guests":4,"bedrooms":2,"beds":3,"bathrooms":1,"check_in_time":"15:00","check_out_time":"12:00","amenities":["wifi","air-conditioning","washing-machine"],"house_rules":[{"slug":"pets_allowed","allowed":true},{"slug":"smoking_allowed","allowed":false}],"listings":[{"listing_id":"7c4b1e58-2a90-4f61-b3d2-5e8a1c0f7d24","inventory_kind":"unit","title":"Courtyard flat with the blue door","description":"A two-bedroom flat one street back from the corniche.","status":"listed","base_rate":{"value":"1250.00","currency":"EGP"},"cleaning_fee":{"value":"200.00","currency":"EGP"},"instant_booking":true,"is_exclusive":false,"is_best_price":true,"rating":{"average":4.8,"count":24},"publishable":true,"missing":[],"console_url":"https://maatstays.com/properties/3c9d1f42-7b60-4a18-9e55-0d2a6f8c31b7"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"09aefceb-e736-4f55-8939-84ec92613a63":{"headers":{"X-Correlation-Id":{"description":"This request's own identifier, on **every** response including the ones with no\nbody. It is the same value as `instance` in a problem document, minus the\n`urn:maat:request:` prefix, and it is what to quote when you raise a problem —\nhttps://developer.maatstays.com/guides/developer-access says where that goes.\n\nSend your own `X-Correlation-Id` and we return it unchanged — as long as it is\nat most 200 characters of visible ASCII with no spaces. Anything else is\nreplaced by an id of ours, returned in this same header and used as `instance`,\nso the id you are handed is always one that resolves on both sides. Nothing is\never truncated: a clipped id is a wrong id that looks right.\n","schema":{"type":"string","maxLength":200},"example":"3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33"},"RateLimit-Policy":{"description":"The quota and its window, e.g. `600;w=3600`. Absent on a `401` or `403` from\nauthentication itself, which happens before your key is known.\n","schema":{"type":"string"},"example":"600;w=3600"},"RateLimit-Limit":{"description":"The quota for the current window, for THIS key. 600 by default; a key whose\nceiling has been raised reports its own figure here.\n","schema":{"type":"integer"},"example":600},"RateLimit-Remaining":{"description":"Requests left in the current window. Pace against this.","schema":{"type":"integer"},"example":587},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"},"example":2384}},"description":"The payload does not match this document. Nothing was written.","content":{"application/problem+json":{"schema":{"type":"object","title":"Problem","description":"An RFC 7807 problem document. Every error in this API is one of these, served\nas `application/problem+json` — the token exchange included.\n\nBranch on `code`. `type` is a stable identifier for the same thing, `title` and\n`detail` are for people, and `instance` identifies this one occurrence.\n\n**The machine-readable facts are the typed members, never the prose.** `conflicts`\ncarries every colliding date on a `conflict` over a calendar, and `errors` carries\nevery rejected field on a `validation_failed`. Where one of those is present it is\ncomplete, and `detail` is a shortened rendering of it for a person to read.\n\n`type`, `title`, `status` and `code` are the four this API always sends. `detail`\nis sent on every problem it produces today and `instance` on every request that\nreached it, but neither is `required` — RFC 7807 makes both optional and a future\nproblem may carry no `detail`. `additionalProperties` is deliberately left unset:\nRFC 7807 lets a problem type define its own members, `conflicts` and `errors` are\ntwo of ours, and more may be added. A member you do not recognise is safe to\nignore.\n","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri","description":"A stable identifier, not a URL to fetch. It is `code` with underscores replaced by hyphens.","example":"https://developer.maatstays.com/errors/not-enabled","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the status. For people; we reserve the right to rewrite it.","example":"Forbidden","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code, repeated in the body.","example":403,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","title":"ProblemCode","description":"The contract. Branch on this, never on `type`, `title` or `detail`. A closed vocabulary that only ever grows, so treat an unrecognised value as its HTTP status class.\nSee [`ProblemCode`](/api-reference/enums/problem-code).","enum":["validation_failed","unauthorized","workspace_scope_mismatch","insufficient_scope","property_not_found","listing_not_found","unit_not_found","conflict","property_not_simple","listing_pooled_unsupported","inventory_not_supported","photo_not_found","rate_limited","photo_quota_exceeded","internal_error","not_enabled","service_unavailable","pricing_mode_conflict","booking_not_found","review_not_found","delivery_not_found","redrive_budget_exhausted","test_event_budget_exhausted","rotation_in_progress","sandbox_only"],"x-enum-descriptions":{"validation_failed":"The body, query or path failed the published schema. `errors` names the fields.","unauthorized":"No usable token: absent, malformed, expired, revoked, or a human credential.","workspace_scope_mismatch":"The token's environment claim disagrees with the workspace it addresses.","insufficient_scope":"Your key was not issued with the scope this route requires.","property_not_found":"No such property in this workspace. One answer for \"no such\" and \"not yours\".","listing_not_found":"No such listing in this workspace.","unit_not_found":"No such unit in this workspace.","conflict":"The write collides with something already on the calendar. `conflicts` lists the dates.","property_not_simple":"The property has a topology this contract cannot address from a property id alone.","listing_pooled_unsupported":"The listing sells a room type over several rooms, so a calendar block has no single unit to close. Retrying cannot help.","inventory_not_supported":"The listing is not a stay. See `InventoryKind`.","photo_not_found":"No such photo on that property.","rate_limited":"Too many requests. Read the rate-limit headers and retry after the window.","photo_quota_exceeded":"The property already holds as many photos as it may.","internal_error":"A fault on our side. Quote `instance` when you report it.","not_enabled":"Retired on 2026-10-23. No operation answers it; kept so an existing client's union stays valid.","service_unavailable":"A dependency was unreachable. Retryable.","pricing_mode_conflict":"Another source prices this listing; you do not hold it.","booking_not_found":"No such booking in this workspace.","review_not_found":"No such review in this workspace.","delivery_not_found":"No such delivery for your endpoint.","redrive_budget_exhausted":"You have spent this window's redrives.","test_event_budget_exhausted":"You have spent this window's test events.","rotation_in_progress":"A rotation overlap is still open on your endpoint, so a second rotation is refused until it closes. `detail` names the instant.","sandbox_only":"The operation acts on sandbox inventory only, and you called it with a production key or named the listing in your own live workspace. Retrying cannot help."},"x-maat-internal-enum":{"name":"ChannelPartnerProblem","relation":"equals"},"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What went wrong on this request, in a sentence for a person. Never parse it — it is rewritten without notice, and every machine-readable fact is a sibling member. Present on every problem this API produces today; it is not `required` because RFC 7807 does not require it.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"An occurrence identifier, not a URL. Quote it when you raise the\nproblem — https://developer.maatstays.com/guides/developer-access says\nwhere that goes. It is the same value as the `X-Correlation-Id` response\nheader, which every response carries — including the ones with no body.\n","example":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","uniqueKey":"instance","typeLabel":"string"},"conflicts":{"type":"array","description":"Present on `conflict`. The complete list of colliding dates — never\ntruncated, unlike the sentence in `detail`. Act on this, not on the prose.\n","items":{"type":"string","format":"date","uniqueKey":"conflicts.items.[INDEX]","typeLabel":"string\u003cdate>"},"example":["2026-09-02","2026-09-03"],"uniqueKey":"conflicts","typeLabel":"string\u003cdate>[]"},"errors":{"type":"array","description":"Present on `validation_failed`. Names the rejected fields and the rule\neach one broke — never the value you sent.\n","items":{"type":"object","title":"ValidationError","description":"One rejected field on a `validation_failed`. Never carries the value you sent.\n","required":["field","code"],"additionalProperties":false,"properties":{"field":{"type":"string","description":"The rejected field, as a dotted path from the request root.","example":"body.check_out","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","title":"ValidationErrorCode","description":"Which rule the field broke. Show it beside the field; do not switch on it.\nSee [`ValidationErrorCode`](/api-reference/enums/validation-error-code).","enum":["invalid_type","invalid_value","invalid_format","too_small","too_big","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","custom","invalid","currency_mismatch","duplicate_value","unsupported_param_kind","unavailable","unknown_template"],"x-enum-descriptions":{"invalid_type":"A string where a number was expected, an object where an array was, and so on.","invalid_value":"Not one of the values the field accepts.","invalid_format":"The right type, in the wrong shape — a date, a UUID, a URL.","too_small":"Below a minimum: a number, a length, or a count.","too_big":"Above a maximum: a number, a length, or a count.","not_multiple_of":"A number that is not a permitted step.","unrecognized_keys":"A field this contract does not accept. `field` names it.","invalid_union":"None of the shapes the field may take matched.","invalid_key":"A key in a map-shaped field was not accepted.","invalid_element":"An entry in a collection-shaped field was not accepted.","custom":"A rule specific to this contract — a cross-field constraint, usually.","invalid":"The validator gave no rule name. Read `field` and the schema.","currency_mismatch":"An amount in a currency the listing is not priced in. Amounts are never converted.","duplicate_value":"The same entry appears twice where each may appear once.","unsupported_param_kind":"The value this quick action takes is of a kind this contract does not publish.","unavailable":"Names something real that has since been withdrawn and can no longer be set.","unknown_template":"Names a template that is not currently published. Stop sending that key until it is."},"x-maat-internal-enum":{"name":"ProblemFieldErrorCode","relation":"equals"},"example":"too_big","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"ValidationError · object"},"uniqueKey":"errors","typeLabel":"ValidationError · object[]"}},"uniqueKey":"","typeLabel":"Problem · object"},"example":{"type":"https://developer.maatstays.com/errors/validation-failed","title":"Validation failed","status":400,"instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"validation_failed","errors":[{"field":"body.check_out","code":"custom"}]},"examples":{"Example":{"title":"Example","value":{"type":"https://developer.maatstays.com/errors/validation-failed","title":"Validation failed","status":400,"instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"validation_failed","errors":[{"field":"body.check_out","code":"custom"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"434ebf23-498a-4274-8ebe-0cae767e4a00":{"headers":{"X-Correlation-Id":{"description":"This request's own identifier, on **every** response including the ones with no\nbody. It is the same value as `instance` in a problem document, minus the\n`urn:maat:request:` prefix, and it is what to quote when you raise a problem —\nhttps://developer.maatstays.com/guides/developer-access says where that goes.\n\nSend your own `X-Correlation-Id` and we return it unchanged — as long as it is\nat most 200 characters of visible ASCII with no spaces. Anything else is\nreplaced by an id of ours, returned in this same header and used as `instance`,\nso the id you are handed is always one that resolves on both sides. Nothing is\never truncated: a clipped id is a wrong id that looks right.\n","schema":{"type":"string","maxLength":200},"example":"3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33"},"RateLimit-Policy":{"description":"The quota and its window, e.g. `600;w=3600`. Absent on a `401` or `403` from\nauthentication itself, which happens before your key is known.\n","schema":{"type":"string"},"example":"600;w=3600"},"RateLimit-Limit":{"description":"The quota for the current window, for THIS key. 600 by default; a key whose\nceiling has been raised reports its own figure here.\n","schema":{"type":"integer"},"example":600},"RateLimit-Remaining":{"description":"Requests left in the current window. Pace against this.","schema":{"type":"integer"},"example":587},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"},"example":2384}},"description":"No usable partner token. One answer covers a missing token, an expired one, a\nrevoked key and a human credential — telling them apart would report which\ncredentials exist.\n","content":{"application/problem+json":{"schema":{"type":"object","title":"Problem","description":"An RFC 7807 problem document. Every error in this API is one of these, served\nas `application/problem+json` — the token exchange included.\n\nBranch on `code`. `type` is a stable identifier for the same thing, `title` and\n`detail` are for people, and `instance` identifies this one occurrence.\n\n**The machine-readable facts are the typed members, never the prose.** `conflicts`\ncarries every colliding date on a `conflict` over a calendar, and `errors` carries\nevery rejected field on a `validation_failed`. Where one of those is present it is\ncomplete, and `detail` is a shortened rendering of it for a person to read.\n\n`type`, `title`, `status` and `code` are the four this API always sends. `detail`\nis sent on every problem it produces today and `instance` on every request that\nreached it, but neither is `required` — RFC 7807 makes both optional and a future\nproblem may carry no `detail`. `additionalProperties` is deliberately left unset:\nRFC 7807 lets a problem type define its own members, `conflicts` and `errors` are\ntwo of ours, and more may be added. A member you do not recognise is safe to\nignore.\n","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri","description":"A stable identifier, not a URL to fetch. It is `code` with underscores replaced by hyphens.","example":"https://developer.maatstays.com/errors/not-enabled","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the status. For people; we reserve the right to rewrite it.","example":"Forbidden","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code, repeated in the body.","example":403,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","title":"ProblemCode","description":"The contract. Branch on this, never on `type`, `title` or `detail`. A closed vocabulary that only ever grows, so treat an unrecognised value as its HTTP status class.\nSee [`ProblemCode`](/api-reference/enums/problem-code).","enum":["validation_failed","unauthorized","workspace_scope_mismatch","insufficient_scope","property_not_found","listing_not_found","unit_not_found","conflict","property_not_simple","listing_pooled_unsupported","inventory_not_supported","photo_not_found","rate_limited","photo_quota_exceeded","internal_error","not_enabled","service_unavailable","pricing_mode_conflict","booking_not_found","review_not_found","delivery_not_found","redrive_budget_exhausted","test_event_budget_exhausted","rotation_in_progress","sandbox_only"],"x-enum-descriptions":{"validation_failed":"The body, query or path failed the published schema. `errors` names the fields.","unauthorized":"No usable token: absent, malformed, expired, revoked, or a human credential.","workspace_scope_mismatch":"The token's environment claim disagrees with the workspace it addresses.","insufficient_scope":"Your key was not issued with the scope this route requires.","property_not_found":"No such property in this workspace. One answer for \"no such\" and \"not yours\".","listing_not_found":"No such listing in this workspace.","unit_not_found":"No such unit in this workspace.","conflict":"The write collides with something already on the calendar. `conflicts` lists the dates.","property_not_simple":"The property has a topology this contract cannot address from a property id alone.","listing_pooled_unsupported":"The listing sells a room type over several rooms, so a calendar block has no single unit to close. Retrying cannot help.","inventory_not_supported":"The listing is not a stay. See `InventoryKind`.","photo_not_found":"No such photo on that property.","rate_limited":"Too many requests. Read the rate-limit headers and retry after the window.","photo_quota_exceeded":"The property already holds as many photos as it may.","internal_error":"A fault on our side. Quote `instance` when you report it.","not_enabled":"Retired on 2026-10-23. No operation answers it; kept so an existing client's union stays valid.","service_unavailable":"A dependency was unreachable. Retryable.","pricing_mode_conflict":"Another source prices this listing; you do not hold it.","booking_not_found":"No such booking in this workspace.","review_not_found":"No such review in this workspace.","delivery_not_found":"No such delivery for your endpoint.","redrive_budget_exhausted":"You have spent this window's redrives.","test_event_budget_exhausted":"You have spent this window's test events.","rotation_in_progress":"A rotation overlap is still open on your endpoint, so a second rotation is refused until it closes. `detail` names the instant.","sandbox_only":"The operation acts on sandbox inventory only, and you called it with a production key or named the listing in your own live workspace. Retrying cannot help."},"x-maat-internal-enum":{"name":"ChannelPartnerProblem","relation":"equals"},"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What went wrong on this request, in a sentence for a person. Never parse it — it is rewritten without notice, and every machine-readable fact is a sibling member. Present on every problem this API produces today; it is not `required` because RFC 7807 does not require it.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"An occurrence identifier, not a URL. Quote it when you raise the\nproblem — https://developer.maatstays.com/guides/developer-access says\nwhere that goes. It is the same value as the `X-Correlation-Id` response\nheader, which every response carries — including the ones with no body.\n","example":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","uniqueKey":"instance","typeLabel":"string"},"conflicts":{"type":"array","description":"Present on `conflict`. The complete list of colliding dates — never\ntruncated, unlike the sentence in `detail`. Act on this, not on the prose.\n","items":{"type":"string","format":"date","uniqueKey":"conflicts.items.[INDEX]","typeLabel":"string\u003cdate>"},"example":["2026-09-02","2026-09-03"],"uniqueKey":"conflicts","typeLabel":"string\u003cdate>[]"},"errors":{"type":"array","description":"Present on `validation_failed`. Names the rejected fields and the rule\neach one broke — never the value you sent.\n","items":{"type":"object","title":"ValidationError","description":"One rejected field on a `validation_failed`. Never carries the value you sent.\n","required":["field","code"],"additionalProperties":false,"properties":{"field":{"type":"string","description":"The rejected field, as a dotted path from the request root.","example":"body.check_out","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","title":"ValidationErrorCode","description":"Which rule the field broke. Show it beside the field; do not switch on it.\nSee [`ValidationErrorCode`](/api-reference/enums/validation-error-code).","enum":["invalid_type","invalid_value","invalid_format","too_small","too_big","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","custom","invalid","currency_mismatch","duplicate_value","unsupported_param_kind","unavailable","unknown_template"],"x-enum-descriptions":{"invalid_type":"A string where a number was expected, an object where an array was, and so on.","invalid_value":"Not one of the values the field accepts.","invalid_format":"The right type, in the wrong shape — a date, a UUID, a URL.","too_small":"Below a minimum: a number, a length, or a count.","too_big":"Above a maximum: a number, a length, or a count.","not_multiple_of":"A number that is not a permitted step.","unrecognized_keys":"A field this contract does not accept. `field` names it.","invalid_union":"None of the shapes the field may take matched.","invalid_key":"A key in a map-shaped field was not accepted.","invalid_element":"An entry in a collection-shaped field was not accepted.","custom":"A rule specific to this contract — a cross-field constraint, usually.","invalid":"The validator gave no rule name. Read `field` and the schema.","currency_mismatch":"An amount in a currency the listing is not priced in. Amounts are never converted.","duplicate_value":"The same entry appears twice where each may appear once.","unsupported_param_kind":"The value this quick action takes is of a kind this contract does not publish.","unavailable":"Names something real that has since been withdrawn and can no longer be set.","unknown_template":"Names a template that is not currently published. Stop sending that key until it is."},"x-maat-internal-enum":{"name":"ProblemFieldErrorCode","relation":"equals"},"example":"too_big","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"ValidationError · object"},"uniqueKey":"errors","typeLabel":"ValidationError · object[]"}},"uniqueKey":"","typeLabel":"Problem · object"},"example":{"type":"https://developer.maatstays.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"A valid partner token is required.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"unauthorized"},"examples":{"Example":{"title":"Example","value":{"type":"https://developer.maatstays.com/errors/unauthorized","title":"Unauthorized","status":401,"detail":"A valid partner token is required.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"unauthorized"}}},"exampleType":"examples"}},"exampleType":"examples"},"9002a74c-6c35-4d4a-9f0d-49b392c5539c":{"headers":{"X-Correlation-Id":{"description":"This request's own identifier, on **every** response including the ones with no\nbody. It is the same value as `instance` in a problem document, minus the\n`urn:maat:request:` prefix, and it is what to quote when you raise a problem —\nhttps://developer.maatstays.com/guides/developer-access says where that goes.\n\nSend your own `X-Correlation-Id` and we return it unchanged — as long as it is\nat most 200 characters of visible ASCII with no spaces. Anything else is\nreplaced by an id of ours, returned in this same header and used as `instance`,\nso the id you are handed is always one that resolves on both sides. Nothing is\never truncated: a clipped id is a wrong id that looks right.\n","schema":{"type":"string","maxLength":200},"example":"3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33"},"RateLimit-Policy":{"description":"The quota and its window, e.g. `600;w=3600`. Absent on a `401` or `403` from\nauthentication itself, which happens before your key is known.\n","schema":{"type":"string"},"example":"600;w=3600"},"RateLimit-Limit":{"description":"The quota for the current window, for THIS key. 600 by default; a key whose\nceiling has been raised reports its own figure here.\n","schema":{"type":"integer"},"example":600},"RateLimit-Remaining":{"description":"Requests left in the current window. Pace against this.","schema":{"type":"integer"},"example":587},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"},"example":2384}},"description":"Authenticated, and not allowed. Two codes share this status — branch on `code`:\n\n- `workspace_scope_mismatch` — the token's environment does not match the\n workspace it addresses (a sandbox token against a production workspace, or the\n reverse; one answer also covers a workspace that does not resolve).\n- `insufficient_scope` — the key behind the token was not issued with the scope\n this operation requires (`x-maat-scope` on the operation). `detail` names the\n missing scope; ask whoever issued the key for one that carries it.\n","content":{"application/problem+json":{"schema":{"type":"object","title":"Problem","description":"An RFC 7807 problem document. Every error in this API is one of these, served\nas `application/problem+json` — the token exchange included.\n\nBranch on `code`. `type` is a stable identifier for the same thing, `title` and\n`detail` are for people, and `instance` identifies this one occurrence.\n\n**The machine-readable facts are the typed members, never the prose.** `conflicts`\ncarries every colliding date on a `conflict` over a calendar, and `errors` carries\nevery rejected field on a `validation_failed`. Where one of those is present it is\ncomplete, and `detail` is a shortened rendering of it for a person to read.\n\n`type`, `title`, `status` and `code` are the four this API always sends. `detail`\nis sent on every problem it produces today and `instance` on every request that\nreached it, but neither is `required` — RFC 7807 makes both optional and a future\nproblem may carry no `detail`. `additionalProperties` is deliberately left unset:\nRFC 7807 lets a problem type define its own members, `conflicts` and `errors` are\ntwo of ours, and more may be added. A member you do not recognise is safe to\nignore.\n","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri","description":"A stable identifier, not a URL to fetch. It is `code` with underscores replaced by hyphens.","example":"https://developer.maatstays.com/errors/not-enabled","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the status. For people; we reserve the right to rewrite it.","example":"Forbidden","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code, repeated in the body.","example":403,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","title":"ProblemCode","description":"The contract. Branch on this, never on `type`, `title` or `detail`. A closed vocabulary that only ever grows, so treat an unrecognised value as its HTTP status class.\nSee [`ProblemCode`](/api-reference/enums/problem-code).","enum":["validation_failed","unauthorized","workspace_scope_mismatch","insufficient_scope","property_not_found","listing_not_found","unit_not_found","conflict","property_not_simple","listing_pooled_unsupported","inventory_not_supported","photo_not_found","rate_limited","photo_quota_exceeded","internal_error","not_enabled","service_unavailable","pricing_mode_conflict","booking_not_found","review_not_found","delivery_not_found","redrive_budget_exhausted","test_event_budget_exhausted","rotation_in_progress","sandbox_only"],"x-enum-descriptions":{"validation_failed":"The body, query or path failed the published schema. `errors` names the fields.","unauthorized":"No usable token: absent, malformed, expired, revoked, or a human credential.","workspace_scope_mismatch":"The token's environment claim disagrees with the workspace it addresses.","insufficient_scope":"Your key was not issued with the scope this route requires.","property_not_found":"No such property in this workspace. One answer for \"no such\" and \"not yours\".","listing_not_found":"No such listing in this workspace.","unit_not_found":"No such unit in this workspace.","conflict":"The write collides with something already on the calendar. `conflicts` lists the dates.","property_not_simple":"The property has a topology this contract cannot address from a property id alone.","listing_pooled_unsupported":"The listing sells a room type over several rooms, so a calendar block has no single unit to close. Retrying cannot help.","inventory_not_supported":"The listing is not a stay. See `InventoryKind`.","photo_not_found":"No such photo on that property.","rate_limited":"Too many requests. Read the rate-limit headers and retry after the window.","photo_quota_exceeded":"The property already holds as many photos as it may.","internal_error":"A fault on our side. Quote `instance` when you report it.","not_enabled":"Retired on 2026-10-23. No operation answers it; kept so an existing client's union stays valid.","service_unavailable":"A dependency was unreachable. Retryable.","pricing_mode_conflict":"Another source prices this listing; you do not hold it.","booking_not_found":"No such booking in this workspace.","review_not_found":"No such review in this workspace.","delivery_not_found":"No such delivery for your endpoint.","redrive_budget_exhausted":"You have spent this window's redrives.","test_event_budget_exhausted":"You have spent this window's test events.","rotation_in_progress":"A rotation overlap is still open on your endpoint, so a second rotation is refused until it closes. `detail` names the instant.","sandbox_only":"The operation acts on sandbox inventory only, and you called it with a production key or named the listing in your own live workspace. Retrying cannot help."},"x-maat-internal-enum":{"name":"ChannelPartnerProblem","relation":"equals"},"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What went wrong on this request, in a sentence for a person. Never parse it — it is rewritten without notice, and every machine-readable fact is a sibling member. Present on every problem this API produces today; it is not `required` because RFC 7807 does not require it.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"An occurrence identifier, not a URL. Quote it when you raise the\nproblem — https://developer.maatstays.com/guides/developer-access says\nwhere that goes. It is the same value as the `X-Correlation-Id` response\nheader, which every response carries — including the ones with no body.\n","example":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","uniqueKey":"instance","typeLabel":"string"},"conflicts":{"type":"array","description":"Present on `conflict`. The complete list of colliding dates — never\ntruncated, unlike the sentence in `detail`. Act on this, not on the prose.\n","items":{"type":"string","format":"date","uniqueKey":"conflicts.items.[INDEX]","typeLabel":"string\u003cdate>"},"example":["2026-09-02","2026-09-03"],"uniqueKey":"conflicts","typeLabel":"string\u003cdate>[]"},"errors":{"type":"array","description":"Present on `validation_failed`. Names the rejected fields and the rule\neach one broke — never the value you sent.\n","items":{"type":"object","title":"ValidationError","description":"One rejected field on a `validation_failed`. Never carries the value you sent.\n","required":["field","code"],"additionalProperties":false,"properties":{"field":{"type":"string","description":"The rejected field, as a dotted path from the request root.","example":"body.check_out","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","title":"ValidationErrorCode","description":"Which rule the field broke. Show it beside the field; do not switch on it.\nSee [`ValidationErrorCode`](/api-reference/enums/validation-error-code).","enum":["invalid_type","invalid_value","invalid_format","too_small","too_big","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","custom","invalid","currency_mismatch","duplicate_value","unsupported_param_kind","unavailable","unknown_template"],"x-enum-descriptions":{"invalid_type":"A string where a number was expected, an object where an array was, and so on.","invalid_value":"Not one of the values the field accepts.","invalid_format":"The right type, in the wrong shape — a date, a UUID, a URL.","too_small":"Below a minimum: a number, a length, or a count.","too_big":"Above a maximum: a number, a length, or a count.","not_multiple_of":"A number that is not a permitted step.","unrecognized_keys":"A field this contract does not accept. `field` names it.","invalid_union":"None of the shapes the field may take matched.","invalid_key":"A key in a map-shaped field was not accepted.","invalid_element":"An entry in a collection-shaped field was not accepted.","custom":"A rule specific to this contract — a cross-field constraint, usually.","invalid":"The validator gave no rule name. Read `field` and the schema.","currency_mismatch":"An amount in a currency the listing is not priced in. Amounts are never converted.","duplicate_value":"The same entry appears twice where each may appear once.","unsupported_param_kind":"The value this quick action takes is of a kind this contract does not publish.","unavailable":"Names something real that has since been withdrawn and can no longer be set.","unknown_template":"Names a template that is not currently published. Stop sending that key until it is."},"x-maat-internal-enum":{"name":"ProblemFieldErrorCode","relation":"equals"},"example":"too_big","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"ValidationError · object"},"uniqueKey":"errors","typeLabel":"ValidationError · object[]"}},"uniqueKey":"","typeLabel":"Problem · object"},"examples":{"workspaceScopeMismatch":{"title":"workspaceScopeMismatch","summary":"The token's environment does not match the workspace","value":{"type":"https://developer.maatstays.com/errors/workspace-scope-mismatch","title":"Workspace scope mismatch","status":403,"detail":"This token is not valid for the requested workspace.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"workspace_scope_mismatch"}},"insufficientScope":{"title":"insufficientScope","summary":"The key lacks this operation's scope","value":{"type":"https://developer.maatstays.com/errors/insufficient-scope","title":"Insufficient scope","status":403,"detail":"This key was not issued with the `catalog:write` scope. Ask whoever issued it to issue a key that carries it.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"insufficient_scope"}}},"exampleType":"examples"}},"exampleType":"examples"},"6f4d2ad7-ab91-4bfe-949f-489179732fe1":{"headers":{"X-Correlation-Id":{"description":"This request's own identifier, on **every** response including the ones with no\nbody. It is the same value as `instance` in a problem document, minus the\n`urn:maat:request:` prefix, and it is what to quote when you raise a problem —\nhttps://developer.maatstays.com/guides/developer-access says where that goes.\n\nSend your own `X-Correlation-Id` and we return it unchanged — as long as it is\nat most 200 characters of visible ASCII with no spaces. Anything else is\nreplaced by an id of ours, returned in this same header and used as `instance`,\nso the id you are handed is always one that resolves on both sides. Nothing is\never truncated: a clipped id is a wrong id that looks right.\n","schema":{"type":"string","maxLength":200},"example":"3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33"},"RateLimit-Policy":{"description":"The quota and its window, e.g. `600;w=3600`. Absent on a `401` or `403` from\nauthentication itself, which happens before your key is known.\n","schema":{"type":"string"},"example":"600;w=3600"},"RateLimit-Limit":{"description":"The quota for the current window, for THIS key. 600 by default; a key whose\nceiling has been raised reports its own figure here.\n","schema":{"type":"integer"},"example":600},"RateLimit-Remaining":{"description":"Requests left in the current window. Pace against this.","schema":{"type":"integer"},"example":587},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"},"example":2384}},"description":"No such unit in the workspace your key addresses. ONE answer for \"it does not\nexist\" and \"it is not yours\".\n","content":{"application/problem+json":{"schema":{"type":"object","title":"Problem","description":"An RFC 7807 problem document. Every error in this API is one of these, served\nas `application/problem+json` — the token exchange included.\n\nBranch on `code`. `type` is a stable identifier for the same thing, `title` and\n`detail` are for people, and `instance` identifies this one occurrence.\n\n**The machine-readable facts are the typed members, never the prose.** `conflicts`\ncarries every colliding date on a `conflict` over a calendar, and `errors` carries\nevery rejected field on a `validation_failed`. Where one of those is present it is\ncomplete, and `detail` is a shortened rendering of it for a person to read.\n\n`type`, `title`, `status` and `code` are the four this API always sends. `detail`\nis sent on every problem it produces today and `instance` on every request that\nreached it, but neither is `required` — RFC 7807 makes both optional and a future\nproblem may carry no `detail`. `additionalProperties` is deliberately left unset:\nRFC 7807 lets a problem type define its own members, `conflicts` and `errors` are\ntwo of ours, and more may be added. A member you do not recognise is safe to\nignore.\n","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri","description":"A stable identifier, not a URL to fetch. It is `code` with underscores replaced by hyphens.","example":"https://developer.maatstays.com/errors/not-enabled","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the status. For people; we reserve the right to rewrite it.","example":"Forbidden","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code, repeated in the body.","example":403,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","title":"ProblemCode","description":"The contract. Branch on this, never on `type`, `title` or `detail`. A closed vocabulary that only ever grows, so treat an unrecognised value as its HTTP status class.\nSee [`ProblemCode`](/api-reference/enums/problem-code).","enum":["validation_failed","unauthorized","workspace_scope_mismatch","insufficient_scope","property_not_found","listing_not_found","unit_not_found","conflict","property_not_simple","listing_pooled_unsupported","inventory_not_supported","photo_not_found","rate_limited","photo_quota_exceeded","internal_error","not_enabled","service_unavailable","pricing_mode_conflict","booking_not_found","review_not_found","delivery_not_found","redrive_budget_exhausted","test_event_budget_exhausted","rotation_in_progress","sandbox_only"],"x-enum-descriptions":{"validation_failed":"The body, query or path failed the published schema. `errors` names the fields.","unauthorized":"No usable token: absent, malformed, expired, revoked, or a human credential.","workspace_scope_mismatch":"The token's environment claim disagrees with the workspace it addresses.","insufficient_scope":"Your key was not issued with the scope this route requires.","property_not_found":"No such property in this workspace. One answer for \"no such\" and \"not yours\".","listing_not_found":"No such listing in this workspace.","unit_not_found":"No such unit in this workspace.","conflict":"The write collides with something already on the calendar. `conflicts` lists the dates.","property_not_simple":"The property has a topology this contract cannot address from a property id alone.","listing_pooled_unsupported":"The listing sells a room type over several rooms, so a calendar block has no single unit to close. Retrying cannot help.","inventory_not_supported":"The listing is not a stay. See `InventoryKind`.","photo_not_found":"No such photo on that property.","rate_limited":"Too many requests. Read the rate-limit headers and retry after the window.","photo_quota_exceeded":"The property already holds as many photos as it may.","internal_error":"A fault on our side. Quote `instance` when you report it.","not_enabled":"Retired on 2026-10-23. No operation answers it; kept so an existing client's union stays valid.","service_unavailable":"A dependency was unreachable. Retryable.","pricing_mode_conflict":"Another source prices this listing; you do not hold it.","booking_not_found":"No such booking in this workspace.","review_not_found":"No such review in this workspace.","delivery_not_found":"No such delivery for your endpoint.","redrive_budget_exhausted":"You have spent this window's redrives.","test_event_budget_exhausted":"You have spent this window's test events.","rotation_in_progress":"A rotation overlap is still open on your endpoint, so a second rotation is refused until it closes. `detail` names the instant.","sandbox_only":"The operation acts on sandbox inventory only, and you called it with a production key or named the listing in your own live workspace. Retrying cannot help."},"x-maat-internal-enum":{"name":"ChannelPartnerProblem","relation":"equals"},"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What went wrong on this request, in a sentence for a person. Never parse it — it is rewritten without notice, and every machine-readable fact is a sibling member. Present on every problem this API produces today; it is not `required` because RFC 7807 does not require it.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"An occurrence identifier, not a URL. Quote it when you raise the\nproblem — https://developer.maatstays.com/guides/developer-access says\nwhere that goes. It is the same value as the `X-Correlation-Id` response\nheader, which every response carries — including the ones with no body.\n","example":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","uniqueKey":"instance","typeLabel":"string"},"conflicts":{"type":"array","description":"Present on `conflict`. The complete list of colliding dates — never\ntruncated, unlike the sentence in `detail`. Act on this, not on the prose.\n","items":{"type":"string","format":"date","uniqueKey":"conflicts.items.[INDEX]","typeLabel":"string\u003cdate>"},"example":["2026-09-02","2026-09-03"],"uniqueKey":"conflicts","typeLabel":"string\u003cdate>[]"},"errors":{"type":"array","description":"Present on `validation_failed`. Names the rejected fields and the rule\neach one broke — never the value you sent.\n","items":{"type":"object","title":"ValidationError","description":"One rejected field on a `validation_failed`. Never carries the value you sent.\n","required":["field","code"],"additionalProperties":false,"properties":{"field":{"type":"string","description":"The rejected field, as a dotted path from the request root.","example":"body.check_out","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","title":"ValidationErrorCode","description":"Which rule the field broke. Show it beside the field; do not switch on it.\nSee [`ValidationErrorCode`](/api-reference/enums/validation-error-code).","enum":["invalid_type","invalid_value","invalid_format","too_small","too_big","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","custom","invalid","currency_mismatch","duplicate_value","unsupported_param_kind","unavailable","unknown_template"],"x-enum-descriptions":{"invalid_type":"A string where a number was expected, an object where an array was, and so on.","invalid_value":"Not one of the values the field accepts.","invalid_format":"The right type, in the wrong shape — a date, a UUID, a URL.","too_small":"Below a minimum: a number, a length, or a count.","too_big":"Above a maximum: a number, a length, or a count.","not_multiple_of":"A number that is not a permitted step.","unrecognized_keys":"A field this contract does not accept. `field` names it.","invalid_union":"None of the shapes the field may take matched.","invalid_key":"A key in a map-shaped field was not accepted.","invalid_element":"An entry in a collection-shaped field was not accepted.","custom":"A rule specific to this contract — a cross-field constraint, usually.","invalid":"The validator gave no rule name. Read `field` and the schema.","currency_mismatch":"An amount in a currency the listing is not priced in. Amounts are never converted.","duplicate_value":"The same entry appears twice where each may appear once.","unsupported_param_kind":"The value this quick action takes is of a kind this contract does not publish.","unavailable":"Names something real that has since been withdrawn and can no longer be set.","unknown_template":"Names a template that is not currently published. Stop sending that key until it is."},"x-maat-internal-enum":{"name":"ProblemFieldErrorCode","relation":"equals"},"example":"too_big","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"ValidationError · object"},"uniqueKey":"errors","typeLabel":"ValidationError · object[]"}},"uniqueKey":"","typeLabel":"Problem · object"},"example":{"type":"https://developer.maatstays.com/errors/unit-not-found","title":"Unit not found","status":404,"detail":"No such unit in this workspace.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"unit_not_found"},"examples":{"Example":{"title":"Example","value":{"type":"https://developer.maatstays.com/errors/unit-not-found","title":"Unit not found","status":404,"detail":"No such unit in this workspace.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"unit_not_found"}}},"exampleType":"examples"}},"exampleType":"examples"},"a2f40be8-2201-41c4-a53a-a46f6fdc894b":{"headers":{"X-Correlation-Id":{"description":"This request's own identifier, on **every** response including the ones with no\nbody. It is the same value as `instance` in a problem document, minus the\n`urn:maat:request:` prefix, and it is what to quote when you raise a problem —\nhttps://developer.maatstays.com/guides/developer-access says where that goes.\n\nSend your own `X-Correlation-Id` and we return it unchanged — as long as it is\nat most 200 characters of visible ASCII with no spaces. Anything else is\nreplaced by an id of ours, returned in this same header and used as `instance`,\nso the id you are handed is always one that resolves on both sides. Nothing is\never truncated: a clipped id is a wrong id that looks right.\n","schema":{"type":"string","maxLength":200},"example":"3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33"},"RateLimit-Policy":{"description":"The quota and its window, e.g. `600;w=3600`. Absent on a `401` or `403` from\nauthentication itself, which happens before your key is known.\n","schema":{"type":"string"},"example":"600;w=3600"},"RateLimit-Limit":{"description":"The quota for the current window, for THIS key. 600 by default; a key whose\nceiling has been raised reports its own figure here.\n","schema":{"type":"integer"},"example":600},"RateLimit-Remaining":{"description":"Requests left in the current window. Pace against this.","schema":{"type":"integer"},"example":587},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"},"example":2384}},"description":"The request is well-formed, authenticated and in scope — and the thing it\naddresses is the wrong kind of thing to address that way. **Nothing was\nwritten.** Three codes share this status; branch on `code`:\n\n- `property_not_simple` — the property has more than one unit, or more than one\n listing (or the unit is pooled inventory under a parent unit and is not\n individually editable). A write addressed at \"the property\" then has no single\n thing to change. This is a **temporary refusal**: the write surface manages a\n property that is one unit with one listing today, and multi-unit routes are\n additions later, not renames of these.\n- `inventory_not_supported` — the listing is an experience or a service, sold by\n the seat, and this contract manages stays. Bedrooms, door times and a nightly\n rate have no answer for one. The READ operations deliberately return such a\n listing **with its `inventory_kind`** rather than pretending it does not exist;\n the write surface is where the refusal belongs.\n- `conflict` — on `PATCH /units/{unit_id}` only: `unit_type: \"whole_property\"`\n cannot sit beside another unit on the same property.\n","content":{"application/problem+json":{"schema":{"type":"object","title":"Problem","description":"An RFC 7807 problem document. Every error in this API is one of these, served\nas `application/problem+json` — the token exchange included.\n\nBranch on `code`. `type` is a stable identifier for the same thing, `title` and\n`detail` are for people, and `instance` identifies this one occurrence.\n\n**The machine-readable facts are the typed members, never the prose.** `conflicts`\ncarries every colliding date on a `conflict` over a calendar, and `errors` carries\nevery rejected field on a `validation_failed`. Where one of those is present it is\ncomplete, and `detail` is a shortened rendering of it for a person to read.\n\n`type`, `title`, `status` and `code` are the four this API always sends. `detail`\nis sent on every problem it produces today and `instance` on every request that\nreached it, but neither is `required` — RFC 7807 makes both optional and a future\nproblem may carry no `detail`. `additionalProperties` is deliberately left unset:\nRFC 7807 lets a problem type define its own members, `conflicts` and `errors` are\ntwo of ours, and more may be added. A member you do not recognise is safe to\nignore.\n","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri","description":"A stable identifier, not a URL to fetch. It is `code` with underscores replaced by hyphens.","example":"https://developer.maatstays.com/errors/not-enabled","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the status. For people; we reserve the right to rewrite it.","example":"Forbidden","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code, repeated in the body.","example":403,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","title":"ProblemCode","description":"The contract. Branch on this, never on `type`, `title` or `detail`. A closed vocabulary that only ever grows, so treat an unrecognised value as its HTTP status class.\nSee [`ProblemCode`](/api-reference/enums/problem-code).","enum":["validation_failed","unauthorized","workspace_scope_mismatch","insufficient_scope","property_not_found","listing_not_found","unit_not_found","conflict","property_not_simple","listing_pooled_unsupported","inventory_not_supported","photo_not_found","rate_limited","photo_quota_exceeded","internal_error","not_enabled","service_unavailable","pricing_mode_conflict","booking_not_found","review_not_found","delivery_not_found","redrive_budget_exhausted","test_event_budget_exhausted","rotation_in_progress","sandbox_only"],"x-enum-descriptions":{"validation_failed":"The body, query or path failed the published schema. `errors` names the fields.","unauthorized":"No usable token: absent, malformed, expired, revoked, or a human credential.","workspace_scope_mismatch":"The token's environment claim disagrees with the workspace it addresses.","insufficient_scope":"Your key was not issued with the scope this route requires.","property_not_found":"No such property in this workspace. One answer for \"no such\" and \"not yours\".","listing_not_found":"No such listing in this workspace.","unit_not_found":"No such unit in this workspace.","conflict":"The write collides with something already on the calendar. `conflicts` lists the dates.","property_not_simple":"The property has a topology this contract cannot address from a property id alone.","listing_pooled_unsupported":"The listing sells a room type over several rooms, so a calendar block has no single unit to close. Retrying cannot help.","inventory_not_supported":"The listing is not a stay. See `InventoryKind`.","photo_not_found":"No such photo on that property.","rate_limited":"Too many requests. Read the rate-limit headers and retry after the window.","photo_quota_exceeded":"The property already holds as many photos as it may.","internal_error":"A fault on our side. Quote `instance` when you report it.","not_enabled":"Retired on 2026-10-23. No operation answers it; kept so an existing client's union stays valid.","service_unavailable":"A dependency was unreachable. Retryable.","pricing_mode_conflict":"Another source prices this listing; you do not hold it.","booking_not_found":"No such booking in this workspace.","review_not_found":"No such review in this workspace.","delivery_not_found":"No such delivery for your endpoint.","redrive_budget_exhausted":"You have spent this window's redrives.","test_event_budget_exhausted":"You have spent this window's test events.","rotation_in_progress":"A rotation overlap is still open on your endpoint, so a second rotation is refused until it closes. `detail` names the instant.","sandbox_only":"The operation acts on sandbox inventory only, and you called it with a production key or named the listing in your own live workspace. Retrying cannot help."},"x-maat-internal-enum":{"name":"ChannelPartnerProblem","relation":"equals"},"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What went wrong on this request, in a sentence for a person. Never parse it — it is rewritten without notice, and every machine-readable fact is a sibling member. Present on every problem this API produces today; it is not `required` because RFC 7807 does not require it.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"An occurrence identifier, not a URL. Quote it when you raise the\nproblem — https://developer.maatstays.com/guides/developer-access says\nwhere that goes. It is the same value as the `X-Correlation-Id` response\nheader, which every response carries — including the ones with no body.\n","example":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","uniqueKey":"instance","typeLabel":"string"},"conflicts":{"type":"array","description":"Present on `conflict`. The complete list of colliding dates — never\ntruncated, unlike the sentence in `detail`. Act on this, not on the prose.\n","items":{"type":"string","format":"date","uniqueKey":"conflicts.items.[INDEX]","typeLabel":"string\u003cdate>"},"example":["2026-09-02","2026-09-03"],"uniqueKey":"conflicts","typeLabel":"string\u003cdate>[]"},"errors":{"type":"array","description":"Present on `validation_failed`. Names the rejected fields and the rule\neach one broke — never the value you sent.\n","items":{"type":"object","title":"ValidationError","description":"One rejected field on a `validation_failed`. Never carries the value you sent.\n","required":["field","code"],"additionalProperties":false,"properties":{"field":{"type":"string","description":"The rejected field, as a dotted path from the request root.","example":"body.check_out","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","title":"ValidationErrorCode","description":"Which rule the field broke. Show it beside the field; do not switch on it.\nSee [`ValidationErrorCode`](/api-reference/enums/validation-error-code).","enum":["invalid_type","invalid_value","invalid_format","too_small","too_big","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","custom","invalid","currency_mismatch","duplicate_value","unsupported_param_kind","unavailable","unknown_template"],"x-enum-descriptions":{"invalid_type":"A string where a number was expected, an object where an array was, and so on.","invalid_value":"Not one of the values the field accepts.","invalid_format":"The right type, in the wrong shape — a date, a UUID, a URL.","too_small":"Below a minimum: a number, a length, or a count.","too_big":"Above a maximum: a number, a length, or a count.","not_multiple_of":"A number that is not a permitted step.","unrecognized_keys":"A field this contract does not accept. `field` names it.","invalid_union":"None of the shapes the field may take matched.","invalid_key":"A key in a map-shaped field was not accepted.","invalid_element":"An entry in a collection-shaped field was not accepted.","custom":"A rule specific to this contract — a cross-field constraint, usually.","invalid":"The validator gave no rule name. Read `field` and the schema.","currency_mismatch":"An amount in a currency the listing is not priced in. Amounts are never converted.","duplicate_value":"The same entry appears twice where each may appear once.","unsupported_param_kind":"The value this quick action takes is of a kind this contract does not publish.","unavailable":"Names something real that has since been withdrawn and can no longer be set.","unknown_template":"Names a template that is not currently published. Stop sending that key until it is."},"x-maat-internal-enum":{"name":"ProblemFieldErrorCode","relation":"equals"},"example":"too_big","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"ValidationError · object"},"uniqueKey":"errors","typeLabel":"ValidationError · object[]"}},"uniqueKey":"","typeLabel":"Problem · object"},"examples":{"propertyNotSimple":{"title":"propertyNotSimple","summary":"The property is not one unit with one listing","value":{"type":"https://developer.maatstays.com/errors/property-not-simple","title":"Property is not a single unit","status":409,"detail":"This property has 2 unit(s) and 2 listing(s). These routes manage a property that is one unit with one listing. Nothing was written.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"property_not_simple"}},"inventoryNotSupported":{"title":"inventoryNotSupported","summary":"The listing is not a stay","value":{"type":"https://developer.maatstays.com/errors/inventory-not-supported","title":"Inventory kind not supported","status":409,"detail":"This contract manages stays. The listing is an experience, which is sold by the seat and has its own vocabulary. Nothing was written.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"inventory_not_supported"}},"wholePropertyBesideAnotherUnit":{"title":"wholePropertyBesideAnotherUnit","summary":"A whole-property unit beside another unit","value":{"type":"https://developer.maatstays.com/errors/conflict","title":"Conflict","status":409,"detail":"A whole-property unit cannot sit beside another unit on the same property. Nothing was written.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"conflict"}}},"exampleType":"examples"}},"exampleType":"examples"},"4fac9978-8783-4d98-9e51-280e41ee746c":{"description":"Too many requests for this API key. `Retry-After` gives the wait in seconds.\n","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"},"example":2384},"X-Correlation-Id":{"description":"This request's own identifier, on **every** response including the ones with no\nbody. It is the same value as `instance` in a problem document, minus the\n`urn:maat:request:` prefix, and it is what to quote when you raise a problem —\nhttps://developer.maatstays.com/guides/developer-access says where that goes.\n\nSend your own `X-Correlation-Id` and we return it unchanged — as long as it is\nat most 200 characters of visible ASCII with no spaces. Anything else is\nreplaced by an id of ours, returned in this same header and used as `instance`,\nso the id you are handed is always one that resolves on both sides. Nothing is\never truncated: a clipped id is a wrong id that looks right.\n","schema":{"type":"string","maxLength":200},"example":"3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33"},"RateLimit-Policy":{"description":"The quota and its window, e.g. `600;w=3600`. Absent on a `401` or `403` from\nauthentication itself, which happens before your key is known.\n","schema":{"type":"string"},"example":"600;w=3600"},"RateLimit-Limit":{"description":"The quota for the current window, for THIS key. 600 by default; a key whose\nceiling has been raised reports its own figure here.\n","schema":{"type":"integer"},"example":600},"RateLimit-Remaining":{"description":"Requests left in the current window. Pace against this.","schema":{"type":"integer"},"example":587},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"},"example":2384}},"content":{"application/problem+json":{"schema":{"type":"object","title":"Problem","description":"An RFC 7807 problem document. Every error in this API is one of these, served\nas `application/problem+json` — the token exchange included.\n\nBranch on `code`. `type` is a stable identifier for the same thing, `title` and\n`detail` are for people, and `instance` identifies this one occurrence.\n\n**The machine-readable facts are the typed members, never the prose.** `conflicts`\ncarries every colliding date on a `conflict` over a calendar, and `errors` carries\nevery rejected field on a `validation_failed`. Where one of those is present it is\ncomplete, and `detail` is a shortened rendering of it for a person to read.\n\n`type`, `title`, `status` and `code` are the four this API always sends. `detail`\nis sent on every problem it produces today and `instance` on every request that\nreached it, but neither is `required` — RFC 7807 makes both optional and a future\nproblem may carry no `detail`. `additionalProperties` is deliberately left unset:\nRFC 7807 lets a problem type define its own members, `conflicts` and `errors` are\ntwo of ours, and more may be added. A member you do not recognise is safe to\nignore.\n","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri","description":"A stable identifier, not a URL to fetch. It is `code` with underscores replaced by hyphens.","example":"https://developer.maatstays.com/errors/not-enabled","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the status. For people; we reserve the right to rewrite it.","example":"Forbidden","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code, repeated in the body.","example":403,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","title":"ProblemCode","description":"The contract. Branch on this, never on `type`, `title` or `detail`. A closed vocabulary that only ever grows, so treat an unrecognised value as its HTTP status class.\nSee [`ProblemCode`](/api-reference/enums/problem-code).","enum":["validation_failed","unauthorized","workspace_scope_mismatch","insufficient_scope","property_not_found","listing_not_found","unit_not_found","conflict","property_not_simple","listing_pooled_unsupported","inventory_not_supported","photo_not_found","rate_limited","photo_quota_exceeded","internal_error","not_enabled","service_unavailable","pricing_mode_conflict","booking_not_found","review_not_found","delivery_not_found","redrive_budget_exhausted","test_event_budget_exhausted","rotation_in_progress","sandbox_only"],"x-enum-descriptions":{"validation_failed":"The body, query or path failed the published schema. `errors` names the fields.","unauthorized":"No usable token: absent, malformed, expired, revoked, or a human credential.","workspace_scope_mismatch":"The token's environment claim disagrees with the workspace it addresses.","insufficient_scope":"Your key was not issued with the scope this route requires.","property_not_found":"No such property in this workspace. One answer for \"no such\" and \"not yours\".","listing_not_found":"No such listing in this workspace.","unit_not_found":"No such unit in this workspace.","conflict":"The write collides with something already on the calendar. `conflicts` lists the dates.","property_not_simple":"The property has a topology this contract cannot address from a property id alone.","listing_pooled_unsupported":"The listing sells a room type over several rooms, so a calendar block has no single unit to close. Retrying cannot help.","inventory_not_supported":"The listing is not a stay. See `InventoryKind`.","photo_not_found":"No such photo on that property.","rate_limited":"Too many requests. Read the rate-limit headers and retry after the window.","photo_quota_exceeded":"The property already holds as many photos as it may.","internal_error":"A fault on our side. Quote `instance` when you report it.","not_enabled":"Retired on 2026-10-23. No operation answers it; kept so an existing client's union stays valid.","service_unavailable":"A dependency was unreachable. Retryable.","pricing_mode_conflict":"Another source prices this listing; you do not hold it.","booking_not_found":"No such booking in this workspace.","review_not_found":"No such review in this workspace.","delivery_not_found":"No such delivery for your endpoint.","redrive_budget_exhausted":"You have spent this window's redrives.","test_event_budget_exhausted":"You have spent this window's test events.","rotation_in_progress":"A rotation overlap is still open on your endpoint, so a second rotation is refused until it closes. `detail` names the instant.","sandbox_only":"The operation acts on sandbox inventory only, and you called it with a production key or named the listing in your own live workspace. Retrying cannot help."},"x-maat-internal-enum":{"name":"ChannelPartnerProblem","relation":"equals"},"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What went wrong on this request, in a sentence for a person. Never parse it — it is rewritten without notice, and every machine-readable fact is a sibling member. Present on every problem this API produces today; it is not `required` because RFC 7807 does not require it.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"An occurrence identifier, not a URL. Quote it when you raise the\nproblem — https://developer.maatstays.com/guides/developer-access says\nwhere that goes. It is the same value as the `X-Correlation-Id` response\nheader, which every response carries — including the ones with no body.\n","example":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","uniqueKey":"instance","typeLabel":"string"},"conflicts":{"type":"array","description":"Present on `conflict`. The complete list of colliding dates — never\ntruncated, unlike the sentence in `detail`. Act on this, not on the prose.\n","items":{"type":"string","format":"date","uniqueKey":"conflicts.items.[INDEX]","typeLabel":"string\u003cdate>"},"example":["2026-09-02","2026-09-03"],"uniqueKey":"conflicts","typeLabel":"string\u003cdate>[]"},"errors":{"type":"array","description":"Present on `validation_failed`. Names the rejected fields and the rule\neach one broke — never the value you sent.\n","items":{"type":"object","title":"ValidationError","description":"One rejected field on a `validation_failed`. Never carries the value you sent.\n","required":["field","code"],"additionalProperties":false,"properties":{"field":{"type":"string","description":"The rejected field, as a dotted path from the request root.","example":"body.check_out","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","title":"ValidationErrorCode","description":"Which rule the field broke. Show it beside the field; do not switch on it.\nSee [`ValidationErrorCode`](/api-reference/enums/validation-error-code).","enum":["invalid_type","invalid_value","invalid_format","too_small","too_big","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","custom","invalid","currency_mismatch","duplicate_value","unsupported_param_kind","unavailable","unknown_template"],"x-enum-descriptions":{"invalid_type":"A string where a number was expected, an object where an array was, and so on.","invalid_value":"Not one of the values the field accepts.","invalid_format":"The right type, in the wrong shape — a date, a UUID, a URL.","too_small":"Below a minimum: a number, a length, or a count.","too_big":"Above a maximum: a number, a length, or a count.","not_multiple_of":"A number that is not a permitted step.","unrecognized_keys":"A field this contract does not accept. `field` names it.","invalid_union":"None of the shapes the field may take matched.","invalid_key":"A key in a map-shaped field was not accepted.","invalid_element":"An entry in a collection-shaped field was not accepted.","custom":"A rule specific to this contract — a cross-field constraint, usually.","invalid":"The validator gave no rule name. Read `field` and the schema.","currency_mismatch":"An amount in a currency the listing is not priced in. Amounts are never converted.","duplicate_value":"The same entry appears twice where each may appear once.","unsupported_param_kind":"The value this quick action takes is of a kind this contract does not publish.","unavailable":"Names something real that has since been withdrawn and can no longer be set.","unknown_template":"Names a template that is not currently published. Stop sending that key until it is."},"x-maat-internal-enum":{"name":"ProblemFieldErrorCode","relation":"equals"},"example":"too_big","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"ValidationError · object"},"uniqueKey":"errors","typeLabel":"ValidationError · object[]"}},"uniqueKey":"","typeLabel":"Problem · object"},"example":{"type":"https://developer.maatstays.com/errors/rate-limited","title":"Too many requests","status":429,"detail":"Too many requests for this API key.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"rate_limited"},"examples":{"Example":{"title":"Example","value":{"type":"https://developer.maatstays.com/errors/rate-limited","title":"Too many requests","status":429,"detail":"Too many requests for this API key.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"rate_limited"}}},"exampleType":"examples"}},"exampleType":"examples"},"4eb92085-469a-4644-8ecf-2e62cd9a270b":{"headers":{"X-Correlation-Id":{"description":"This request's own identifier, on **every** response including the ones with no\nbody. It is the same value as `instance` in a problem document, minus the\n`urn:maat:request:` prefix, and it is what to quote when you raise a problem —\nhttps://developer.maatstays.com/guides/developer-access says where that goes.\n\nSend your own `X-Correlation-Id` and we return it unchanged — as long as it is\nat most 200 characters of visible ASCII with no spaces. Anything else is\nreplaced by an id of ours, returned in this same header and used as `instance`,\nso the id you are handed is always one that resolves on both sides. Nothing is\never truncated: a clipped id is a wrong id that looks right.\n","schema":{"type":"string","maxLength":200},"example":"3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33"},"RateLimit-Policy":{"description":"The quota and its window, e.g. `600;w=3600`. Absent on a `401` or `403` from\nauthentication itself, which happens before your key is known.\n","schema":{"type":"string"},"example":"600;w=3600"},"RateLimit-Limit":{"description":"The quota for the current window, for THIS key. 600 by default; a key whose\nceiling has been raised reports its own figure here.\n","schema":{"type":"integer"},"example":600},"RateLimit-Remaining":{"description":"Requests left in the current window. Pace against this.","schema":{"type":"integer"},"example":587},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"},"example":2384}},"description":"Our fault. Retry an idempotent request.","content":{"application/problem+json":{"schema":{"type":"object","title":"Problem","description":"An RFC 7807 problem document. Every error in this API is one of these, served\nas `application/problem+json` — the token exchange included.\n\nBranch on `code`. `type` is a stable identifier for the same thing, `title` and\n`detail` are for people, and `instance` identifies this one occurrence.\n\n**The machine-readable facts are the typed members, never the prose.** `conflicts`\ncarries every colliding date on a `conflict` over a calendar, and `errors` carries\nevery rejected field on a `validation_failed`. Where one of those is present it is\ncomplete, and `detail` is a shortened rendering of it for a person to read.\n\n`type`, `title`, `status` and `code` are the four this API always sends. `detail`\nis sent on every problem it produces today and `instance` on every request that\nreached it, but neither is `required` — RFC 7807 makes both optional and a future\nproblem may carry no `detail`. `additionalProperties` is deliberately left unset:\nRFC 7807 lets a problem type define its own members, `conflicts` and `errors` are\ntwo of ours, and more may be added. A member you do not recognise is safe to\nignore.\n","required":["type","title","status","code"],"properties":{"type":{"type":"string","format":"uri","description":"A stable identifier, not a URL to fetch. It is `code` with underscores replaced by hyphens.","example":"https://developer.maatstays.com/errors/not-enabled","isRequired":true,"uniqueKey":"type","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"A short, human-readable summary of the status. For people; we reserve the right to rewrite it.","example":"Forbidden","isRequired":true,"uniqueKey":"title","typeLabel":"string"},"status":{"type":"integer","description":"The HTTP status code, repeated in the body.","example":403,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"},"code":{"type":"string","title":"ProblemCode","description":"The contract. Branch on this, never on `type`, `title` or `detail`. A closed vocabulary that only ever grows, so treat an unrecognised value as its HTTP status class.\nSee [`ProblemCode`](/api-reference/enums/problem-code).","enum":["validation_failed","unauthorized","workspace_scope_mismatch","insufficient_scope","property_not_found","listing_not_found","unit_not_found","conflict","property_not_simple","listing_pooled_unsupported","inventory_not_supported","photo_not_found","rate_limited","photo_quota_exceeded","internal_error","not_enabled","service_unavailable","pricing_mode_conflict","booking_not_found","review_not_found","delivery_not_found","redrive_budget_exhausted","test_event_budget_exhausted","rotation_in_progress","sandbox_only"],"x-enum-descriptions":{"validation_failed":"The body, query or path failed the published schema. `errors` names the fields.","unauthorized":"No usable token: absent, malformed, expired, revoked, or a human credential.","workspace_scope_mismatch":"The token's environment claim disagrees with the workspace it addresses.","insufficient_scope":"Your key was not issued with the scope this route requires.","property_not_found":"No such property in this workspace. One answer for \"no such\" and \"not yours\".","listing_not_found":"No such listing in this workspace.","unit_not_found":"No such unit in this workspace.","conflict":"The write collides with something already on the calendar. `conflicts` lists the dates.","property_not_simple":"The property has a topology this contract cannot address from a property id alone.","listing_pooled_unsupported":"The listing sells a room type over several rooms, so a calendar block has no single unit to close. Retrying cannot help.","inventory_not_supported":"The listing is not a stay. See `InventoryKind`.","photo_not_found":"No such photo on that property.","rate_limited":"Too many requests. Read the rate-limit headers and retry after the window.","photo_quota_exceeded":"The property already holds as many photos as it may.","internal_error":"A fault on our side. Quote `instance` when you report it.","not_enabled":"Retired on 2026-10-23. No operation answers it; kept so an existing client's union stays valid.","service_unavailable":"A dependency was unreachable. Retryable.","pricing_mode_conflict":"Another source prices this listing; you do not hold it.","booking_not_found":"No such booking in this workspace.","review_not_found":"No such review in this workspace.","delivery_not_found":"No such delivery for your endpoint.","redrive_budget_exhausted":"You have spent this window's redrives.","test_event_budget_exhausted":"You have spent this window's test events.","rotation_in_progress":"A rotation overlap is still open on your endpoint, so a second rotation is refused until it closes. `detail` names the instant.","sandbox_only":"The operation acts on sandbox inventory only, and you called it with a production key or named the listing in your own live workspace. Retrying cannot help."},"x-maat-internal-enum":{"name":"ChannelPartnerProblem","relation":"equals"},"isRequired":true,"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"detail":{"type":"string","description":"What went wrong on this request, in a sentence for a person. Never parse it — it is rewritten without notice, and every machine-readable fact is a sibling member. Present on every problem this API produces today; it is not `required` because RFC 7807 does not require it.","uniqueKey":"detail","typeLabel":"string"},"instance":{"type":"string","description":"An occurrence identifier, not a URL. Quote it when you raise the\nproblem — https://developer.maatstays.com/guides/developer-access says\nwhere that goes. It is the same value as the `X-Correlation-Id` response\nheader, which every response carries — including the ones with no body.\n","example":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","uniqueKey":"instance","typeLabel":"string"},"conflicts":{"type":"array","description":"Present on `conflict`. The complete list of colliding dates — never\ntruncated, unlike the sentence in `detail`. Act on this, not on the prose.\n","items":{"type":"string","format":"date","uniqueKey":"conflicts.items.[INDEX]","typeLabel":"string\u003cdate>"},"example":["2026-09-02","2026-09-03"],"uniqueKey":"conflicts","typeLabel":"string\u003cdate>[]"},"errors":{"type":"array","description":"Present on `validation_failed`. Names the rejected fields and the rule\neach one broke — never the value you sent.\n","items":{"type":"object","title":"ValidationError","description":"One rejected field on a `validation_failed`. Never carries the value you sent.\n","required":["field","code"],"additionalProperties":false,"properties":{"field":{"type":"string","description":"The rejected field, as a dotted path from the request root.","example":"body.check_out","isRequired":true,"uniqueKey":"errors.items.[INDEX].field","typeLabel":"string"},"code":{"type":"string","title":"ValidationErrorCode","description":"Which rule the field broke. Show it beside the field; do not switch on it.\nSee [`ValidationErrorCode`](/api-reference/enums/validation-error-code).","enum":["invalid_type","invalid_value","invalid_format","too_small","too_big","not_multiple_of","unrecognized_keys","invalid_union","invalid_key","invalid_element","custom","invalid","currency_mismatch","duplicate_value","unsupported_param_kind","unavailable","unknown_template"],"x-enum-descriptions":{"invalid_type":"A string where a number was expected, an object where an array was, and so on.","invalid_value":"Not one of the values the field accepts.","invalid_format":"The right type, in the wrong shape — a date, a UUID, a URL.","too_small":"Below a minimum: a number, a length, or a count.","too_big":"Above a maximum: a number, a length, or a count.","not_multiple_of":"A number that is not a permitted step.","unrecognized_keys":"A field this contract does not accept. `field` names it.","invalid_union":"None of the shapes the field may take matched.","invalid_key":"A key in a map-shaped field was not accepted.","invalid_element":"An entry in a collection-shaped field was not accepted.","custom":"A rule specific to this contract — a cross-field constraint, usually.","invalid":"The validator gave no rule name. Read `field` and the schema.","currency_mismatch":"An amount in a currency the listing is not priced in. Amounts are never converted.","duplicate_value":"The same entry appears twice where each may appear once.","unsupported_param_kind":"The value this quick action takes is of a kind this contract does not publish.","unavailable":"Names something real that has since been withdrawn and can no longer be set.","unknown_template":"Names a template that is not currently published. Stop sending that key until it is."},"x-maat-internal-enum":{"name":"ProblemFieldErrorCode","relation":"equals"},"example":"too_big","isRequired":true,"uniqueKey":"errors.items.[INDEX].code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"ValidationError · object"},"uniqueKey":"errors","typeLabel":"ValidationError · object[]"}},"uniqueKey":"","typeLabel":"Problem · object"},"example":{"type":"https://developer.maatstays.com/errors/internal-error","title":"Internal error","status":500,"detail":"The request could not be completed.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"internal_error"},"examples":{"Example":{"title":"Example","value":{"type":"https://developer.maatstays.com/errors/internal-error","title":"Internal error","status":500,"detail":"The request could not be completed.","instance":"urn:maat:request:3b1f7a90-0d4c-4d4e-9b2a-6c1f0a2e5d33","code":"internal_error"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"27c1ff0b-58c5-43d0-84ca-9d1f79d33330":{"partnerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A short-lived partner token, obtained by exchanging your API key at\n`POST /token`. Send it as `Authorization: Bearer \u003caccess_token>`.\n\nTokens live for fifteen minutes by default and never for more than an hour.\nMint one per batch of work, not one per request.\n\nThe token carries the workspace and the environment its key was issued for. You\ncannot change either by asking: the exchange ignores everything in the request\nbody for exactly that reason.\n\nIt also carries the key's **scopes** (`scope`, a list). Every operation names a\nscope as `x-maat-scope`, and a token whose key lacks it is refused with\n`403 insufficient_scope`, naming the scope. Scopes are fixed when a key is\nissued and are re-read from the key on every request, so a key narrowed today is\nnarrowed on its next call — the token's `scope` is what the key held at exchange\ntime, for your own reading, never what authorizes a request.\n\n**`x-maat-scope` is the floor, and on nine operations it is not the whole\nstory.** `PUT` and `DELETE /listings/{listing_id}/quick-actions/{template_key}`\ncarry `rules:write`, and additionally require **`pricing:write` when\n`template_key` begins `pricing.`** — the capability depends on the template in\nthe path, because a cleaning fee changes what a guest pays and a minimum stay\ndoes not. The refusal is the same `403 insufficient_scope`, naming\n`pricing:write`. The two READS apply the same requirement without erroring:\n`GET /listings/{listing_id}/quick-actions` still lists the `pricing.*` rows but\nwithholds their `applied` state, and `GET /listings/{listing_id}/rules` omits the\npricing rules entirely and reports `pricing_withheld` in `warnings`. The five\noperations that return a booking — the two booking reads, `confirm`, `reject` and\n`POST /sandbox/bookings` — read **`guests:read`** the same way, without ever\nerroring: it decides whether a booking's `guest` carries the guest's display name\n(and, where guest contact is enabled for your workspace, email and phone) or is\n`null`, and whether `guest_note` can be anything but `null`. These nine are the only operations in this document whose answer\ndepends on more than their `x-maat-scope`, and each of them says so\nmachine-readably: `x-maat-scope-additional` lists the second scope it can read\nand `x-maat-scope-additional-when` says what happens without it.\n\nNever send it as a cookie or in a query string, and never store it — store the\nAPI key, mint tokens from it.\n","scopes":[],"schemeName":"partnerAuth"}}},"servers":{"bfd060a5-0f89-4901-9142-ddadbc088436":{"url":"https://maatstays.com/v1","description":"The one host this contract is published against. Whether a call lands on a sandbox or a production workspace is decided by the key you exchanged, never by the hostname."}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"A short-lived partner token, obtained by exchanging your API key at\n`POST /token`. Send it as `Authorization: Bearer \u003caccess_token>`.\n\nTokens live for fifteen minutes by default and never for more than an hour.\nMint one per batch of work, not one per request.\n\nThe token carries the workspace and the environment its key was issued for. You\ncannot change either by asking: the exchange ignores everything in the request\nbody for exactly that reason.\n\nIt also carries the key's **scopes** (`scope`, a list). Every operation names a\nscope as `x-maat-scope`, and a token whose key lacks it is refused with\n`403 insufficient_scope`, naming the scope. Scopes are fixed when a key is\nissued and are re-read from the key on every request, so a key narrowed today is\nnarrowed on its next call — the token's `scope` is what the key held at exchange\ntime, for your own reading, never what authorizes a request.\n\n**`x-maat-scope` is the floor, and on nine operations it is not the whole\nstory.** `PUT` and `DELETE /listings/{listing_id}/quick-actions/{template_key}`\ncarry `rules:write`, and additionally require **`pricing:write` when\n`template_key` begins `pricing.`** — the capability depends on the template in\nthe path, because a cleaning fee changes what a guest pays and a minimum stay\ndoes not. The refusal is the same `403 insufficient_scope`, naming\n`pricing:write`. The two READS apply the same requirement without erroring:\n`GET /listings/{listing_id}/quick-actions` still lists the `pricing.*` rows but\nwithholds their `applied` state, and `GET /listings/{listing_id}/rules` omits the\npricing rules entirely and reports `pricing_withheld` in `warnings`. The five\noperations that return a booking — the two booking reads, `confirm`, `reject` and\n`POST /sandbox/bookings` — read **`guests:read`** the same way, without ever\nerroring: it decides whether a booking's `guest` carries the guest's display name\n(and, where guest contact is enabled for your workspace, email and phone) or is\n`null`, and whether `guest_note` can be anything but `null`. These nine are the only operations in this document whose answer\ndepends on more than their `x-maat-scope`, and each of them says so\nmachine-readably: `x-maat-scope-additional` lists the second scope it can read\nand `x-maat-scope-additional-when` says what happens without it.\n\nNever send it as a cookie or in a query string, and never store it — store the\nAPI key, mint tokens from it.\n","scopes":[],"schemeName":"partnerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A short-lived partner token, obtained by exchanging your API key at\n`POST /token`. Send it as `Authorization: Bearer \u003caccess_token>`.\n\nTokens live for fifteen minutes by default and never for more than an hour.\nMint one per batch of work, not one per request.\n\nThe token carries the workspace and the environment its key was issued for. You\ncannot change either by asking: the exchange ignores everything in the request\nbody for exactly that reason.\n\nIt also carries the key's **scopes** (`scope`, a list). Every operation names a\nscope as `x-maat-scope`, and a token whose key lacks it is refused with\n`403 insufficient_scope`, naming the scope. Scopes are fixed when a key is\nissued and are re-read from the key on every request, so a key narrowed today is\nnarrowed on its next call — the token's `scope` is what the key held at exchange\ntime, for your own reading, never what authorizes a request.\n\n**`x-maat-scope` is the floor, and on nine operations it is not the whole\nstory.** `PUT` and `DELETE /listings/{listing_id}/quick-actions/{template_key}`\ncarry `rules:write`, and additionally require **`pricing:write` when\n`template_key` begins `pricing.`** — the capability depends on the template in\nthe path, because a cleaning fee changes what a guest pays and a minimum stay\ndoes not. The refusal is the same `403 insufficient_scope`, naming\n`pricing:write`. The two READS apply the same requirement without erroring:\n`GET /listings/{listing_id}/quick-actions` still lists the `pricing.*` rows but\nwithholds their `applied` state, and `GET /listings/{listing_id}/rules` omits the\npricing rules entirely and reports `pricing_withheld` in `warnings`. The five\noperations that return a booking — the two booking reads, `confirm`, `reject` and\n`POST /sandbox/bookings` — read **`guests:read`** the same way, without ever\nerroring: it decides whether a booking's `guest` carries the guest's display name\n(and, where guest contact is enabled for your workspace, email and phone) or is\n`null`, and whether `guest_note` can be anything but `null`. These nine are the only operations in this document whose answer\ndepends on more than their `x-maat-scope`, and each of them says so\nmachine-readably: `x-maat-scope-additional` lists the second scope it can read\nand `x-maat-scope-additional-when` says what happens without it.\n\nNever send it as a cookie or in a query string, and never store it — store the\nAPI key, mint tokens from it.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"partnerAuth","name":"Authorization"}],"title":"partnerAuth"}]},"originalFileLocation":"openapi/openapi.yaml"},"subdomain":"maat-stays","siteName":"Maat Stays","title":"Replace a unit's house-rule answers - Maat Stays","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-06T09:44:11.655Z","originalFileLocation":"api-reference/units/replace-a-units-house-rule-answers.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Replaces a unit\u0026#x27;s house-rule answers, and optionally its door times. You send the rules you decided; we expand the rest. Every active rule in Maat\u0026#x27;s catalogue that you did not name is written allowed: false. That is what makes this a set replace rather than a merge, and it is what keeps a rule with no answer meaning \u0026quot;never asked\u0026quot; on the read side rather than quietly meaning \u0026quot;no\u0026quot;. Absence has to keep meaning what it says. An empty answers array is legitimate, and it means \u0026quot;nothing is allowed\u0026quot;. It is not the same as never having answered. A slug the catalogue does not have — including a retired one — refuses the whole call with 400, naming the slugs. GET /catalog/house-rules publishes every rule and flags a retired one: keep a retired entry to explain an answer you read back, never to write a new one. check_in_time and check_out_time are not rules. A time is a value, not a permission, and both are columns on the unit. They ride this request because they are written in the same transaction as the answers, so a half-applied edit where the times saved and the answers rolled back cannot happen. Omit them to leave the stored times alone. At most a hundred answers, and no repeated slug. A 403 on this operation carries one of two codes — insufficient_scope or workspace_scope_mismatch. Branch on code. The body is strict. An undeclared field is a 400 validation_failed naming it, never a silent drop, and a stray query string is refused the same way. A property with more than one unit, or more than one listing, is refused with 409 property_not_simple; a listing that is not a stay with 409 inventory_not_supported. Nothing is written either way.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Maat Stays\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Replace a unit\u0026#x27;s house-rule answers - Maat Stays\">\u003cmeta data-mint-head property=\"og:description\" content=\"Replaces a unit\u0026#x27;s house-rule answers, and optionally its door times. You send the rules you decided; we expand the rest. Every active rule in Maat\u0026#x27;s catalogue that you did not name is written allowed: false. That is what makes this a set replace rather than a merge, and it is what keeps a rule with no answer meaning \u0026quot;never asked\u0026quot; on the read side rather than quietly meaning \u0026quot;no\u0026quot;. Absence has to keep meaning what it says. An empty answers array is legitimate, and it means \u0026quot;nothing is allowed\u0026quot;. It is not the same as never having answered. A slug the catalogue does not have — including a retired one — refuses the whole call with 400, naming the slugs. GET /catalog/house-rules publishes every rule and flags a retired one: keep a retired entry to explain an answer you read back, never to write a new one. check_in_time and check_out_time are not rules. A time is a value, not a permission, and both are columns on the unit. They ride this request because they are written in the same transaction as the answers, so a half-applied edit where the times saved and the answers rolled back cannot happen. Omit them to leave the stored times alone. At most a hundred answers, and no repeated slug. A 403 on this operation carries one of two codes — insufficient_scope or workspace_scope_mismatch. Branch on code. The body is strict. An undeclared field is a 400 validation_failed naming it, never a silent drop, and a stray query string is refused the same way. A property with more than one unit, or more than one listing, is refused with 409 property_not_simple; a listing that is not a stay with 409 inventory_not_supported. Nothing is written either way.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Maat Stays\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://maat-stays.mintlify.site/_mintlify/api/og/v2?division=Units\u0026amp;title=Replace+a+unit%27s+house-rule+answers\u0026amp;description=Replaces+a+unit%27s+house-rule+answers%2C+and+optionally+its+door+times.%0A%0A**You+send+the+rules+you+decided%3B+we+expand+the+rest.**+Every+active+rule+in%0AMaat%27s+catalo\u0026amp;theme=775003f3d78357d0955ea5fe\u0026amp;signature=ba374a55af979ad16690210e697ccc325c3665c9074c79e75790c206ebe9248b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Replace a unit\u0026#x27;s house-rule answers - Maat Stays\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Replaces a unit\u0026#x27;s house-rule answers, and optionally its door times. You send the rules you decided; we expand the rest. Every active rule in Maat\u0026#x27;s catalogue that you did not name is written allowed: false. That is what makes this a set replace rather than a merge, and it is what keeps a rule with no answer meaning \u0026quot;never asked\u0026quot; on the read side rather than quietly meaning \u0026quot;no\u0026quot;. Absence has to keep meaning what it says. An empty answers array is legitimate, and it means \u0026quot;nothing is allowed\u0026quot;. It is not the same as never having answered. A slug the catalogue does not have — including a retired one — refuses the whole call with 400, naming the slugs. GET /catalog/house-rules publishes every rule and flags a retired one: keep a retired entry to explain an answer you read back, never to write a new one. check_in_time and check_out_time are not rules. A time is a value, not a permission, and both are columns on the unit. They ride this request because they are written in the same transaction as the answers, so a half-applied edit where the times saved and the answers rolled back cannot happen. Omit them to leave the stored times alone. At most a hundred answers, and no repeated slug. A 403 on this operation carries one of two codes — insufficient_scope or workspace_scope_mismatch. Branch on code. The body is strict. An undeclared field is a 400 validation_failed naming it, never a silent drop, and a stray query string is refused the same way. A property with more than one unit, or more than one listing, is refused with 409 property_not_simple; a listing that is not a stay with 409 inventory_not_supported. Nothing is written either way.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://maat-stays.mintlify.site/_mintlify/api/og/v2?division=Units\u0026amp;title=Replace+a+unit%27s+house-rule+answers\u0026amp;description=Replaces+a+unit%27s+house-rule+answers%2C+and+optionally+its+door+times.%0A%0A**You+send+the+rules+you+decided%3B+we+expand+the+rest.**+Every+active+rule+in%0AMaat%27s+catalo\u0026amp;theme=775003f3d78357d0955ea5fe\u0026amp;signature=ba374a55af979ad16690210e697ccc325c3665c9074c79e75790c206ebe9248b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/maat-stays/d7feaRV4KmPx-Wm9/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Maat Stays\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#c5142a\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/units/replace-a-units-house-rule-answers.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.maatstays.com/#organization\",\"name\":\"Maat Stays\",\"url\":\"https://developer.maatstays.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/maat-stays/ygU_m5Epp3x1yrso/logo/logo-light.svg?fit=max\u0026auto=format\u0026n=ygU_m5Epp3x1yrso\u0026q=85\u0026s=7bdd8b6510d319f3eac8835912546dcc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.maatstays.com#website\",\"name\":\"Maat Stays\",\"url\":\"https://developer.maatstays.com\",\"publisher\":{\"@id\":\"https://developer.maatstays.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers#webpage\",\"url\":\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers\",\"name\":\"Replace a unit's house-rule answers\",\"description\":\"Replaces a unit's house-rule answers, and optionally its door times. You send the rules you decided; we expand the rest. Every active rule in Maat's catalogue that you did not name is written allowed: false. That is what makes this a set replace rather than a merge, and it is what keeps a rule with no answer meaning \\\"never asked\\\" on the read side rather than quietly meaning \\\"no\\\". Absence has to keep meaning what it says. An empty answers array is legitimate, and it means \\\"nothing is allowed\\\". It is not the same as never having answered. A slug the catalogue does not have — including a retired one — refuses the whole call with 400, naming the slugs. GET /catalog/house-rules publishes every rule and flags a retired one: keep a retired entry to explain an answer you read back, never to write a new one. check_in_time and check_out_time are not rules. A time is a value, not a permission, and both are columns on the unit. They ride this request because they are written in the same transaction as the answers, so a half-applied edit where the times saved and the answers rolled back cannot happen. Omit them to leave the stored times alone. At most a hundred answers, and no repeated slug. A 403 on this operation carries one of two codes — insufficient_scope or workspace_scope_mismatch. Branch on code. The body is strict. An undeclared field is a 400 validation_failed naming it, never a silent drop, and a stray query string is refused the same way. A property with more than one unit, or more than one listing, is refused with 409 property_not_simple; a listing that is not a stay with 409 inventory_not_supported. Nothing is written either way.\",\"dateModified\":\"2026-12-06T09:44:11.655Z\",\"isPartOf\":{\"@id\":\"https://developer.maatstays.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://developer.maatstays.com/api-reference/authentication/exchange-your-api-key-for-a-token\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Units\",\"item\":\"https://developer.maatstays.com/api-reference/units/read-one-unit\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Replace a unit's house-rule answers\",\"item\":\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers#apireference\",\"headline\":\"Replace a unit's house-rule answers\",\"name\":\"Replace a unit's house-rule answers\",\"description\":\"Replaces a unit's house-rule answers, and optionally its door times. You send the rules you decided; we expand the rest. Every active rule in Maat's catalogue that you did not name is written allowed: false. That is what makes this a set replace rather than a merge, and it is what keeps a rule with no answer meaning \\\"never asked\\\" on the read side rather than quietly meaning \\\"no\\\". Absence has to keep meaning what it says. An empty answers array is legitimate, and it means \\\"nothing is allowed\\\". It is not the same as never having answered. A slug the catalogue does not have — including a retired one — refuses the whole call with 400, naming the slugs. GET /catalog/house-rules publishes every rule and flags a retired one: keep a retired entry to explain an answer you read back, never to write a new one. check_in_time and check_out_time are not rules. A time is a value, not a permission, and both are columns on the unit. They ride this request because they are written in the same transaction as the answers, so a half-applied edit where the times saved and the answers rolled back cannot happen. Omit them to leave the stored times alone. At most a hundred answers, and no repeated slug. A 403 on this operation carries one of two codes — insufficient_scope or workspace_scope_mismatch. Branch on code. The body is strict. An undeclared field is a 400 validation_failed naming it, never a silent drop, and a stray query string is refused the same way. A property with more than one unit, or more than one listing, is refused with 409 property_not_simple; a listing that is not a stay with 409 inventory_not_supported. Nothing is written either way.\",\"url\":\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers\",\"mainEntityOfPage\":{\"@id\":\"https://developer.maatstays.com/api-reference/units/replace-a-units-house-rule-answers#webpage\"},\"dateModified\":\"2026-12-06T09:44:11.655Z\",\"publisher\":{\"@id\":\"https://developer.maatstays.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.maatstays.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Maat Stays\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Maat Stays\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/units/replace-a-units-house-rule-answers.md","siteName":"Maat Stays","nav":{"global":null,"groups":[{"group":"Get started","pages":[{"title":"Introduction","href":"/index"},{"title":"Get access","href":"/guides/developer-access"},{"title":"Authentication","href":"/guides/authentication"},{"title":"Quickstart","href":"/guides/quickstart"},{"title":"Sandbox","href":"/guides/sandbox"},{"title":"Scopes","href":"/guides/scopes"}]},{"group":"Guides","pages":[{"title":"Push a property","href":"/guides/properties"},{"title":"The resource model","href":"/guides/property-lifecycle"},{"title":"Photos","href":"/guides/photos"},{"title":"Calendar blocks","href":"/guides/calendar-blocks"},{"title":"Pricing rules and rates","href":"/guides/pricing-and-rules"},{"title":"Bookings and reviews","href":"/guides/bookings"},{"title":"Booking notifications lifecycle","href":"/guides/booking-lifecycle"},{"title":"Finance","href":"/guides/finance"},{"title":"Webhooks","href":"/guides/webhooks"},{"title":"Webhook signatures","href":"/guides/webhook-signatures"},{"title":"Webhook delivery","href":"/guides/webhook-delivery"}]},{"group":"Reference","pages":[{"title":"Errors","href":"/guides/errors"},{"title":"Rate limits","href":"/guides/rate-limits"},{"title":"Pagination","href":"/guides/pagination"},{"title":"Versioning and deprecation","href":"/guides/versioning"},{"title":"Glossary","href":"/guides/glossary"},{"title":"The data boundary","href":"/guides/data-boundary"},{"title":"Managing your keys","href":"/guides/managing-keys"},{"title":"Connect your AI assistant","href":"/guides/connect-your-ai-assistant"}]},{"group":"Resources","pages":[{"title":"Changelog","href":"/guides/changelog"}]},{"group":"API Reference","pages":[{"group":"Authentication","pages":[{"title":"Exchange your API key for a token","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /token","href":"/api-reference/authentication/exchange-your-api-key-for-a-token"}]},{"group":"Properties","pages":[{"title":"Create or replace a property","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /properties/{provider_id}","href":"/api-reference/properties/create-or-replace-a-property"},{"title":"List your properties","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /properties","href":"/api-reference/properties/list-your-properties"},{"title":"Read one property","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /properties/by-id/{property_id}","href":"/api-reference/properties/read-one-property"},{"title":"Replace a property's address","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /properties/{property_id}/address","href":"/api-reference/properties/replace-a-propertys-address"},{"title":"Replace a property's amenities","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /properties/{property_id}/amenities","href":"/api-reference/properties/replace-a-propertys-amenities"}]},{"group":"Units","pages":[{"title":"Read one unit","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /units/{unit_id}","href":"/api-reference/units/read-one-unit"},{"title":"Change what a unit is","description":"Changes what a unit **is**: how many it sleeps, in what, whether it is the whole\nproperty or a room inside one, and its door times.\n\n**Partial.** An absent field is untouched — there is no merge engine and nothing\nhere is nullable, because every one of these columns is required on the platform.\nSend at least one field: an empty body is a `400`, not a silent no-op that reads\nas success.\n\nThe counts are **integers**. A `bathrooms` of `2.5` is refused rather than\ntruncated into a different property than you described; half-bathrooms are not\nexpressible here.\n\nA `403` on this operation carries one of two codes — `insufficient_scope` (the\nkey lacks `catalog:write`) or `workspace_scope_mismatch` (a sandbox/production\nmismatch). Branch on `code`.\n\nSetting `unit_type` to `whole_property` on a property that has another unit is\nrefused with `409 conflict`: the whole property cannot also contain a second one.\n\nThe body is strict. An undeclared field is a `400 validation_failed` naming it,\nnever a silent drop, and a stray query string is refused the same way.\n\nA property with more than one unit, or more than one listing, is refused with\n`409 property_not_simple`; a listing that is not a stay with\n`409 inventory_not_supported`. Nothing is written either way.\n","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /units/{unit_id}","href":"/api-reference/units/change-what-a-unit-is"},{"title":"Replace a unit's house-rule answers","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /units/{unit_id}/house-rules","href":"/api-reference/units/replace-a-units-house-rule-answers"}]},{"group":"Listings","pages":[{"title":"Read one listing","description":"One listing — the sellable view of a unit: its title, its rate, its badges and\nwhether it is on sale right now.\n\n**A listing that is not a stay is returned, with its kind.** `inventory_kind` is\n`unit` for a place somebody sleeps in, and `service` or `experience` for something\nsold by the seat. Answering `404` for those would be false — the listing exists,\nin your workspace. The write contracts are where a non-stay listing is refused.\n\nFor such a listing `publishable` is `null`, meaning **nothing was assessed**\nrather than \"assessed and failed\": the validity gate asks about cover photos and\namenities, and a seat on a walking tour has no answer to that.\n","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /listings/{listing_id}","href":"/api-reference/listings/read-one-listing"},{"title":"Change a listing, and whether it is on sale","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml patch /listings/{listing_id}","href":"/api-reference/listings/change-a-listing-and-whether-it-is-on-sale"},{"title":"Replace a listing's price","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /listings/{listing_id}/pricing","href":"/api-reference/listings/replace-a-listings-price"},{"title":"A listing went on sale","openapi":"openapi/openapi.yaml webhook listing.published","href":"/api-reference/webhooks/listing.published"},{"title":"A listing came off sale","openapi":"openapi/openapi.yaml webhook listing.unlisted","href":"/api-reference/webhooks/listing.unlisted"}]},{"group":"Catalog","pages":[{"title":"Every property type","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /catalog/property-types","href":"/api-reference/catalog/every-property-type"},{"title":"Every amenity","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /catalog/amenities","href":"/api-reference/catalog/every-amenity"},{"title":"Every house rule","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /catalog/house-rules","href":"/api-reference/catalog/every-house-rule"},{"title":"Every subdivision and city of a country","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /locations/{country_code}","href":"/api-reference/catalog/every-subdivision-and-city-of-a-country"}]},{"group":"Photos","pages":[{"title":"List a property's photos","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /properties/{property_id}/photos","href":"/api-reference/photos/list-a-propertys-photos"},{"title":"Get upload forms for new photos","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /properties/{property_id}/photos/presign","href":"/api-reference/photos/get-upload-forms-for-new-photos"},{"title":"Arrange a property's photos","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /properties/{property_id}/photos/order","href":"/api-reference/photos/arrange-a-propertys-photos"},{"title":"Remove a photo","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /properties/{property_id}/photos/{photo_id}","href":"/api-reference/photos/remove-a-photo"}]},{"group":"Calendar","pages":[{"title":"Read availability, night by night","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /listings/{listing_id}/calendar","href":"/api-reference/calendar/read-availability-night-by-night"},{"title":"What is held right now","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /calendar/holds","href":"/api-reference/calendar/what-is-held-right-now"},{"title":"Close nights with a host block","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /listings/{listing_id}/calendar/blocks","href":"/api-reference/calendar/close-nights-with-a-host-block"},{"title":"Release host blocks by date","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /listings/{listing_id}/calendar/blocks/release","href":"/api-reference/calendar/release-host-blocks-by-date"},{"title":"Nights went off sale while a guest pays","openapi":"openapi/openapi.yaml webhook calendar.held","href":"/api-reference/webhooks/calendar.held"},{"title":"A hold ended — the nights came back, or were sold","openapi":"openapi/openapi.yaml webhook calendar.released","href":"/api-reference/webhooks/calendar.released"}]},{"group":"Blocks","pages":[{"title":"Hold a range of nights with a partner block","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /blocks/{external_uid}","href":"/api-reference/blocks/hold-a-range-of-nights-with-a-partner-block"},{"title":"Release a partner block","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /blocks/{external_uid}","href":"/api-reference/blocks/release-a-partner-block"},{"title":"Read your partner blocks back","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /blocks","href":"/api-reference/blocks/read-your-partner-blocks-back"}]},{"group":"Pricing","pages":[{"title":"The quick actions for a listing","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /listings/{listing_id}/quick-actions","href":"/api-reference/pricing/the-quick-actions-for-a-listing"},{"title":"Switch a quick action on, or move its value","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /listings/{listing_id}/quick-actions/{template_key}","href":"/api-reference/pricing/switch-a-quick-action-on-or-move-its-value"},{"title":"Switch a quick action off","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /listings/{listing_id}/quick-actions/{template_key}","href":"/api-reference/pricing/switch-a-quick-action-off"},{"title":"Every rule attached to a listing","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /listings/{listing_id}/rules","href":"/api-reference/pricing/every-rule-attached-to-a-listing"},{"title":"Read back the rates you sent","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /listings/{listing_id}/rates","href":"/api-reference/pricing/read-back-the-rates-you-sent"},{"title":"Supply nightly rates for a date range","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /listings/{listing_id}/rates","href":"/api-reference/pricing/supply-nightly-rates-for-a-date-range"},{"title":"Who prices this listing","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /listings/{listing_id}/pricing-mode","href":"/api-reference/pricing/who-prices-this-listing"},{"title":"Become the listing's pricing source","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /listings/{listing_id}/pricing-mode","href":"/api-reference/pricing/become-the-listings-pricing-source"},{"title":"Stop pricing this listing","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /listings/{listing_id}/pricing-mode","href":"/api-reference/pricing/stop-pricing-this-listing"},{"title":"Who prices a listing changed","openapi":"openapi/openapi.yaml webhook pricing.mode_changed","href":"/api-reference/webhooks/pricing.mode_changed"},{"title":"A listing you price changed currency","openapi":"openapi/openapi.yaml webhook pricing.currency_changed","href":"/api-reference/webhooks/pricing.currency_changed"}]},{"group":"Bookings","pages":[{"title":"List bookings on your inventory","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /bookings","href":"/api-reference/bookings/list-bookings-on-your-inventory"},{"title":"Read one booking","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /bookings/{booking_reference}","href":"/api-reference/bookings/read-one-booking"},{"title":"Confirm a pending booking","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /bookings/{booking_reference}/confirm","href":"/api-reference/bookings/confirm-a-pending-booking"},{"title":"Reject a pending booking","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /bookings/{booking_reference}/reject","href":"/api-reference/bookings/reject-a-pending-booking"}]},{"group":"Sandbox","pages":[{"title":"Create a booking in your sandbox","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /sandbox/bookings","href":"/api-reference/sandbox/create-a-booking-in-your-sandbox"}]},{"group":"Reviews","pages":[{"title":"Read a listing's reviews","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /listings/{listing_id}/reviews","href":"/api-reference/reviews/read-a-listings-reviews"},{"title":"Reply to a review, as the workspace","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /reviews/{review_id}/reply","href":"/api-reference/reviews/reply-to-a-review-as-the-workspace"},{"title":"A guest published a review","openapi":"openapi/openapi.yaml webhook review.created","href":"/api-reference/webhooks/review.created"}]},{"group":"Finance","pages":[{"title":"Read your balance, per currency","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /finance/balance","href":"/api-reference/finance/read-your-balance-per-currency"},{"title":"List what each payment earned you","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /finance/earnings","href":"/api-reference/finance/list-what-each-payment-earned-you"},{"title":"Total your earnings by day, week or month","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /finance/earnings/summary","href":"/api-reference/finance/total-your-earnings-by-day-week-or-month"},{"title":"List your payout requests","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /finance/payouts","href":"/api-reference/finance/list-your-payout-requests"},{"title":"See what is due to be released","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /finance/payouts/upcoming","href":"/api-reference/finance/see-what-is-due-to-be-released"},{"title":"List what you owe","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /finance/penalties","href":"/api-reference/finance/list-what-you-owe"}]},{"group":"Webhooks","pages":[{"title":"Read your endpoint back","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /webhooks/endpoint","href":"/api-reference/webhooks/read-your-endpoint-back"},{"title":"Register where deliveries go","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml put /webhooks/endpoint","href":"/api-reference/webhooks/register-where-deliveries-go"},{"title":"Delete your endpoint","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml delete /webhooks/endpoint","href":"/api-reference/webhooks/delete-your-endpoint"},{"title":"Rotate the signing secret","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /webhooks/endpoint/rotate-secret","href":"/api-reference/webhooks/rotate-the-signing-secret"},{"title":"Send yourself a test event","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /webhooks/endpoint/test","href":"/api-reference/webhooks/send-yourself-a-test-event"},{"title":"List what we have tried to deliver","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /webhooks/deliveries","href":"/api-reference/webhooks/list-what-we-have-tried-to-deliver"},{"title":"Read one delivery, body included","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml get /webhooks/deliveries/{delivery_id}","href":"/api-reference/webhooks/read-one-delivery-body-included"},{"title":"Put a delivery back in the queue","deprecated":null,"version":null,"openapi":"/openapi/openapi.yaml post /webhooks/deliveries/{delivery_id}/redrive","href":"/api-reference/webhooks/put-a-delivery-back-in-the-queue"}]},{"group":"Booking notifications","pages":[{"title":"Prove the endpoint is yours","openapi":"openapi/openapi.yaml webhook endpoint.challenge","href":"/api-reference/webhooks/endpoint.challenge"},{"title":"A guest booked one of your properties","openapi":"openapi/openapi.yaml webhook booking.confirmed","href":"/api-reference/webhooks/booking.confirmed"},{"title":"A booking on one of your properties was cancelled","openapi":"openapi/openapi.yaml webhook booking.cancelled","href":"/api-reference/webhooks/booking.cancelled"},{"title":"A guest paid, and the host has to answer","openapi":"openapi/openapi.yaml webhook booking.requested","href":"/api-reference/webhooks/booking.requested"},{"title":"A pending request was declined","openapi":"openapi/openapi.yaml webhook booking.rejected","href":"/api-reference/webhooks/booking.rejected"},{"title":"The guest confirmed they have arrived","openapi":"openapi/openapi.yaml webhook booking.checked_in","href":"/api-reference/webhooks/booking.checked_in"},{"title":"The guest confirmed they have left","openapi":"openapi/openapi.yaml webhook booking.checked_out","href":"/api-reference/webhooks/booking.checked_out"},{"title":"A modification was applied and the dates moved","openapi":"openapi/openapi.yaml webhook booking.modified","href":"/api-reference/webhooks/booking.modified"}]},{"group":"Enums","pages":[{"title":"BlockReason","href":"/api-reference/enums/block-reason"},{"title":"BlockedBy","href":"/api-reference/enums/blocked-by"},{"title":"BookingEventType","href":"/api-reference/enums/booking-event-type"},{"title":"BookingStatus","href":"/api-reference/enums/booking-status"},{"title":"CalendarNightStatus","href":"/api-reference/enums/calendar-night-status"},{"title":"CancellationInitiator","href":"/api-reference/enums/cancellation-initiator"},{"title":"EarningStatus","href":"/api-reference/enums/earning-status"},{"title":"EarningsGranularity","href":"/api-reference/enums/earnings-granularity"},{"title":"HoldReleaseReason","href":"/api-reference/enums/hold-release-reason"},{"title":"HostBlockCategory","href":"/api-reference/enums/host-block-category"},{"title":"HouseRuleKind","href":"/api-reference/enums/house-rule-kind"},{"title":"InventoryKind","href":"/api-reference/enums/inventory-kind"},{"title":"ListingPublicationEventType","href":"/api-reference/enums/listing-publication-event-type"},{"title":"ListingPublicationStatus","href":"/api-reference/enums/listing-publication-status"},{"title":"ListingRuleSource","href":"/api-reference/enums/listing-rule-source"},{"title":"ListingRuleWarning","href":"/api-reference/enums/listing-rule-warning"},{"title":"ListingStatus","href":"/api-reference/enums/listing-status"},{"title":"MissingReason","href":"/api-reference/enums/missing-reason"},{"title":"PayoutStatus","href":"/api-reference/enums/payout-status"},{"title":"PenaltyReason","href":"/api-reference/enums/penalty-reason"},{"title":"PenaltyStatus","href":"/api-reference/enums/penalty-status"},{"title":"PhotoContentType","href":"/api-reference/enums/photo-content-type"},{"title":"PhotoRejectionReason","href":"/api-reference/enums/photo-rejection-reason"},{"title":"PhotoState","href":"/api-reference/enums/photo-state"},{"title":"PricingModeTakeWarning","href":"/api-reference/enums/pricing-mode-take-warning"},{"title":"PricingModeValue","href":"/api-reference/enums/pricing-mode-value"},{"title":"ProblemCode","href":"/api-reference/enums/problem-code"},{"title":"QuickActionFeeBasis","href":"/api-reference/enums/quick-action-fee-basis"},{"title":"QuickActionParamKind","href":"/api-reference/enums/quick-action-param-kind"},{"title":"QuickActionTemplateKey","href":"/api-reference/enums/quick-action-template-key"},{"title":"QuickActionUnavailableReason","href":"/api-reference/enums/quick-action-unavailable-reason"},{"title":"QuickActionWarning","href":"/api-reference/enums/quick-action-warning"},{"title":"RuleFamily","href":"/api-reference/enums/rule-family"},{"title":"SandboxBookingStatus","href":"/api-reference/enums/sandbox-booking-status"},{"title":"UnitType","href":"/api-reference/enums/unit-type"},{"title":"ValidationErrorCode","href":"/api-reference/enums/validation-error-code"},{"title":"WebhookDeliveryStatus","href":"/api-reference/enums/webhook-delivery-status"},{"title":"WebhookEndpointStatus","href":"/api-reference/enums/webhook-endpoint-status"},{"title":"WebhookEventType","href":"/api-reference/enums/webhook-event-type"},{"title":"WebhookPayloadState","href":"/api-reference/enums/webhook-payload-state"},{"title":"WriteResult","href":"/api-reference/enums/write-result"}]}]}]},"basePath":"","title":"Replace a unit's house-rule answers - Maat Stays","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js","Markdown-4tjIF-hK.js","AssistantPageLink-BcChI7L3.js","dist-MIf_HGLZ.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}