{"openapi":"3.1.0","info":{"title":"PerfectHOA API","version":"v1","description":"Manage your HOA communities programmatically. Authenticate with a personal access token (Account \u2192 Security \u2192 API tokens): `Authorization: Bearer phoa_pat_...`. A token acts as its user, narrowed to its scopes and communities. Ids are uuids, money is a decimal string, dates are ISO 8601. Money signs: a unit balance \/ running_balance is POSITIVE when the owner owes and NEGATIVE for a credit (balance_status owes|credit|settled, amount_owed, credit_amount); a ledger amount is positive for a charge and negative for a payment or credit (effect increases_owed|decreases_owed); invoice total \/ amount_paid \/ amount_due are positive; a bank transaction\u0027s amount is always positive with direction in|out, and its category is null when it is split across categories (is_split, splits: lines with their own category, amount and direction); variances are actual \u2212 budget (actual_vs_budget, is_favorable) and bank \u2212 book (variance_status). Lists are cursor-paginated: `?limit=1..100\u0026cursor=\u003Cnext_cursor\u003E`. Errors are RFC 9457 problem+json. Rate limit: 120 requests\/minute per token (RateLimit-* headers, 429 + Retry-After). Writes take a JSON body, answer {data, warnings} with the record after the change, refuse invalid fields with 422 {errors: [{field, message}]} and a stale state with 409, and honour Idempotency-Key. A domain\u0027s :write scope includes its :read scope. Apps can also sign users in with OAuth 2.1 (authorization code + PKCE, dynamic client registration). AI assistants connect through the MCP server at \/mcp. Webhooks (Account \u2192 Security \u2192 Webhooks) push signed event notifications: see `webhooks`. Guide: \/developers."},"servers":[{"url":"https:\/\/app.perfecthoa.com\/api\/v1"}],"security":[{"bearer":[]},{"oauth2":[]}],"paths":{"\/communities":{"get":{"operationId":"api_v1_communities","summary":"The communities this token can reach: the user\u0027s (account, security groups), narrowed by the token","tags":["Communities"],"parameters":[{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The communities this token can reach: the user\u0027s (account, security groups), narrowed by the token\n\nRequired scopes: communities:read","x-required-scopes":["communities:read"]}},"\/communities\/{community}":{"get":{"operationId":"api_v1_community","summary":"Community","tags":["Communities"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["communities:read"],"description":"Required scopes: communities:read"}},"\/communities\/{community}\/action-items":{"post":{"operationId":"api_v1_action_item_create","summary":"Create an action item. Body: title, description?, meeting? (the board meeting it came from), assignee? (board member","tags":["Action items"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create an action item. Body: title, description?, meeting? (the board meeting it came from), assignee? (board member\nid), priority? (low|normal|high|urgent, default normal), status? (pending|in_progress|completed|cancelled, default\npending), due_date?.\n\nRequired scopes: meetings:write","x-required-scopes":["meetings:write"]}},"\/communities\/{community}\/action-items\/{id}":{"patch":{"operationId":"api_v1_action_item_update","summary":"Update an action item: any of title, description, assignee (null unassigns), priority, status, due_date (null","tags":["Action items"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Update an action item: any of title, description, assignee (null unassigns), priority, status, due_date (null\nclears). An assignee without the edit permission may change only the status of their own items.\n\nRequired scopes: meetings:write","x-required-scopes":["meetings:write"]},"delete":{"operationId":"api_v1_action_item_delete","summary":"Action item delete","tags":["Action items"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["meetings:write"],"description":"Required scopes: meetings:write"}},"\/communities\/{community}\/agenda-items\/{id}":{"patch":{"operationId":"api_v1_agenda_item_update","summary":"Edit an agenda item. Body: any of title, description, item_type, presenter, planned_duration_minutes","tags":["Agenda items"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit an agenda item. Body: any of title, description, item_type, presenter, planned_duration_minutes\n\nRequired scopes: meetings:write","x-required-scopes":["meetings:write"]},"delete":{"operationId":"api_v1_agenda_item_delete","summary":"Remove an item from a meeting\u0027s agenda","tags":["Agenda items"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Remove an item from a meeting\u0027s agenda\n\nRequired scopes: meetings:write","x-required-scopes":["meetings:write"]}},"\/communities\/{community}\/amenities":{"get":{"operationId":"api_v1_amenities","summary":"?active=true|false, ?q= name\/location search","tags":["Amenities"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"?active=true|false, ?q= name\/location search\n\nRequired scopes: events:read","x-required-scopes":["events:read"]}},"\/communities\/{community}\/amenities\/{id}":{"get":{"operationId":"api_v1_amenity","summary":"Amenity","tags":["Amenities"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["events:read"],"description":"Required scopes: events:read"}},"\/communities\/{community}\/amenity-reservations":{"post":{"operationId":"api_v1_amenity_reservation_create","summary":"Reserve an amenity for a unit. Body: amenity (amenity id), unit (unit id), contact? (contact id), starts_at,","tags":["Amenity reservations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Reserve an amenity for a unit. Body: amenity (amenity id), unit (unit id), contact? (contact id), starts_at,\nends_at (the community\u0027s local date and time like 2026-07-04T14:00, no offset), party_size?, notes?,\nemail_invoice? (default true, as the dashboard: when the amenity has a fee, the unit\u0027s invoice is emailed).\n409 when the slot overlaps another live reservation.\n\nRequired scopes: events:write","x-required-scopes":["events:write"]},"get":{"operationId":"api_v1_amenity_reservations","summary":"Oldest first. ?amenity=\u003Camenity id\u003E, ?unit=\u003Cunit id\u003E, ?status=pending|confirmed|denied|cancelled|completed,","tags":["Amenity reservations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Oldest first. ?amenity=\u003Camenity id\u003E, ?unit=\u003Cunit id\u003E, ?status=pending|confirmed|denied|cancelled|completed,\n?from= \/ ?to= dates (reservations overlapping the range, inclusive), ?when=upcoming|past (past: newest first)\n\nRequired scopes: events:read","x-required-scopes":["events:read"]}},"\/communities\/{community}\/amenity-reservations\/{id}":{"get":{"operationId":"api_v1_amenity_reservation","summary":"Amenity reservation","tags":["Amenity reservations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["events:read"],"description":"Required scopes: events:read"}},"\/communities\/{community}\/amenity-reservations\/{id}\/status":{"post":{"operationId":"api_v1_amenity_reservation_status","summary":"Approve, deny or cancel a reservation. Body: action (approve: pending \u2192 confirmed | deny: pending \u2192 denied |","tags":["Amenity reservations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Approve, deny or cancel a reservation. Body: action (approve: pending \u2192 confirmed | deny: pending \u2192 denied |\ncancel: pending or confirmed \u2192 cancelled). 409 from any other status. No refund is made for a paid fee.\n\nRequired scopes: events:write","x-required-scopes":["events:write"]}},"\/communities\/{community}\/bank-accounts":{"get":{"operationId":"api_v1_bank_accounts","summary":"?active=true|false, ?fund=operating|reserve. Disconnected (inactive) accounts are listed too, as on the dashboard.","tags":["Bank accounts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"?active=true|false, ?fund=operating|reserve. Disconnected (inactive) accounts are listed too, as on the dashboard.\n\nRequired scopes: banking:read","x-required-scopes":["banking:read"]}},"\/communities\/{community}\/bank-accounts\/{id}":{"get":{"operationId":"api_v1_bank_account","summary":"Bank account","tags":["Bank accounts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["banking:read"],"description":"Required scopes: banking:read"}},"\/communities\/{community}\/budgets":{"post":{"operationId":"api_v1_budget_create","summary":"Create a draft budget. Body: name, start_date, end_date (after start_date), description?, line_items? (list of","tags":["Budgets"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a draft budget. Body: name, start_date, end_date (after start_date), description?, line_items? (list of\n{type (revenue|expense), category (transaction category id: an income category for revenue, an expense or\nreserve \/ capital (asset) one for expense), amount (annual), fund? (operating|reserve, default operating), phasing? (even|seasonal|manual, default\neven), monthly_amounts? (seasonal \/ manual: one amount per month of the period; manual ones must add up to the\namount)}). The budget stays a draft until activated.\n\nRequired scopes: budgets:write","x-required-scopes":["budgets:write"]},"get":{"operationId":"api_v1_budgets","summary":"Latest fiscal year first. ?fiscal_year=YYYY (the year the budget starts in), ?status=draft|active|completed|archived","tags":["Budgets"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Latest fiscal year first. ?fiscal_year=YYYY (the year the budget starts in), ?status=draft|active|completed|archived\n(archived budgets are hidden unless asked for, as on the dashboard).\n\nRequired scopes: budgets:read","x-required-scopes":["budgets:read"]}},"\/communities\/{community}\/budgets\/{id}":{"patch":{"operationId":"api_v1_budget_update","summary":"Edit a budget, as the dashboard\u0027s budget edit form: any of name, description, start_date, end_date, line_items","tags":["Budgets"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit a budget, as the dashboard\u0027s budget edit form: any of name, description, start_date, end_date, line_items\n(same shape as on create; REPLACES all the lines). Absent fields are left as they are.\n\nRequired scopes: budgets:write","x-required-scopes":["budgets:write"]},"get":{"operationId":"api_v1_budget","summary":"Budget","tags":["Budgets"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["budgets:read"],"description":"Required scopes: budgets:read"}},"\/communities\/{community}\/budgets\/{id}\/activate":{"post":{"operationId":"api_v1_budget_activate","summary":"Make this the community\u0027s active budget (the dashboard\u0027s \u0022Activate\u0022): the budget reports compare against it, and","tags":["Budgets"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Make this the community\u0027s active budget (the dashboard\u0027s \u0022Activate\u0022): the budget reports compare against it, and\nthe previously active budget becomes completed. It sends nothing and bills nothing. No body.\n\nRequired scopes: budgets:write","x-required-scopes":["budgets:write"]}},"\/communities\/{community}\/cheques":{"get":{"operationId":"api_v1_cheques","summary":"Mailed cheques, newest first. ?status=\u003Ccheque status\u003E, ?vendor=\u003Cvendor id\u003E, ?from= \/ ?to= created dates (inclusive).","tags":["Cheques"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Mailed cheques, newest first. ?status=\u003Ccheque status\u003E, ?vendor=\u003Cvendor id\u003E, ?from= \/ ?to= created dates (inclusive).\n\nRequired scopes: banking:read","x-required-scopes":["banking:read"]}},"\/communities\/{community}\/cheques\/{id}":{"get":{"operationId":"api_v1_cheque","summary":"Cheque","tags":["Cheques"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["banking:read"],"description":"Required scopes: banking:read"}},"\/communities\/{community}\/collections-cases":{"get":{"operationId":"api_v1_collections_cases","summary":"Newest first. ?status=\u003CCollectionsCaseResource::STATUSES key\u003E, ?priority=low|medium|high|urgent, ?active=true|false, ?unit=\u003Cunit id\u003E","tags":["Collections cases"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Newest first. ?status=\u003CCollectionsCaseResource::STATUSES key\u003E, ?priority=low|medium|high|urgent, ?active=true|false, ?unit=\u003Cunit id\u003E\n\nRequired scopes: invoices:read","x-required-scopes":["invoices:read"]}},"\/communities\/{community}\/collections-cases\/{id}":{"get":{"operationId":"api_v1_collections_case","summary":"Collections case","tags":["Collections cases"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["invoices:read"],"description":"Required scopes: invoices:read"}},"\/communities\/{community}\/collections-cases\/{id}\/notes":{"post":{"operationId":"api_v1_collections_case_note","summary":"Add a note to the case timeline (as the case page\u0027s note box; staff only). Body: note.","tags":["Collections cases"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Add a note to the case timeline (as the case page\u0027s note box; staff only). Body: note.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]}},"\/communities\/{community}\/collections-cases\/{id}\/stage":{"post":{"operationId":"api_v1_collections_case_stage","summary":"Move the case to a stage, as the case page\u0027s \u0022Advance Stage\u0022. Body: stage (new|pending_review|first_notice_sent|","tags":["Collections cases"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Move the case to a stage, as the case page\u0027s \u0022Advance Stage\u0022. Body: stage (new|pending_review|first_notice_sent|\nsecond_notice_sent|final_notice_sent|lien_filed|attorney_referral|legal_action|judgment_obtained|resolved|\nwritten_off|suspended), expected_stage? (409 if the case is no longer at that stage). Nothing is sent by the move\nitself; leaving \u0022suspended\u0022 re-arms automatic escalation, whose next stage (and its notice) runs on the next\nnightly escalation run.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]}},"\/communities\/{community}\/committees":{"get":{"operationId":"api_v1_committees","summary":"The community\u0027s committees, by name: use their id as \u0022committee\u0022 on votes and requests. Needs the view committees permission (and the communities:read scope).","tags":["Committees"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The community\u0027s committees, by name: use their id as \u0022committee\u0022 on votes and requests. Needs the view committees permission (and the communities:read scope).\n\nRequired scopes: communities:read","x-required-scopes":["communities:read"]}},"\/communities\/{community}\/communications":{"get":{"operationId":"api_v1_communications","summary":"Newest first. ?channel=email|sms|letter, ?status=pending|ready|printing|sent|delivered|soft_bounce|hard_bounce|failed|cancelled,","tags":["Communications"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Newest first. ?channel=email|sms|letter, ?status=pending|ready|printing|sent|delivered|soft_bounce|hard_bounce|failed|cancelled,\n?scheduled=true|false (send date in the future), ?from= \/ ?to= send dates, ?unit=\u003Cunit id\u003E, ?q= subject search\n\nRequired scopes: communications:read","x-required-scopes":["communications:read"]}},"\/communities\/{community}\/communications\/emails":{"post":{"operationId":"api_v1_communication_email","summary":"Email a unit\u0027s contacts. Body: unit (id), subject, message, format? (text|html, default text), contacts? (contact","tags":["Communications"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Email a unit\u0027s contacts. Body: unit (id), subject, message, format? (text|html, default text), contacts? (contact\nids of the unit; default: every contact of the unit with an email). Answers the recorded email and any contact\nthe hand-off failed for.\n\nRequired scopes: communications:write","x-required-scopes":["communications:write"]}},"\/communities\/{community}\/communications\/letters":{"post":{"operationId":"api_v1_communication_letter","summary":"Mail a paid letter (PostGrid, charged to the account wallet) to a unit\u0027s contacts, one per contact, as the unit\u0027s","tags":["Communications"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Mail a paid letter (PostGrid, charged to the account wallet) to a unit\u0027s contacts, one per contact, as the unit\u0027s\nsend-letter page. Body: unit (id), subject, message, format? (text|html, default text), mailing_class? (default\nfirst_class), contacts? (contact ids of the unit; default: every contact of the unit \u2014 a contact without an\naddress is mailed at the unit\u0027s address), confirmed_cost (the exact TOTAL for all recipients \u2014 a call without it\nanswers 422 with the cost). Answers 201 with the letters sent, `failed` (not sent, nothing charged unless noted)\nand `unconfirmed` (may have gone out: check Physical Mail before sending again); 202 when no letter was confirmed\nbut some may have gone out; 422 when nothing was sent.\n\nRequired scopes: communications:write","x-required-scopes":["communications:write"]}},"\/communities\/{community}\/communications\/sms":{"post":{"operationId":"api_v1_communication_sms","summary":"Text a unit\u0027s contacts (the community\u0027s SMS must be enabled). Body: unit (id), message (10-1200 characters),","tags":["Communications"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Text a unit\u0027s contacts (the community\u0027s SMS must be enabled). Body: unit (id), message (10-1200 characters),\ncontacts? (contact ids of the unit; default: every contact of the unit with a phone). One text per contact;\ncontacts that opted out (STOP) or have no valid number are reported in `failed`. 422 when nothing was sent.\n\nRequired scopes: communications:write","x-required-scopes":["communications:write"]}},"\/communities\/{community}\/communications\/{id}":{"get":{"operationId":"api_v1_communication","summary":"Plain-text body, recipient names (no addresses), attachment names, delivery status","tags":["Communications"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Plain-text body, recipient names (no addresses), attachment names, delivery status\n\nRequired scopes: communications:read","x-required-scopes":["communications:read"]}},"\/communities\/{community}\/contacts":{"post":{"operationId":"api_v1_contact_create","summary":"Create a contact. Body: first_name, last_name, type? (owner|tenant|contact|vendor, default owner), email?,","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a contact. Body: first_name, last_name, type? (owner|tenant|contact|vendor, default owner), email?,\nphone?, company_name?, mailing_address1? \/ mailing_address2? \/ mailing_city? \/ mailing_state? \/ mailing_zip?\n(when mail goes elsewhere than the unit), sms_permission? (you have permission to text them), units? (unit ids\nto link: an owner of those units, a tenant in them, \u2026).\n\nRequired scopes: contacts:write","x-required-scopes":["contacts:write"]},"get":{"operationId":"api_v1_contacts","summary":"?q= name\/email\/phone\/company search, ?type=owner|tenant|contact|vendor, ?unit=\u003Cunit id\u003E","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"?q= name\/email\/phone\/company search, ?type=owner|tenant|contact|vendor, ?unit=\u003Cunit id\u003E\n\nRequired scopes: contacts:read","x-required-scopes":["contacts:read"]}},"\/communities\/{community}\/contacts\/imports\/rows":{"post":{"operationId":"api_v1_contacts_import_rows","summary":"Stage contact rows for an import. Body: rows (1-250 objects: first_name, last_name, email?, phone?, type?","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Stage contact rows for an import. Body: rows (1-250 objects: first_name, last_name, email?, phone?, type?\n(owner|tenant|contact, default owner), unit? (unit id, title or street address), company_name?,\nmailing_address1?, mailing_address2?, mailing_city?, mailing_state?, mailing_zip?), import_id? (add to that\nimport). The same email on several rows is one contact linked to every unit. Import the units first.\n\nRequired scopes: contacts:write","x-required-scopes":["contacts:write"]}},"\/communities\/{community}\/contacts\/imports\/{import}\/commit":{"post":{"operationId":"api_v1_contacts_import_commit","summary":"Commit a previewed contacts import. Body: commit_token. Same rules as the units commit.","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"import","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Commit a previewed contacts import. Body: commit_token. Same rules as the units commit.\n\nRequired scopes: contacts:write","x-required-scopes":["contacts:write"]}},"\/communities\/{community}\/contacts\/imports\/{import}\/preview":{"get":{"operationId":"api_v1_contacts_import_preview","summary":"Preview a contacts import: counts (to create, to update (matched by email), unchanged, merged \/ duplicate rows,","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"import","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Preview a contacts import: counts (to create, to update (matched by email), unchanged, merged \/ duplicate rows,\nerrors), totals (owners, tenants, linked to units, without email \/ phone), the problems (first 50), a sample,\nsummary_text and the commit_token. Changes nothing.\n\nRequired scopes: contacts:write","x-required-scopes":["contacts:write"]}},"\/communities\/{community}\/contacts\/{id}":{"patch":{"operationId":"api_v1_contact_update","summary":"Edit a contact. Body: any of first_name, last_name, type, email, phone, company_name, mailing_address1,","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit a contact. Body: any of first_name, last_name, type, email, phone, company_name, mailing_address1,\nmailing_address2, mailing_city, mailing_state, mailing_zip, sms_permission. Absent fields are left as they are;\nnull clears an optional one. Changing type changes the contact\u0027s role on all its units (e.g. owner \u2192 tenant).\n\nRequired scopes: contacts:write","x-required-scopes":["contacts:write"]},"delete":{"operationId":"api_v1_contact_delete","summary":"Delete a contact (soft delete, as on the dashboard): it stops owning its units and loses portal access.","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delete a contact (soft delete, as on the dashboard): it stops owning its units and loses portal access.\n\nRequired scopes: contacts:write","x-required-scopes":["contacts:write"]},"get":{"operationId":"api_v1_contact","summary":"Contact","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["contacts:read"],"description":"Required scopes: contacts:read"}},"\/communities\/{community}\/contacts\/{id}\/units":{"post":{"operationId":"api_v1_contact_link_unit","summary":"Link the contact to a unit. Body: unit (id), type? (owner|tenant|contact|vendor: also sets the contact\u0027s role,","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Link the contact to a unit. Body: unit (id), type? (owner|tenant|contact|vendor: also sets the contact\u0027s role,\nwhich applies to all its units). Linking an owner makes them an owner of the unit (portal, autopay, requests).\nTo replace a unit\u0027s owners after a sale, use POST \/units\/{id}\/transfer-ownership instead.\n\nRequired scopes: contacts:write","x-required-scopes":["contacts:write"]}},"\/communities\/{community}\/contacts\/{id}\/units\/{unit}":{"delete":{"operationId":"api_v1_contact_unlink_unit","summary":"Unlink the contact from a unit (the contact itself is kept, with its other units).","tags":["Contacts"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"unit","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Unlink the contact from a unit (the contact itself is kept, with its other units).\n\nRequired scopes: contacts:write","x-required-scopes":["contacts:write"]}},"\/communities\/{community}\/decisions\/{id}":{"delete":{"operationId":"api_v1_decision_delete","summary":"Decision delete","tags":["Decisions"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["meetings:write"],"description":"Required scopes: meetings:write"}},"\/communities\/{community}\/document-folders":{"post":{"operationId":"api_v1_document_folder_create","summary":"Create a folder. Body: name, parent? (folder id; default the top level), visibility?, on_duplicate?","tags":["Document folders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a folder. Body: name, parent? (folder id; default the top level), visibility?, on_duplicate?\n\nRequired scopes: documents:write","x-required-scopes":["documents:write"]},"get":{"operationId":"api_v1_document_folders","summary":"The whole live folder tree, roots first (each node: children + its direct document count)","tags":["Document folders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The whole live folder tree, roots first (each node: children + its direct document count)\n\nRequired scopes: documents:read","x-required-scopes":["documents:read"]}},"\/communities\/{community}\/document-folders\/{id}":{"patch":{"operationId":"api_v1_document_folder_update","summary":"Change a folder: any of name, visibility, parent (folder id, or null for the top level), on_duplicate?","tags":["Document folders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Change a folder: any of name, visibility, parent (folder id, or null for the top level), on_duplicate?\n\nRequired scopes: documents:write","x-required-scopes":["documents:write"]},"delete":{"operationId":"api_v1_document_folder_delete","summary":"Move a folder and everything in it to the trash (restorable from the dashboard for the retention period).","tags":["Document folders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Move a folder and everything in it to the trash (restorable from the dashboard for the retention period).\n\nRequired scopes: documents:write","x-required-scopes":["documents:write"]}},"\/communities\/{community}\/documents":{"post":{"operationId":"api_v1_document_upload","summary":"Upload one file. Body (multipart\/form-data): file, folder? (folder id; default the top level), title?,","tags":["Documents"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary"},"folder":{"type":"string","format":"uuid"},"title":{"type":"string"},"description":{"type":"string"},"visibility":{"type":"string"},"on_duplicate":{"type":"string","enum":["replace","keep_both","skip"]}}}}}},"description":"Upload one file. Body (multipart\/form-data): file, folder? (folder id; default the top level), title?,\ndescription?, visibility?, on_duplicate? (replace|keep_both|skip). Images are re-encoded without their metadata;\ntypes and size are checked as on the dashboard.\n\nRequired scopes: documents:write","x-required-scopes":["documents:write"]},"get":{"operationId":"api_v1_documents","summary":"Newest first. ?folder=\u003Cfolder id\u003E|root (direct contents), ?category=governing|financial|minutes|policies|architectural|general,","tags":["Documents"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Newest first. ?folder=\u003Cfolder id\u003E|root (direct contents), ?category=governing|financial|minutes|policies|architectural|general,\n?q= title\/file name\/description search, ?starred=true (starred by the token\u0027s user)\n\nRequired scopes: documents:read","x-required-scopes":["documents:read"]}},"\/communities\/{community}\/documents\/base64":{"post":{"operationId":"api_v1_document_upload_base64","summary":"Upload one file sent as base64 in a JSON body (for clients that can\u0027t send multipart, e.g. an AI over MCP).","tags":["Documents"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Upload one file sent as base64 in a JSON body (for clients that can\u0027t send multipart, e.g. an AI over MCP).\nBody: filename (with its extension, like Bylaws 2026.pdf), content_base64 (the file\u0027s bytes in standard base64; a\ndata URI prefix is accepted), folder? (folder id; default the top level), title?, description?, visibility?,\non_duplicate? (replace|keep_both|skip). At most 10 MB decoded (or the multipart limit if lower), with the same\ntype, content and size checks as the dashboard and the multipart upload.\n\nRequired scopes: documents:write","x-required-scopes":["documents:write"]}},"\/communities\/{community}\/documents\/{id}":{"patch":{"operationId":"api_v1_document_update","summary":"Change a document: any of title, description, visibility, folder (folder id, or null for the top level), on_duplicate?","tags":["Documents"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Change a document: any of title, description, visibility, folder (folder id, or null for the top level), on_duplicate?\n\nRequired scopes: documents:write","x-required-scopes":["documents:write"]},"delete":{"operationId":"api_v1_document_delete","summary":"Move a document to the trash (restorable from the dashboard\u0027s Trash for the retention period).","tags":["Documents"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Move a document to the trash (restorable from the dashboard\u0027s Trash for the retention period).\n\nRequired scopes: documents:write","x-required-scopes":["documents:write"]},"get":{"operationId":"api_v1_document","summary":"Metadata + download_url: a presigned S3 link valid DOWNLOAD_URL_TTL seconds (download_url_expires_at)","tags":["Documents"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Metadata + download_url: a presigned S3 link valid DOWNLOAD_URL_TTL seconds (download_url_expires_at)\n\nRequired scopes: documents:read","x-required-scopes":["documents:read"]}},"\/communities\/{community}\/events":{"post":{"operationId":"api_v1_event_create","summary":"Create an event or meeting. Body: title, category (board_meeting|annual_meeting|committee_meeting|community_party|","tags":["Events"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create an event or meeting. Body: title, category (board_meeting|annual_meeting|committee_meeting|community_party|\nsocial_event|maintenance_notice|other or a custom category of the community), event_type (in_person|virtual|\nhybrid), starts_at (local time like 2026-03-01T18:30, no offset), duration_minutes, location?, address1?,\naddress2?, city?, state?, zip?, description?, save_location? (remember the location for later events),\nrepeat? ({frequency: weekly|monthly|yearly, ends_on?: date}: a recurring series, generated 90 days ahead; the\nfirst occurrence is returned). A meeting category also needs meetings:write. Nobody is notified.\n\nRequired scopes: events:write","x-required-scopes":["events:write"]},"get":{"operationId":"api_v1_events","summary":"?from= \/ ?to= dates (events overlapping the range, inclusive), ?when=upcoming|past (past: newest first),","tags":["Events"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"?from= \/ ?to= dates (events overlapping the range, inclusive), ?when=upcoming|past (past: newest first),\n?category=board_meeting|annual_meeting|committee_meeting|community_party|social_event|maintenance_notice|other, ?q=\n\nRequired scopes: events:read","x-required-scopes":["events:read"]}},"\/communities\/{community}\/events\/{id}":{"patch":{"operationId":"api_v1_event_update","summary":"Edit an event or meeting (one occurrence of a series: the others are unchanged, as on the dashboard). Body: any of","tags":["Events"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit an event or meeting (one occurrence of a series: the others are unchanged, as on the dashboard). Body: any of\ntitle, category, event_type, starts_at, duration_minutes, location, address1, address2, city, state, zip,\ndescription, save_location. Absent fields are left as they are.\n\nRequired scopes: events:write","x-required-scopes":["events:write"]},"delete":{"operationId":"api_v1_event_delete","summary":"Delete an event or meeting (one occurrence of a series). A meeting also needs meetings:write.","tags":["Events"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delete an event or meeting (one occurrence of a series). A meeting also needs meetings:write.\n\nRequired scopes: events:write","x-required-scopes":["events:write"]},"get":{"operationId":"api_v1_event","summary":"Event","tags":["Events"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["events:read"],"description":"Required scopes: events:read"}},"\/communities\/{community}\/invoices":{"post":{"operationId":"api_v1_invoice_create","summary":"Create invoices: one per unit. Body: units (list of unit ids) or all_units: true, line_items (list of","tags":["Invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create invoices: one per unit. Body: units (list of unit ids) or all_units: true, line_items (list of\n{description, qty?, rate}), terms? (due_on_receipt|net_15|net_30|net_60, default due_on_receipt), issue_date?\n(default today), due_date? (default: issue date + the terms\u0027 days), notes? (shown to the owner), internal_notes?,\nsend_email? (email each invoice to the unit\u0027s owners, default true as on the dashboard). Answers {data: [invoice],\nwarnings}.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]},"get":{"operationId":"api_v1_invoices","summary":"Newest issued first. ?status=pending|paid|cancelled|missing_contacts|open, ?unit=\u003Cunit id\u003E, ?overdue=true|false,","tags":["Invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Newest issued first. ?status=pending|paid|cancelled|missing_contacts|open, ?unit=\u003Cunit id\u003E, ?overdue=true|false,\n?source=fine|request|general, ?issued_from= \/ ?issued_to= \/ ?due_from= \/ ?due_to= dates (inclusive),\n?q= invoice number \/ unit \/ owner name (with ?unit=, also line item descriptions)\n\nRequired scopes: invoices:read","x-required-scopes":["invoices:read"]}},"\/communities\/{community}\/invoices\/{id}":{"patch":{"operationId":"api_v1_invoice_update","summary":"Edit an open invoice: any of line_items (replaces them all), terms, issue_date, due_date, notes, internal_notes.","tags":["Invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit an open invoice: any of line_items (replaces them all), terms, issue_date, due_date, notes, internal_notes.\nA changed total is booked on the unit\u0027s ledger as an adjustment, and the owners get the updated invoice email (as\non the dashboard). Paid \/ cancelled invoices are read-only.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]},"delete":{"operationId":"api_v1_invoice_delete","summary":"Delete the invoice (soft delete, as on the dashboard). An open invoice\u0027s charge is reversed on the unit\u0027s ledger and","tags":["Invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delete the invoice (soft delete, as on the dashboard). An open invoice\u0027s charge is reversed on the unit\u0027s ledger and\nwhat was paid on it becomes unit credit. 422 when it is in a disbursement or an open payment plan.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]},"get":{"operationId":"api_v1_invoice","summary":"One invoice with its line items, payments (newest first) and applied late fees","tags":["Invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"One invoice with its line items, payments (newest first) and applied late fees\n\nRequired scopes: invoices:read","x-required-scopes":["invoices:read"]}},"\/communities\/{community}\/invoices\/{id}\/cancel":{"post":{"operationId":"api_v1_invoice_cancel","summary":"Cancel (void) an open invoice with no payments: its charge is reversed on the unit\u0027s ledger and open checkout links","tags":["Invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Cancel (void) an open invoice with no payments: its charge is reversed on the unit\u0027s ledger and open checkout links\nstop working. Refused for paid \/ partly paid invoices (no refunds here) and for invoices in a payment plan.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]}},"\/communities\/{community}\/invoices\/{id}\/payments":{"post":{"operationId":"api_v1_invoice_payment","summary":"Record a payment received outside the online checkout (check, cash, bank transfer...). Body: reference (e.g.","tags":["Invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Record a payment received outside the online checkout (check, cash, bank transfer...). Body: reference (e.g.\n\u0022Check #1234\u0022), amount? (default: everything still due; never more), paid_date? (default today). The invoice\nbecomes paid once nothing is due. Nothing is charged: this only records money already received.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]}},"\/communities\/{community}\/invoices\/{id}\/reminders":{"post":{"operationId":"api_v1_invoice_reminder","summary":"Email the unit\u0027s owners a reminder of this open invoice. Answers the number of owners it went to.","tags":["Invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Email the unit\u0027s owners a reminder of this open invoice. Answers the number of owners it went to.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]}},"\/communities\/{community}\/meetings":{"get":{"operationId":"api_v1_meetings","summary":"?when=upcoming|past (past: newest first), ?from= \/ ?to= dates, ?category=board_meeting|committee_meeting|annual_meeting, ?q=","tags":["Meetings"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"?when=upcoming|past (past: newest first), ?from= \/ ?to= dates, ?category=board_meeting|committee_meeting|annual_meeting, ?q=\n\nRequired scopes: meetings:read","x-required-scopes":["meetings:read"]}},"\/communities\/{community}\/meetings\/board-members":{"get":{"operationId":"api_v1_board_members","summary":"The community\u0027s current board members (ids for action item assignees and decision movers)","tags":["Meetings"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The community\u0027s current board members (ids for action item assignees and decision movers)\n\nRequired scopes: meetings:read","x-required-scopes":["meetings:read"]}},"\/communities\/{community}\/meetings\/{id}":{"get":{"operationId":"api_v1_meeting","summary":"The meeting with agenda, attendees, decisions, action items and minutes; a section the user may not see is null","tags":["Meetings"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The meeting with agenda, attendees, decisions, action items and minutes; a section the user may not see is null\n\nRequired scopes: meetings:read","x-required-scopes":["meetings:read"]}},"\/communities\/{community}\/meetings\/{id}\/agenda-items":{"post":{"operationId":"api_v1_agenda_item_create","summary":"Add an item at the end of a meeting\u0027s agenda. Body: title, description?, item_type? (regular|consent|action|","tags":["Meetings"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Add an item at the end of a meeting\u0027s agenda. Body: title, description?, item_type? (regular|consent|action|\ninformation|discussion|vote|executive_session, default regular), presenter? (board member id),\nplanned_duration_minutes? (1-180)\n\nRequired scopes: meetings:write","x-required-scopes":["meetings:write"]}},"\/communities\/{community}\/meetings\/{id}\/attendance":{"post":{"operationId":"api_v1_meeting_attendance","summary":"Record a meeting\u0027s attendance list. Body: add_board_members? (true: put every current board member on the list,","tags":["Meetings"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Record a meeting\u0027s attendance list. Body: add_board_members? (true: put every current board member on the list,\ninvited and absent, as the dashboard\u0027s \u0022initialize from board\u0022), attendees? (list of {board_member? | contact? |\nname? (a guest), rsvp_status? (invited|accepted|declined), attendance_status? (present|absent|late|excused),\nremove? (true: take the person off the list)}; a person not yet on the list is added). Nobody is notified.\n\nRequired scopes: meetings:write","x-required-scopes":["meetings:write"]}},"\/communities\/{community}\/meetings\/{id}\/decisions":{"post":{"operationId":"api_v1_decision_create","summary":"Record a decision of a board meeting. Body: title, decision_type (motion_passed|motion_failed|consensus|tabled|","tags":["Meetings"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Record a decision of a board meeting. Body: title, decision_type (motion_passed|motion_failed|consensus|tabled|\ndeferred), description?, moved_by? \/ seconded_by? (board member ids), vote_result? (e.g. \u00225-2\u0022), follow_up?.\n\nRequired scopes: meetings:write","x-required-scopes":["meetings:write"]}},"\/communities\/{community}\/payments":{"get":{"operationId":"api_v1_payments","summary":"Payments on the community\u0027s invoices, newest first. ?status=pending|processing|completed|failed|disputed,","tags":["Payments"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Payments on the community\u0027s invoices, newest first. ?status=pending|processing|completed|failed|disputed,\n?unit=\u003Cunit id\u003E, ?paid_from= \/ ?paid_to= dates (inclusive, on the payment date)\n\nRequired scopes: invoices:read","x-required-scopes":["invoices:read"]}},"\/communities\/{community}\/recurring-invoices":{"post":{"operationId":"api_v1_recurring_invoice_create","summary":"Create a schedule. Body: frequency (monthly|annually), start_date (the first issue date, today or later),","tags":["Recurring invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a schedule. Body: frequency (monthly|annually), start_date (the first issue date, today or later),\nend_date?, due_after_days? (days from each issue date to its due date, default 0), units (list of unit ids) or\nall_units: true, line_items (list of {description, qty?, rate}), terms?, notes?, internal_notes?. The first\ninvoices are issued on start_date by the nightly run.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]},"get":{"operationId":"api_v1_recurring_invoices","summary":"Newest first. ?status=active|ended, ?frequency=monthly|annually, ?unit=\u003Cunit id\u003E (schedules that bill that unit,","tags":["Recurring invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Newest first. ?status=active|ended, ?frequency=monthly|annually, ?unit=\u003Cunit id\u003E (schedules that bill that unit,\nincluding all-units ones), as the dashboard\u0027s recurring invoice filters\n\nRequired scopes: invoices:read","x-required-scopes":["invoices:read"]}},"\/communities\/{community}\/recurring-invoices\/{id}":{"patch":{"operationId":"api_v1_recurring_invoice_update","summary":"Edit a schedule (as the dashboard\u0027s recurring invoice edit form): any of frequency (monthly|annually),","tags":["Recurring invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit a schedule (as the dashboard\u0027s recurring invoice edit form): any of frequency (monthly|annually),\nstart_date (only before its first invoice is issued; today or later: the first issue moves with it), end_date\n(null = no end), due_after_days, units (list of unit ids) or all_units: true, line_items (list of {description,\nqty?, rate}: replaces all lines), terms, notes, internal_notes. The total is computed from the lines. Invoices\nalready issued are not changed; the next ones follow the new values.\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]},"delete":{"operationId":"api_v1_recurring_invoice_delete","summary":"Stop a schedule: no further invoices are issued from it. Invoices it already issued are not touched (cancel them","tags":["Recurring invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Stop a schedule: no further invoices are issued from it. Invoices it already issued are not touched (cancel them\none by one if needed).\n\nRequired scopes: invoices:write","x-required-scopes":["invoices:write"]},"get":{"operationId":"api_v1_recurring_invoice","summary":"Recurring invoice","tags":["Recurring invoices"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["invoices:read"],"description":"Required scopes: invoices:read"}},"\/communities\/{community}\/reports\/balance-sheet":{"get":{"operationId":"api_v1_report_balance_sheet","summary":"Balance sheet by fund (operating \/ reserve) at the end of ?as_of_date=YYYY-MM-DD (default today, in the community\u0027s","tags":["Reports"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Balance sheet by fund (operating \/ reserve) at the end of ?as_of_date=YYYY-MM-DD (default today, in the community\u0027s\ntimezone): book balances of the bank accounts, receivables and prepaid assessments (unit ledgers) all as of that\ndate, and equity as fund balance at the end of the prior fiscal year, net income of the fiscal year to date\n(fiscal_year_start), transfers between funds, receivables net of prepaid and any reconciling items; difference is\nwhat those do not explain. roll_forward shows prior closing equity through to closing equity; balanced is true when\nit ties out. 400 for a past date before the books start.\n\nRequired scopes: reports:read","x-required-scopes":["reports:read"]}},"\/communities\/{community}\/reports\/budget-vs-actual":{"get":{"operationId":"api_v1_report_budget_vs_actual","summary":"Budget vs actual: each budget line against the bank transactions of the budget\u0027s period, grouped by primary","tags":["Reports"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Budget vs actual: each budget line against the bank transactions of the budget\u0027s period, grouped by primary\ncategory, revenue and expenses, plus unbudgeted categories that had activity. fund is the budget line\u0027s fund (a\ncategory can have one line per fund). reserve_contributions: the reserve-fund revenue lines against the money that\nreached the reserve accounts; its transfers are not income and not in the totals. ?budget=\u003Cuuid\u003E (default: the\nbudget covering today, else the latest active one, else the latest completed one; \u0022budget\u0022: null when none).\n\nRequired scopes: reports:read","x-required-scopes":["reports:read"]}},"\/communities\/{community}\/reports\/delinquency":{"get":{"operationId":"api_v1_report_delinquency","summary":"Delinquency (aging) of every unit with a positive ledger balance, largest balance first, with totals.","tags":["Reports"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delinquency (aging) of every unit with a positive ledger balance, largest balance first, with totals.\nBuckets by days past due of the amount still due: current (not yet due, or a balance with no invoice behind it),\ndays_1_30, days_31_60, days_over_60; unapplied credit pays the oldest invoices first, so a row adds up to the\nunit\u0027s balance. past_due = the three overdue buckets and current + past_due = total. Aged as of today in the\ncommunity\u0027s timezone. ?min_balance=123.45 (only units owing at least that much; totals follow).\n\nRequired scopes: reports:read","x-required-scopes":["reports:read"]}},"\/communities\/{community}\/request-categories":{"get":{"operationId":"api_v1_request_categories","summary":"The categories in effect in the community (active or not), for the ?category= filter","tags":["Request categories"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The categories in effect in the community (active or not), for the ?category= filter\n\nRequired scopes: requests:read","x-required-scopes":["requests:read"]}},"\/communities\/{community}\/requests":{"post":{"operationId":"api_v1_request_create","summary":"Create a request (staff-created, as from the dashboard). Body: unit (id), category (id or key), title,","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a request (staff-created, as from the dashboard). Body: unit (id), category (id or key), title,\ndescription?, priority? (low|normal|high|urgent, default: the category\u0027s), due_date?, assignee? (staff id or\n\u0022me\u0022), fee_amount? + fee_due_date? (needs the fee permission: issues the fee invoice).\n\nRequired scopes: requests:write","x-required-scopes":["requests:write"]},"get":{"operationId":"api_v1_requests","summary":"?q= (title, number \u0022REQ-12\u0022, unit, submitter \/ owner name or email, description), ?status=\u003Cname\u003E,","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"?q= (title, number \u0022REQ-12\u0022, unit, submitter \/ owner name or email, description), ?status=\u003Cname\u003E,\n?open=true|false, ?category=\u003Ccategory id or key\u003E, ?priority=low|normal|high|urgent, ?unit=\u003Cunit id\u003E,\n?submitted_from= \/ ?submitted_to= (YYYY-MM-DD, community-local days). Newest first.\n\nRequired scopes: requests:read","x-required-scopes":["requests:read"]}},"\/communities\/{community}\/requests\/{id}":{"patch":{"operationId":"api_v1_request_update","summary":"Edit details: any of title, description, category (id or key), priority, due_date (null clears), assignee","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit details: any of title, description, category (id or key), priority, due_date (null clears), assignee\n(staff id, \u0022me\u0022, or null to unassign), committee (id or null). Absent fields are left as they are. Assigning\nsomeone else or routing to a committee needs the assign permission.\n\nRequired scopes: requests:write","x-required-scopes":["requests:write"]},"delete":{"operationId":"api_v1_request_delete","summary":"Delete the request (soft delete, as on the dashboard). Its fee invoices are not touched.","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delete the request (soft delete, as on the dashboard). Its fee invoices are not touched.\n\nRequired scopes: requests:write","x-required-scopes":["requests:write"]},"get":{"operationId":"api_v1_request","summary":"The request with its form answers, current votes, fees, documents and newest activity","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The request with its form answers, current votes, fees, documents and newest activity\n\nRequired scopes: requests:read","x-required-scopes":["requests:read"]}},"\/communities\/{community}\/requests\/{id}\/activity":{"get":{"operationId":"api_v1_request_activity","summary":"The request\u0027s activity (staff view: internal and resident-visible entries), oldest first within a page; the","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The request\u0027s activity (staff view: internal and resident-visible entries), oldest first within a page; the\nfirst page is the newest entries, ?cursor= (activity_next_cursor \/ next_cursor) walks back to older ones.\n\nRequired scopes: requests:read","x-required-scopes":["requests:read"]}},"\/communities\/{community}\/requests\/{id}\/attachments":{"post":{"operationId":"api_v1_request_attachments","summary":"Attach files to a request (internal: never shown to the resident). Body: files? (list of {filename,","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Attach files to a request (internal: never shown to the resident). Body: files? (list of {filename,\ncontent_base64}; at most 10 files, 10 MB each and 45 MB together), note? (an internal note). Without files the\nanswer is an upload_url the user opens on their phone to add the files (30 minutes, single use).\n\nRequired scopes: requests:write","x-required-scopes":["requests:write"]}},"\/communities\/{community}\/requests\/{id}\/decision":{"post":{"operationId":"api_v1_request_decision","summary":"Record the decision of a request decided by vote (approvers were asked: see the request\u0027s approvals); other","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Record the decision of a request decided by vote (approvers were asked: see the request\u0027s approvals); other\nrequests are approved \/ declined with POST \/status. Body: decision (approved|approved_conditions|declined), conditions? (required for\napproved_conditions), resident_note? (shown to the resident; required to decline), override? + override_note?\n(decide against pending votes). Needs the approve permission.\n\nRequired scopes: requests:write","x-required-scopes":["requests:write"]}},"\/communities\/{community}\/requests\/{id}\/notes":{"post":{"operationId":"api_v1_request_note","summary":"Add an internal note (staff only, never shown to the resident). Body: text.","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Add an internal note (staff only, never shown to the resident). Body: text.\n\nRequired scopes: requests:write","x-required-scopes":["requests:write"]}},"\/communities\/{community}\/requests\/{id}\/status":{"post":{"operationId":"api_v1_request_status","summary":"Change the status. Body: status (pending|in_review|awaiting_resident|scheduled_for_review|approved|declined|","tags":["Requests"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Change the status. Body: status (pending|in_review|awaiting_resident|scheduled_for_review|approved|declined|\ncompleted|withdrawn), note? (required by some moves, e.g. declining: shown to the resident), scheduled_review_at?\n(scheduled_for_review), expected_status? (refused with 409 if the request is no longer in that status).\nApproving, declining or reopening needs the approve permission.\n\nRequired scopes: requests:write","x-required-scopes":["requests:write"]}},"\/communities\/{community}\/reserve-components":{"get":{"operationId":"api_v1_reserve_components","summary":"By name. ?active=true|false (both by default, as on the dashboard).","tags":["Reserve components"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"By name. ?active=true|false (both by default, as on the dashboard).\n\nRequired scopes: budgets:read","x-required-scopes":["budgets:read"]}},"\/communities\/{community}\/reserve-components\/{id}":{"get":{"operationId":"api_v1_reserve_component","summary":"Reserve component","tags":["Reserve components"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["budgets:read"],"description":"Required scopes: budgets:read"}},"\/communities\/{community}\/staff":{"get":{"operationId":"api_v1_staff","summary":"Staff who can be assigned work in the community (requests, work orders...): users of the account with access to","tags":["Staff"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Staff who can be assigned work in the community (requests, work orders...): users of the account with access to\nit, by name. Use their id as \u0022assignee\u0022.\n\nRequired scopes: communities:read","x-required-scopes":["communities:read"]}},"\/communities\/{community}\/transaction-categories":{"get":{"operationId":"api_v1_transaction_categories","summary":"The active categories a transaction can be filed under: the system ones and this account\u0027s custom ones.","tags":["Transaction categories"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The active categories a transaction can be filed under: the system ones and this account\u0027s custom ones.\n?type=income|expense|transfer|asset|liability, ?q= name search.\n\nRequired scopes: banking:read","x-required-scopes":["banking:read"]}},"\/communities\/{community}\/transaction-rules\/run":{"post":{"operationId":"api_v1_transaction_rules_run","summary":"Run the active categorization rules on every unreviewed transaction now (the rules page\u0027s \u0022Run rules now\u0022). A","tags":["Transaction rules"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Run the active categorization rules on every unreviewed transaction now (the rules page\u0027s \u0022Run rules now\u0022). A\nmatching rule sets the category \/ accounting type, fills a blank vendor \/ unit and accepts the transaction.\nNo body. Answers {data: {applied: \u003Ctransactions changed\u003E}}.\n\nRequired scopes: banking:write","x-required-scopes":["banking:write"]}},"\/communities\/{community}\/transactions":{"get":{"operationId":"api_v1_transactions","summary":"Newest first. ?bank_account=\u003Cid\u003E, ?from= \/ ?to= dates (inclusive), ?category=\u003Ccategory uuid\u003E (and its","tags":["Transactions"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Newest first. ?bank_account=\u003Cid\u003E, ?from= \/ ?to= dates (inclusive), ?category=\u003Ccategory uuid\u003E (and its\nsubcategories; any line of a split), ?uncategorized=true (not splits), ?min_amount= \/ ?max_amount= (absolute amount), ?direction=in|out,\n?q= name\/merchant search, ?reviewed=true|false, ?status=pending|posted, ?reconciled=true|false, ?unit=\u003Cunit id\u003E,\n?vendor=\u003Cvendor id\u003E. The category of a transaction split across categories is null: is_split is true and each line\nof splits has its category, amount (positive), direction, percent (set when split by percent) and memo.\n\nRequired scopes: banking:read","x-required-scopes":["banking:read"]},"post":{"operationId":"api_v1_transaction_create","summary":"Add a manual transaction to a bank account (the dashboard\u0027s \u0022Add transaction\u0022 form): it moves the account\u0027s","tags":["Transactions"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Add a manual transaction to a bank account (the dashboard\u0027s \u0022Add transaction\u0022 form): it moves the account\u0027s\nbook balance (and the bank balance of a manual account). Body: bank_account (id), name, amount (positive),\ndate, accounting_type? (income|expense|transfer|asset|liability, default: the category\u0027s; one of the two is\nrequired), direction? (in|out, any type, e.g. in with expense for a refund; default: in for income, else out; required\nfor a transfer or with splits), category? (transaction category id), splits? (instead of category and accounting_type:\n2 to 10 lines of {category: id, amount or percent, memo?}, as in PUT \/transactions\/{id}\/split), merchant_name?, vendor? (id), work_order? (id of an open work\norder of that vendor: an expense going out records a payment on it, or is matched to the one payment of that amount\nthe work order already has), work_order_payment? (the work order\u0027s payment id this transaction is, or \u0022new\u0022 for\nanother payment: needed when the work order already has payments it may be), unit? (id: money in is posted to the unit\u0027s ledger as an unapplied payment), invoice? (id of a pending\ninvoice of that unit: the amount is applied as a payment), link_only? (income with a unit and no invoice: already\npaid online with Stripe, link only), reviewed? (default false: it lands in the review queue).\n\nRequired scopes: banking:write","x-required-scopes":["banking:write"]}},"\/communities\/{community}\/transactions\/{id}":{"get":{"operationId":"api_v1_transaction","summary":"Transaction","tags":["Transactions"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["banking:read"],"description":"Required scopes: banking:read"}},"\/communities\/{community}\/transactions\/{id}\/category":{"post":{"operationId":"api_v1_transaction_categorize","summary":"Set a transaction\u0027s category (as the register\u0027s category picker). Body: category (transaction category id),","tags":["Transactions"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Set a transaction\u0027s category (as the register\u0027s category picker). Body: category (transaction category id),\nreviewed? (true also accepts it out of the review queue), create_rule? (true: also save a rule \u0022description\ncontains \u003Cthis transaction\u0027s name\u003E\u0022 on its bank account with this category \/ vendor \/ unit \/ accounting type, as\nthe dashboard\u0027s \u0022create rule for similar transactions\u0022), rule_name? (default: the merchant or name),\napply_to_existing? (with create_rule, default true: run the rules on the unreviewed transactions now), replace_split?\n(true: a transaction split across categories loses its lines and gets this one category). The accounting type\nfollows the category. A pending transaction can\u0027t be changed, nor a split one without replace_split (409); nor can\nthe accounting type of a manual transaction on a unit\u0027s ledger, an invoice or a work order (unlink it first).\n\nRequired scopes: banking:write","x-required-scopes":["banking:write"]}},"\/communities\/{community}\/transactions\/{id}\/split":{"put":{"operationId":"api_v1_transaction_split","summary":"Split a transaction across categories, replacing its category or current lines (the dashboard\u0027s Split editor).","tags":["Transactions"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Split a transaction across categories, replacing its category or current lines (the dashboard\u0027s Split editor).\nBody: splits (2 to 10 lines of {category: id, amount or percent, memo?}; every line has an amount, or every line\nhas a percent; amounts are in the transaction\u0027s direction and add up to its amount, a negative one reduces it, e.g.\n1000.00 dues and -30.00 fees of a 970.00 deposit; percents are positive and add up to 100), reviewed? (true also\naccepts it out of the review queue). The transaction\u0027s amount doesn\u0027t change; its category becomes null and reports\ncount each line under its own category. 409: a pending transaction, or lines that would change the accounting type\nof a manual transaction on a unit\u0027s ledger, an invoice or a work order (unlink it first).\n\nRequired scopes: banking:write","x-required-scopes":["banking:write"]},"delete":{"operationId":"api_v1_transaction_unsplit","summary":"Remove a transaction\u0027s split. Body: category? (transaction category id; left out: uncategorized). The amount and","tags":["Transactions"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":false,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Remove a transaction\u0027s split. Body: category? (transaction category id; left out: uncategorized). The amount and\ndirection don\u0027t change. 409 when it is not split or is pending, or when the category\u0027s accounting type would change\na manual transaction on a unit\u0027s ledger, an invoice or a work order (unlink it first).\n\nRequired scopes: banking:write","x-required-scopes":["banking:write"]}},"\/communities\/{community}\/units":{"post":{"operationId":"api_v1_unit_create","summary":"Create a unit. Body: address1, city, state (2-letter US code), zip, title?, address2?, balance? (starting","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a unit. Body: address1, city, state (2-letter US code), zip, title?, address2?, balance? (starting\nbalance, default \u00220\u0022: a positive amount is billed as an \u0022Initial Balance\u0022 invoice, a negative one is a credit),\nbalance_date? (default today), tags? (list of tag names). Refused at the account\u0027s unit limit.\n\nRequired scopes: units:write","x-required-scopes":["units:write"]},"get":{"operationId":"api_v1_units","summary":"?q= title\/address search, ?tag= tag name, ?has_balance=true|false","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"?q= title\/address search, ?tag= tag name, ?has_balance=true|false\n\nRequired scopes: units:read","x-required-scopes":["units:read"]}},"\/communities\/{community}\/units\/imports\/rows":{"post":{"operationId":"api_v1_units_import_rows","summary":"Stage unit rows for an import. Body: rows (1-250 objects: address1, city, state, zip, title?, address2?,","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Stage unit rows for an import. Body: rows (1-250 objects: address1, city, state, zip, title?, address2?,\nbalance? (starting balance owed; negative = credit), balance_date?), import_id? (add to that import; omit to\nstart one). Send a large file in several calls with the returned import_id; rows are numbered across calls.\nNothing is created until commit.\n\nRequired scopes: units:write","x-required-scopes":["units:write"]}},"\/communities\/{community}\/units\/imports\/{import}\/commit":{"post":{"operationId":"api_v1_units_import_commit","summary":"Commit a previewed units import. Body: commit_token (from the preview). 409 if the rows or their outcome changed","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"import","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Commit a previewed units import. Body: commit_token (from the preview). 409 if the rows or their outcome changed\nsince the preview (preview again). Long imports answer status \u0022in_progress\u0022: call commit again with the same\ntoken to continue; a finished import answers its result again.\n\nRequired scopes: units:write","x-required-scopes":["units:write"]}},"\/communities\/{community}\/units\/imports\/{import}\/preview":{"get":{"operationId":"api_v1_units_import_preview","summary":"Preview a units import: what commit would do, as a summary: counts (to create, to update (same address: the","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"import","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Preview a units import: what commit would do, as a summary: counts (to create, to update (same address: the\ntitle), unchanged, duplicates in the file, errors, over the unit limit), starting balance totals, the problems\n(row, field, message; first 50), a sample of the first rows as they will be saved, summary_text, and the\ncommit_token. Creates nothing.\n\nRequired scopes: units:write","x-required-scopes":["units:write"]}},"\/communities\/{community}\/units\/tags":{"post":{"operationId":"api_v1_units_tag","summary":"Add and \/ or remove tags on one or many units, as the units list\u0027s bulk \u0022Add tags\u0022 \/ \u0022Remove tags\u0022 do. Body:","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Add and \/ or remove tags on one or many units, as the units list\u0027s bulk \u0022Add tags\u0022 \/ \u0022Remove tags\u0022 do. Body:\nadd? (tag names), remove? (tag names), and which units: units? (ids), or a filter: q? (name \/ address),\ntag? (units with this tag), has_balance? (true: units that owe), all? (true: every unit). Tag names match\nexisting tags case-insensitively; new names create a tag; a unit\u0027s other tags are never touched. More than 25\nunits: the first call answers status \u0022needs_confirmation\u0022 with the count, a sample and commit_token, and\nchanges nothing; call again with the same body plus commit_token to apply.\n\nRequired scopes: units:write","x-required-scopes":["units:write"]}},"\/communities\/{community}\/units\/{id}":{"patch":{"operationId":"api_v1_unit_update","summary":"Edit a unit. Body: any of title, address1, address2, city, state, zip, add_tags (tag names to add; the unit\u0027s","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit a unit. Body: any of title, address1, address2, city, state, zip, add_tags (tag names to add; the unit\u0027s\nother tags stay), remove_tags (tag names to take off), tags (REPLACES ALL the unit\u0027s tags; only when that is\nreally wanted). Tag names match the community\u0027s existing tags case-insensitively; new names create a tag, as\non the dashboard. Absent fields are left as they are; the starting balance cannot change (post a payment or an\ninvoice instead). To tag many units at once use POST \/units\/tags.\n\nRequired scopes: units:write","x-required-scopes":["units:write"]},"delete":{"operationId":"api_v1_unit_delete","summary":"Move a unit to the trash (scheduled for deletion; recoverable from the dashboard). Its owners are unlinked.","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Move a unit to the trash (scheduled for deletion; recoverable from the dashboard). Its owners are unlinked.\n\nRequired scopes: units:write","x-required-scopes":["units:write"]},"get":{"operationId":"api_v1_unit","summary":"Unit","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"x-required-scopes":["units:read"],"description":"Required scopes: units:read"}},"\/communities\/{community}\/units\/{id}\/ledger":{"get":{"operationId":"api_v1_unit_ledger","summary":"The unit\u0027s ledger, oldest first (running balance). ?from= \/ ?to= dates (inclusive). Needs units:read + invoices:read.","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The unit\u0027s ledger, oldest first (running balance). ?from= \/ ?to= dates (inclusive). Needs units:read + invoices:read.\n\nRequired scopes: units:read, invoices:read","x-required-scopes":["units:read","invoices:read"]}},"\/communities\/{community}\/units\/{id}\/transfer-ownership":{"post":{"operationId":"api_v1_unit_transfer_ownership","summary":"Transfer ownership of a unit (the dashboard\u0027s \u0022Transfer ownership\u0022): replace some or all owners with existing","tags":["Units"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Transfer ownership of a unit (the dashboard\u0027s \u0022Transfer ownership\u0022): replace some or all owners with existing\ncontacts and\/or new people, in one transaction. Body: effective_date (today or earlier), reason\n(sale|inheritance|correction|other), notes?, previous_owners? (contact ids of current owners leaving; the\nothers stay), existing_owners? (contact ids of this community becoming owners), new_owners? (list of\n{first_name, last_name, email?, phone?}), send_welcome_email? (default false). Tenants are never touched; the\nbalance stays with the unit; open collections cases are suspended for review. Needs units:write + contacts:write.\n\nRequired scopes: units:write, contacts:write","x-required-scopes":["units:write","contacts:write"]}},"\/communities\/{community}\/vendors":{"post":{"operationId":"api_v1_vendor_create","summary":"Create a vendor. Body: name, category, status? (active|inactive, default active), website?, contact_name?","tags":["Vendors"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a vendor. Body: name, category, status? (active|inactive, default active), website?, contact_name?\n(primary contact\u0027s full name), contact_email?, contact_phone?, address1?, address2?, city?, state?, zip?,\ncountry? (2 letters, default US), notes?, coi_expiration_date?, payment_method? (ACH Transfer|Check|Credit\nCard|Wire Transfer|Other), tax_id?, has_w9_on_file?, is_1099_vendor?\n\nRequired scopes: vendors:write","x-required-scopes":["vendors:write"]},"get":{"operationId":"api_v1_vendors","summary":"By name. ?q= name\/category\/email search, ?category= exact category, ?status=active|inactive,","tags":["Vendors"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"By name. ?q= name\/category\/email search, ?category= exact category, ?status=active|inactive,\n?coi_expires_before=YYYY-MM-DD (vendors whose COI expires before that date, expired ones included).\n\nRequired scopes: vendors:read","x-required-scopes":["vendors:read"]}},"\/communities\/{community}\/vendors\/{id}":{"patch":{"operationId":"api_v1_vendor_update","summary":"Edit a vendor. Body: any of name, category, status, website, contact_name, contact_email, contact_phone,","tags":["Vendors"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit a vendor. Body: any of name, category, status, website, contact_name, contact_email, contact_phone,\naddress1, address2, city, state, zip, country, notes, coi_expiration_date, payment_method, tax_id, has_w9_on_file,\nis_1099_vendor. Absent fields are left as they are; contact_* update the primary contact (created when missing).\n\nRequired scopes: vendors:write","x-required-scopes":["vendors:write"]},"delete":{"operationId":"api_v1_vendor_delete","summary":"Delete a vendor (soft delete, as the dashboard). Its work orders and payments are kept.","tags":["Vendors"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delete a vendor (soft delete, as the dashboard). Its work orders and payments are kept.\n\nRequired scopes: vendors:write","x-required-scopes":["vendors:write"]},"get":{"operationId":"api_v1_vendor","summary":"With contacts, documents (metadata), recent work orders and recent work order payments","tags":["Vendors"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"With contacts, documents (metadata), recent work orders and recent work order payments\n\nRequired scopes: vendors:read","x-required-scopes":["vendors:read"]}},"\/communities\/{community}\/violation-rules":{"get":{"operationId":"api_v1_violation_rules","summary":"Rules acting on the community. ?status=draft|pending_review|active|paused|needs_attention|invalid,","tags":["Violation rules"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Rules acting on the community. ?status=draft|pending_review|active|paused|needs_attention|invalid,\n?scope=community|all_communities, ?q= name \/ description search.\n\nRequired scopes: violations:read","x-required-scopes":["violations:read"]}},"\/communities\/{community}\/violation-rules\/{id}":{"get":{"operationId":"api_v1_violation_rule","summary":"One rule: what it matches, its actions, daily caps, last run and the last 7 days of activity","tags":["Violation rules"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"One rule: what it matches, its actions, daily caps, last run and the last 7 days of activity\n\nRequired scopes: violations:read","x-required-scopes":["violations:read"]}},"\/communities\/{community}\/violation-templates":{"get":{"operationId":"api_v1_violation_templates","summary":"Templates usable in the community, A-Z: name, defaults (description, deadline_days, channels,","tags":["Violation templates"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Templates usable in the community, A-Z: name, defaults (description, deadline_days, channels,\nletter_mailing_class), the repeat-offense ladder (lookback_days, ladder summary, steps). ?q= name \/ description\nsearch, ?scope=community|account.\n\nRequired scopes: violations:read","x-required-scopes":["violations:read"]}},"\/communities\/{community}\/violation-templates\/{id}":{"get":{"operationId":"api_v1_violation_template","summary":"One template with its defaults and repeat-offense ladder","tags":["Violation templates"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"One template with its defaults and repeat-offense ladder\n\nRequired scopes: violations:read","x-required-scopes":["violations:read"]}},"\/communities\/{community}\/violations":{"post":{"operationId":"api_v1_violation_create","summary":"Create a violation (as the dashboard\u0027s violation form). Body: unit (id), title? (required without template_id),","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a violation (as the dashboard\u0027s violation form). Body: unit (id), title? (required without template_id),\ndescription?, reported_date? (default today), resolution_deadline? (default in 14 days), fine_amount? +\nfine_due_date? (issues the fine invoice), notify_email? (default true), notify_sms?, notify_letter? +\nletter_mailing_class? + letter_confirmed_cost? (a paid letter: the cost must be confirmed), request? (a request id:\nlinks the violation as its follow-up), template_id? (a violation template id, see \/violation-templates),\noverride_reason? (with template_id: why fine_amount differs from the template\u0027s fine). At least one notification\nchannel is required, as on the dashboard.\nWith template_id the template fills every field the caller leaves out (title, description, resolution_deadline =\ntoday + its deadline days, notify_email \/ notify_sms \/ notify_letter from its channels, letter_mailing_class) and\napplies its repeat-offense ladder: the offense number is computed here from the unit\u0027s earlier violations of the\ntemplate within its lookback, and without fine_amount the step\u0027s fine is invoiced (a hearing-required step invoices\nnothing: the case moves to Hearing Scheduled and the fine is only proposed; a fine_amount \u003E 0 on such a step is\nrefused with 422 on fine_amount). A fine_amount (or \u00220\u0022 for no fine)\ndifferent from the step\u0027s is recorded as an override, with override_reason in the case history. The answer\ncarries template, offense_number and ladder_step.\n\nRequired scopes: violations:write","x-required-scopes":["violations:write"]},"get":{"operationId":"api_v1_violations","summary":"?q= (title, number \u0022V-12\u0022, unit, owner name), ?status=\u003Cname\u003E, ?open=true|false (active \/ resolved),","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"?q= (title, number \u0022V-12\u0022, unit, owner name), ?status=\u003Cname\u003E, ?open=true|false (active \/ resolved),\n?overdue=true (active and past the resolution deadline), ?unit=\u003Cunit id\u003E, ?reported_from= \/ ?reported_to=\n(YYYY-MM-DD). Newest first. Each row has template, offense_number and ladder_step (null without a template).\n\nRequired scopes: violations:read","x-required-scopes":["violations:read"]}},"\/communities\/{community}\/violations\/escalation-preview":{"get":{"operationId":"api_v1_violation_escalation_preview","summary":"What reporting a violation of a template on a unit would do, without creating anything (the dashboard form\u0027s live","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"What reporting a violation of a template on a unit would do, without creating anything (the dashboard form\u0027s live\nresult): which offense it is within the template\u0027s lookback, the earlier violations counted, the ladder step, the\nfine it invoices (or proposes, when the step requires a hearing) and the status the case moves to. ?unit= (unit id,\nrequired), ?template_id= (violation template id, required), ?reported_date= (YYYY-MM-DD, default today).\n\nRequired scopes: violations:read","x-required-scopes":["violations:read"]}},"\/communities\/{community}\/violations\/{id}":{"patch":{"operationId":"api_v1_violation_update","summary":"Edit: any of title, description (null or \u0022\u0022 removes it), resolution_deadline (today or later, at most 5 years","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit: any of title, description (null or \u0022\u0022 removes it), resolution_deadline (today or later, at most 5 years\nahead) + deadline_reason?, assignee (staff id, \u0022me\u0022, or null to unassign), committee (committee id, or null to\nremove it). Absent fields are left as they are. A\nresolved violation is read-only until reopened. Nothing is sent to the owner.\n\nRequired scopes: violations:write","x-required-scopes":["violations:write"]},"delete":{"operationId":"api_v1_violation_delete","summary":"Delete the violation (soft delete, as on the dashboard). Its fine invoices are not touched.","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delete the violation (soft delete, as on the dashboard). Its fine invoices are not touched.\n\nRequired scopes: violations:write","x-required-scopes":["violations:write"]},"get":{"operationId":"api_v1_violation","summary":"The violation with its fines, notices sent (email \/ SMS \/ letters), evidence names and newest activity. A violation","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The violation with its fines, notices sent (email \/ SMS \/ letters), evidence names and newest activity. A violation\nreported from a template also carries template {id, name}, offense_number and ladder_step (the step applied:\noffense_number, fine_amount, fine_due_days, requires_hearing, proposed_fine while a hearing-required fine is not\ninvoiced yet); all null without a template.\n\nRequired scopes: violations:read","x-required-scopes":["violations:read"]}},"\/communities\/{community}\/violations\/{id}\/activity":{"get":{"operationId":"api_v1_violation_activity","summary":"The violation\u0027s activity, oldest first within a page; ?cursor= (activity_next_cursor \/ next_cursor) walks back","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The violation\u0027s activity, oldest first within a page; ?cursor= (activity_next_cursor \/ next_cursor) walks back\n\nRequired scopes: violations:read","x-required-scopes":["violations:read"]}},"\/communities\/{community}\/violations\/{id}\/attachments":{"post":{"operationId":"api_v1_violation_attachments","summary":"Attach files to a violation. Body: files? (list of {filename, content_base64}; at most 10 files, 10 MB each and","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Attach files to a violation. Body: files? (list of {filename, content_base64}; at most 10 files, 10 MB each and\n45 MB together), note? (an internal note saved with the files). Without files the answer is an upload_url the\nuser opens on their phone to add the files (30 minutes, single use).\n\nRequired scopes: violations:write","x-required-scopes":["violations:write"]}},"\/communities\/{community}\/violations\/{id}\/fines":{"post":{"operationId":"api_v1_violation_fine","summary":"Issue a fine: an invoice to the unit (the owner gets the invoice email), recorded on the violation, which moves","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Issue a fine: an invoice to the unit (the owner gets the invoice email), recorded on the violation, which moves\nto fined when it is earlier in the process. Body: amount, due_date? (default today), reason?, notes?,\nnotify_email? (also email the owners a fine notice), force_email? (send that notice even though an email notice\nwent out in the last 24 hours; without it such a call is refused with 409 and nothing is issued).\n\nRequired scopes: violations:write","x-required-scopes":["violations:write"]}},"\/communities\/{community}\/violations\/{id}\/notes":{"post":{"operationId":"api_v1_violation_note","summary":"Add an internal note (staff only: the owner never sees it). Allowed on resolved violations too. Body: text.","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Add an internal note (staff only: the owner never sees it). Allowed on resolved violations too. Body: text.\n\nRequired scopes: violations:write","x-required-scopes":["violations:write"]}},"\/communities\/{community}\/violations\/{id}\/notices":{"post":{"operationId":"api_v1_violation_notice","summary":"Send the owner a notice on one channel, recorded on the violation. Body: channel (email|sms|letter), message?","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Send the owner a notice on one channel, recorded on the violation. Body: channel (email|sms|letter), message?\n(default: the standard notice text; supports [[variables]] such as [[firstName]]), format? (text|html, default text), subject? (email;\ndefault \u0022Violation Notice: \u003Ctitle\u003E\u0022), mailing_class? (letter; default first class), confirmed_cost? (letter:\nrequired, the exact cost \u2014 a call without it answers 422 with the cost), force? (send even though a notice on this\nchannel went out in the last 24 hours; otherwise 409). Answers 201 when sent, 202 when a letter may have gone out\nbut could not be confirmed (check the notices before retrying).\n\nRequired scopes: violations:write","x-required-scopes":["violations:write"]}},"\/communities\/{community}\/violations\/{id}\/status":{"post":{"operationId":"api_v1_violation_status","summary":"Change the status. Body: status (pending|in_review|awaiting_compliance|hearing_scheduled|fined|lien|legal|","tags":["Violations"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Change the status. Body: status (pending|in_review|awaiting_compliance|hearing_scheduled|fined|lien|legal|\nresolved), note? (required to reopen a resolved violation and to move into lien or legal), expected_status?\n(refused with 409 if the violation is no longer in that status). Resolving emails the owners the \u0022violation\nresolved\u0022 email (once a day), as on the dashboard.\n\nRequired scopes: violations:write","x-required-scopes":["violations:write"]}},"\/communities\/{community}\/votes":{"post":{"operationId":"api_v1_vote_create","summary":"Create a vote with its questions in one call (the dashboard\u0027s vote wizard). It is saved as a draft unless open is","tags":["Votes"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a vote with its questions in one call (the dashboard\u0027s vote wizard). It is saved as a draft unless open is\ntrue, which sends it to the voters at once (every eligible voter is emailed a ballot, as the wizard\u0027s last step).\nBody: title, description?, type (board|committee|property_owners: who votes), committee? (committee id, required\nfor a committee vote: GET \/committees), questions (list of {text, type: yes_no|single_choice, options?: list of\n2-50 choices for single_choice, required?: default true}), starts_at? (ISO 8601 date-time; without an offset the\ncommunity\u0027s local time), ends_at?, allow_anonymous?, allow_abstain?, require_quorum?, quorum_percentage? (0-100,\nrequired with require_quorum), open? (default false)\n\nRequired scopes: votes:write","x-required-scopes":["votes:write"]},"get":{"operationId":"api_v1_votes","summary":"Newest first. ?status=draft|active|closed, ?type=board|committee|property_owners, ?q= title\/description search","tags":["Votes"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Newest first. ?status=draft|active|closed, ?type=board|committee|property_owners, ?q= title\/description search\n\nRequired scopes: votes:read","x-required-scopes":["votes:read"]}},"\/communities\/{community}\/votes\/{id}":{"patch":{"operationId":"api_v1_vote_update","summary":"Edit a draft vote (the wizard allows editing until it is sent). Body: any of title, description, type, committee,","tags":["Votes"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit a draft vote (the wizard allows editing until it is sent). Body: any of title, description, type, committee,\nquestions (replaces all of them), starts_at, ends_at, allow_anonymous, allow_abstain, require_quorum,\nquorum_percentage. Absent fields are left as they are. 409 once the vote was sent. To send it: POST \/votes\/{id}\/open.\n\nRequired scopes: votes:write","x-required-scopes":["votes:write"]},"delete":{"operationId":"api_v1_vote_delete","summary":"Delete the vote (soft delete, as on the dashboard).","tags":["Votes"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delete the vote (soft delete, as on the dashboard).\n\nRequired scopes: votes:write","x-required-scopes":["votes:write"]},"get":{"operationId":"api_v1_vote","summary":"The vote with its questions and result tallies (no individual ballots)","tags":["Votes"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The vote with its questions and result tallies (no individual ballots)\n\nRequired scopes: votes:read","x-required-scopes":["votes:read"]}},"\/communities\/{community}\/votes\/{id}\/close":{"post":{"operationId":"api_v1_vote_close","summary":"Close an open vote: no more ballots are accepted.","tags":["Votes"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Close an open vote: no more ballots are accepted.\n\nRequired scopes: votes:write","x-required-scopes":["votes:write"]}},"\/communities\/{community}\/votes\/{id}\/open":{"post":{"operationId":"api_v1_vote_open","summary":"Open a draft vote: it becomes active and the eligible voters are emailed their ballot. Only once.","tags":["Votes"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Open a draft vote: it becomes active and the eligible voters are emailed their ballot. Only once.\n\nRequired scopes: votes:write","x-required-scopes":["votes:write"]}},"\/communities\/{community}\/work-orders":{"post":{"operationId":"api_v1_work_order_create","summary":"Create a work order. Body: title, description?, unit? (id; absent \/ null = common area), vendor? (id), priority?","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Create a work order. Body: title, description?, unit? (id; absent \/ null = common area), vendor? (id), priority?\n(low|medium|high|urgent, default medium), status? (new|assigned|in_progress|awaiting_payment; assigned needs a\nvendor; default new), scheduled_at? (YYYY-MM-DD or YYYY-MM-DDTHH:MM, community time), estimated_cost?,\nnotify_vendor? \/ notify_board? (email the vendor \/ the board members about it; default false).\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]},"get":{"operationId":"api_v1_work_orders","summary":"Newest first. ?q= number (\u0022WO-12\u0022) \/ title \/ unit \/ vendor \/ description search, ?status= and ?priority= one or","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Newest first. ?q= number (\u0022WO-12\u0022) \/ title \/ unit \/ vendor \/ description search, ?status= and ?priority= one or\nmore comma-separated keys, ?vendor=\u003Cvendor id\u003E|none, ?unit=\u003Cunit id\u003E, ?open=true|false, ?overdue=true,\n?created_from= \/ ?created_to= and ?scheduled_from= \/ ?scheduled_to= dates (inclusive, community-local days).\nThe query is the dashboard list\u0027s (WorkOrderRepository::createListQueryBuilder()).\n\nRequired scopes: work_orders:read","x-required-scopes":["work_orders:read"]}},"\/communities\/{community}\/work-orders\/{id}":{"patch":{"operationId":"api_v1_work_order_update","summary":"Edit: any of title, description, unit (null = common area), vendor (null removes it), priority, scheduled_at","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Edit: any of title, description, unit (null = common area), vendor (null removes it), priority, scheduled_at\n(null clears it), estimated_cost (null clears it), completion_notes. Absent fields are left as they are; all of\nit in one locked transaction. A completed \/ cancelled work order only takes completion_notes until reopened.\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]},"delete":{"operationId":"api_v1_work_order_delete","summary":"Delete the work order (soft delete, as on the dashboard). Its payments are not touched.","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Delete the work order (soft delete, as on the dashboard). Its payments are not touched.\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]},"get":{"operationId":"api_v1_work_order","summary":"With payments, documents (metadata), and the most recent history events","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"With payments, documents (metadata), and the most recent history events\n\nRequired scopes: work_orders:read","x-required-scopes":["work_orders:read"]}},"\/communities\/{community}\/work-orders\/{id}\/attachments":{"post":{"operationId":"api_v1_work_order_attachments","summary":"Attach files to a work order (internal: never shared with the vendor). Body: files? (list of {filename,","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Attach files to a work order (internal: never shared with the vendor). Body: files? (list of {filename,\ncontent_base64}; at most 10 files, 10 MB each and 45 MB together), note? (an internal note). Without files the\nanswer is an upload_url the user opens on their phone to add the files (30 minutes, single use).\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]}},"\/communities\/{community}\/work-orders\/{id}\/history":{"get":{"operationId":"api_v1_work_order_history","summary":"The full history, oldest first","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/limit"},{"$ref":"#\/components\/parameters\/cursor"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Page"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"The full history, oldest first\n\nRequired scopes: work_orders:read","x-required-scopes":["work_orders:read"]}},"\/communities\/{community}\/work-orders\/{id}\/notes":{"post":{"operationId":"api_v1_work_order_note","summary":"Add an internal note (staff only). Allowed on closed work orders too. Body: text.","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Add an internal note (staff only). Allowed on closed work orders too. Body: text.\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]}},"\/communities\/{community}\/work-orders\/{id}\/payments":{"post":{"operationId":"api_v1_work_order_payment_create","summary":"Record a payment made to the vendor (bookkeeping only: nothing is paid by this call). Body: amount, paid_date","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Record a payment made to the vendor (bookkeeping only: nothing is paid by this call). Body: amount, paid_date\n(default today), method (check|credit_card|debit_card|cash|ach|wire|other), notes?. Updates the actual cost.\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]}},"\/communities\/{community}\/work-orders\/{id}\/payments\/{payment}":{"patch":{"operationId":"api_v1_work_order_payment_update","summary":"Correct a manual payment: any of amount, paid_date, method, notes (null clears). Linked \/ cheque payments are refused.","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"payment","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Correct a manual payment: any of amount, paid_date, method, notes (null clears). Linked \/ cheque payments are refused.\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]},"delete":{"operationId":"api_v1_work_order_payment_delete","summary":"Remove a manual payment recorded by mistake (an audit history row is kept). Linked \/ cheque payments are refused.","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"payment","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"Remove a manual payment recorded by mistake (an audit history row is kept). Linked \/ cheque payments are refused.\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]}},"\/communities\/{community}\/work-orders\/{id}\/status":{"post":{"operationId":"api_v1_work_order_status","summary":"Change the status. Body: status (new|assigned|in_progress|awaiting_payment|completed|cancelled), note?","tags":["Work orders"],"parameters":[{"name":"community","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"$ref":"#\/components\/parameters\/idempotencyKey"}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"201":{"description":"Created","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Written"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"409":{"$ref":"#\/components\/responses\/Problem"},"422":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object"}}}},"description":"Change the status. Body: status (new|assigned|in_progress|awaiting_payment|completed|cancelled), note?\n(required to cancel and to reopen a completed \/ cancelled work order), expected_status? (refused with 409 if\nthe work order is no longer in that status). Assigned needs a vendor.\n\nRequired scopes: work_orders:write","x-required-scopes":["work_orders:write"]}},"\/me":{"get":{"operationId":"api_v1_me","summary":"Me","tags":["Me"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}}}},"\/openapi.json":{"get":{"operationId":"api_v1_openapi","summary":"OpenAPI 3.1 description of this API, generated from the routes (any valid token)","tags":["Openapi.json"],"parameters":[],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Item"}}}},"400":{"$ref":"#\/components\/responses\/Problem"},"401":{"$ref":"#\/components\/responses\/Problem"},"403":{"$ref":"#\/components\/responses\/Problem"},"404":{"$ref":"#\/components\/responses\/Problem"},"429":{"$ref":"#\/components\/responses\/Problem"}},"description":"OpenAPI 3.1 description of this API, generated from the routes (any valid token)"}}},"webhooks":{"request.created":{"post":{"summary":"A request was created","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"request.status_changed":{"post":{"summary":"A request changed status","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"request.deleted":{"post":{"summary":"A request was deleted","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"violation.created":{"post":{"summary":"A violation was created","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"violation.status_changed":{"post":{"summary":"A violation changed status","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"violation.resolved":{"post":{"summary":"A violation was resolved","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"violation.deleted":{"post":{"summary":"A violation was deleted","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"work_order.created":{"post":{"summary":"A work order was created","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"work_order.status_changed":{"post":{"summary":"A work order changed status","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"work_order.deleted":{"post":{"summary":"A work order was deleted","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"invoice.created":{"post":{"summary":"An invoice was created","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"invoice.payment_received":{"post":{"summary":"A payment was recorded on an invoice","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"invoice.cancelled":{"post":{"summary":"An invoice was cancelled","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}},"invoice.deleted":{"post":{"summary":"An invoice was deleted","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/WebhookEvent"}}}},"responses":{"2XX":{"description":"Received. Anything else is retried for about a day and a half."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Personal access token (phoa_pat_...)"},"oauth2":{"type":"oauth2","description":"OAuth 2.1, authorization code with PKCE (S256). Discovery: \/.well-known\/oauth-authorization-server","flows":{"authorizationCode":{"authorizationUrl":"https:\/\/app.perfecthoa.com\/oauth\/authorize","tokenUrl":"https:\/\/app.perfecthoa.com\/oauth\/token","refreshUrl":"https:\/\/app.perfecthoa.com\/oauth\/token","scopes":{"communities:read":"Read Communities","units:read":"Read Units","units:write":"Change Units (includes read)","contacts:read":"Read Contacts","contacts:write":"Change Contacts (includes read)","invoices:read":"Read Invoices, payments \u0026 ledger","invoices:write":"Change Invoices, payments \u0026 ledger (includes read)","banking:read":"Read Bank accounts \u0026 transactions","banking:write":"Change Bank accounts \u0026 transactions (includes read)","budgets:read":"Read Budgets \u0026 reserves","budgets:write":"Change Budgets \u0026 reserves (includes read)","requests:read":"Read Requests","requests:write":"Change Requests (includes read)","violations:read":"Read Violations","violations:write":"Change Violations (includes read)","work_orders:read":"Read Work orders","work_orders:write":"Change Work orders (includes read)","vendors:read":"Read Vendors","vendors:write":"Change Vendors (includes read)","documents:read":"Read Documents","documents:write":"Change Documents (includes read)","communications:read":"Read Communications","communications:write":"Change Communications (includes read)","meetings:read":"Read Meetings","meetings:write":"Change Meetings (includes read)","votes:read":"Read Votes","votes:write":"Change Votes (includes read)","events:read":"Read Events \u0026 amenities","events:write":"Change Events \u0026 amenities (includes read)","reports:read":"Read Reports"}}}}},"schemas":{"Problem":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"required_scope":{"type":"string","description":"On 403 insufficient_scope"}}},"Item":{"type":"object","properties":{"data":{"type":"object"}}},"Written":{"type":"object","properties":{"data":{"type":"object"},"warnings":{"type":"array","items":{"type":"string"}}}},"WebhookEvent":{"type":"object","description":"Signed with the PerfectHOA-Signature header: t=\u003Cunix time\u003E,v1=\u003CHMAC-SHA256 of \u0022t.body\u0022 with the endpoint secret\u003E.","properties":{"id":{"type":"string","description":"evt_...: the same for every endpoint; dedupe on it"},"type":{"type":"string"},"api_version":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"community":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}}},"data":{"type":"object","properties":{"object":{"type":"object","description":"object kind, id, status, unit_id and the API url of the record (fetch it for details)"}}}}},"Page":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object"}},"next_cursor":{"type":["string","null"]}}}},"responses":{"Problem":{"description":"Error (problem+json)","content":{"application\/problem+json":{"schema":{"$ref":"#\/components\/schemas\/Problem"}}}}},"parameters":{"limit":{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},"cursor":{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor of the previous page"},"idempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":255},"description":"Any unique string (a UUID): a retry with the same key and body returns the first response instead of repeating the write. Kept 24 hours."}}}}