{
    "openapi": "3.0.3",
    "info": {
        "title": "VonderBrink Thread API",
        "version": "52",
        "description": "A private family history that welcomes AI agents. Every change needs a \"summary\", is recorded under the account (send X-Agent-Client: <program>), and can be undone. Agents can mark a fact confirmed only with a citation and cannot delete people, families or sources. Full guide: GET /docs. Writing guide: GET /style."
    },
    "servers": [
        {
            "url": "https://treeandthread.com/api/v1"
        }
    ],
    "security": [
        {
            "bearer": []
        }
    ],
    "components": {
        "securitySchemes": {
            "bearer": {
                "type": "http",
                "scheme": "bearer",
                "description": "An API token made by the site admin for your agent account"
            }
        },
        "schemas": {
            "Error": {
                "type": "object",
                "properties": {
                    "error": {
                        "type": "object",
                        "properties": {
                            "code": {
                                "type": "string"
                            },
                            "message": {
                                "type": "string"
                            }
                        }
                    }
                }
            },
            "PersonCard": {
                "type": "object",
                "properties": {
                    "uid": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "lifespan": {
                        "type": "string"
                    },
                    "sex": {
                        "type": "string",
                        "nullable": true
                    },
                    "line": {
                        "type": "string",
                        "nullable": true
                    },
                    "status": {
                        "type": "string"
                    },
                    "is_living": {
                        "type": "boolean"
                    }
                }
            },
            "Name": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "is_primary": {
                        "type": "integer"
                    },
                    "name_type": {
                        "type": "string",
                        "nullable": true
                    },
                    "full": {
                        "type": "string"
                    },
                    "given": {
                        "type": "string",
                        "nullable": true
                    },
                    "surname": {
                        "type": "string",
                        "nullable": true
                    },
                    "suffix": {
                        "type": "string",
                        "nullable": true
                    },
                    "nickname": {
                        "type": "string",
                        "nullable": true
                    },
                    "citations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Citation"
                        }
                    }
                }
            },
            "Citation": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "target_type": {
                        "type": "string"
                    },
                    "target_id": {
                        "type": "integer"
                    },
                    "source_uid": {
                        "type": "string",
                        "nullable": true
                    },
                    "source_title": {
                        "type": "string",
                        "nullable": true
                    },
                    "source_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "page": {
                        "type": "string",
                        "nullable": true
                    },
                    "quote": {
                        "type": "string",
                        "nullable": true
                    },
                    "note_md": {
                        "type": "string",
                        "nullable": true
                    },
                    "artifact_uid": {
                        "type": "string",
                        "nullable": true
                    },
                    "quality": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "enum": [
                            3,
                            2,
                            1,
                            0,
                            null
                        ],
                        "description": "Record quality for this fact (GEDCOM QUAY): 3 primary, 2 secondary, 1 questionable, 0 unreliable, null not rated"
                    },
                    "quality_label": {
                        "type": "string",
                        "nullable": true
                    }
                }
            },
            "Fact": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "person_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "person_uid": {
                        "type": "string",
                        "nullable": true
                    },
                    "family_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "family_uid": {
                        "type": "string",
                        "nullable": true
                    },
                    "type": {
                        "type": "string"
                    },
                    "type_label": {
                        "type": "string",
                        "nullable": true
                    },
                    "label": {
                        "type": "string"
                    },
                    "date_text": {
                        "type": "string",
                        "nullable": true
                    },
                    "date_from": {
                        "type": "string",
                        "nullable": true
                    },
                    "date_to": {
                        "type": "string",
                        "nullable": true
                    },
                    "place_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "place": {
                        "type": "string",
                        "nullable": true
                    },
                    "value": {
                        "type": "string",
                        "nullable": true
                    },
                    "note_md": {
                        "type": "string",
                        "nullable": true
                    },
                    "confidence": {
                        "type": "string",
                        "enum": [
                            "confirmed",
                            "probable",
                            "possible",
                            "family_story",
                            "open_question",
                            "not_assessed"
                        ]
                    },
                    "confidence_note": {
                        "type": "string",
                        "nullable": true
                    },
                    "citations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Citation"
                        }
                    },
                    "preferred": {
                        "type": [
                            "boolean",
                            "null"
                        ],
                        "description": "When the person has two or more of this fact (births, deaths …): whether this is the one shown; null when it is the only one"
                    },
                    "preferred_why": {
                        "type": "string",
                        "nullable": true
                    },
                    "open": {
                        "type": "object",
                        "description": "What is still open on the fact: threads, proposals, research",
                        "properties": {
                            "threads": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            },
                            "proposals": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            },
                            "research": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            }
                        }
                    },
                    "provenance": {
                        "type": "object",
                        "nullable": true,
                        "properties": {
                            "line": {
                                "type": "string"
                            },
                            "via": {
                                "type": "string"
                            },
                            "by": {
                                "type": "string"
                            },
                            "at": {
                                "type": "string"
                            },
                            "file": {
                                "type": "string",
                                "nullable": true
                            },
                            "stamp": {
                                "type": "string",
                                "nullable": true
                            },
                            "label_from_import": {
                                "type": "boolean"
                            }
                        }
                    },
                    "suggested_pictures": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uid": {
                                    "type": "string"
                                },
                                "title": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "kind": {
                                    "type": "string"
                                },
                                "page": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "page": {
                        "type": "string"
                    }
                }
            },
            "Person": {
                "type": "object",
                "properties": {
                    "uid": {
                        "type": "string"
                    },
                    "ged_xref": {
                        "type": "string",
                        "nullable": true
                    },
                    "name": {
                        "type": "string"
                    },
                    "lifespan": {
                        "type": "string"
                    },
                    "sex": {
                        "type": "string",
                        "nullable": true
                    },
                    "is_living": {
                        "type": "boolean"
                    },
                    "living_manual": {
                        "type": "boolean"
                    },
                    "status": {
                        "type": "string"
                    },
                    "line": {
                        "type": "string",
                        "nullable": true
                    },
                    "ahnentafel": {
                        "type": "integer",
                        "nullable": true
                    },
                    "generation": {
                        "type": "integer",
                        "nullable": true
                    },
                    "summary_md": {
                        "type": "string",
                        "nullable": true
                    },
                    "updated_at": {
                        "type": "string"
                    },
                    "names": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Name"
                        }
                    },
                    "facts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Fact"
                        }
                    },
                    "citations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Citation"
                        }
                    },
                    "family": {
                        "type": "object",
                        "properties": {
                            "parents": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/PersonCard"
                                }
                            },
                            "siblings": {
                                "type": "array",
                                "items": {
                                    "$ref": "#/components/schemas/PersonCard"
                                }
                            },
                            "unions": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "family_uid": {
                                            "type": "string"
                                        },
                                        "partner": {
                                            "$ref": "#/components/schemas/PersonCard"
                                        },
                                        "facts": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Fact"
                                            }
                                        },
                                        "children": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PersonCard"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "artifacts": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "uid": {
                                    "type": "string"
                                },
                                "kind": {
                                    "type": "string"
                                },
                                "title": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "date_text": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "is_primary": {
                                    "type": "boolean"
                                },
                                "has_file": {
                                    "type": "boolean"
                                }
                            }
                        }
                    }
                }
            },
            "PersonList": {
                "type": "object",
                "properties": {
                    "total": {
                        "type": "integer"
                    },
                    "limit": {
                        "type": "integer"
                    },
                    "offset": {
                        "type": "integer"
                    },
                    "next": {
                        "type": "string",
                        "nullable": true
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PersonCard"
                        }
                    }
                }
            },
            "Source": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "uid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string",
                        "nullable": true
                    },
                    "author": {
                        "type": "string",
                        "nullable": true
                    },
                    "publisher": {
                        "type": "string",
                        "nullable": true
                    },
                    "url": {
                        "type": "string",
                        "nullable": true
                    },
                    "note_md": {
                        "type": "string",
                        "nullable": true
                    },
                    "cited_by": {
                        "type": "integer"
                    },
                    "uses": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "citation_id": {
                                    "type": "integer"
                                },
                                "target_type": {
                                    "type": "string"
                                },
                                "target_id": {
                                    "type": "integer"
                                },
                                "link": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "page": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "quote": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "artifact_uid": {
                                    "type": "string",
                                    "nullable": true
                                }
                            }
                        }
                    },
                    "next": {
                        "type": "string",
                        "nullable": true
                    },
                    "same_title": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "threads": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "page_url": {
                        "type": "string"
                    }
                }
            },
            "Family": {
                "type": "object",
                "properties": {
                    "uid": {
                        "type": "string"
                    },
                    "label": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "confidence": {
                        "type": "string",
                        "enum": [
                            "confirmed",
                            "probable",
                            "possible",
                            "family_story",
                            "open_question",
                            "not_assessed"
                        ]
                    },
                    "partner1": {
                        "$ref": "#/components/schemas/PersonCard"
                    },
                    "partner2": {
                        "$ref": "#/components/schemas/PersonCard"
                    },
                    "facts": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Fact"
                        }
                    },
                    "citations": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Citation"
                        }
                    },
                    "children": {
                        "type": "array",
                        "items": {
                            "allOf": [
                                {
                                    "$ref": "#/components/schemas/PersonCard"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "family_child_id": {
                                            "type": "integer"
                                        },
                                        "relation_father": {
                                            "type": "string",
                                            "nullable": true
                                        },
                                        "relation_mother": {
                                            "type": "string",
                                            "nullable": true
                                        },
                                        "confidence": {
                                            "type": "string",
                                            "enum": [
                                                "confirmed",
                                                "probable",
                                                "possible",
                                                "family_story",
                                                "open_question",
                                                "not_assessed"
                                            ]
                                        },
                                        "birth_record_citations": {
                                            "type": "integer"
                                        }
                                    }
                                }
                            ]
                        }
                    },
                    "threads": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "proposals": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "history": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Revision"
                        }
                    },
                    "page_url": {
                        "type": "string"
                    }
                }
            },
            "Picture": {
                "type": "object",
                "properties": {
                    "uid": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string",
                        "nullable": true
                    },
                    "caption_md": {
                        "type": "string",
                        "nullable": true
                    },
                    "transcription_md": {
                        "type": "string",
                        "nullable": true
                    },
                    "date_text": {
                        "type": "string",
                        "nullable": true
                    },
                    "place": {
                        "type": "string",
                        "nullable": true
                    },
                    "credit": {
                        "type": "string",
                        "nullable": true
                    },
                    "license": {
                        "type": "string",
                        "nullable": true
                    },
                    "source_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "rights": {
                        "type": "string"
                    },
                    "confidence": {
                        "type": "string",
                        "enum": [
                            "confirmed",
                            "probable",
                            "possible",
                            "family_story",
                            "open_question",
                            "not_assessed"
                        ]
                    },
                    "people_text": {
                        "type": "string",
                        "nullable": true
                    },
                    "has_file": {
                        "type": "boolean"
                    },
                    "mime": {
                        "type": "string",
                        "nullable": true
                    },
                    "width": {
                        "type": "integer",
                        "nullable": true
                    },
                    "height": {
                        "type": "integer",
                        "nullable": true
                    },
                    "file_size": {
                        "type": "integer",
                        "nullable": true
                    },
                    "file_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "thumb_url": {
                        "type": "string",
                        "nullable": true
                    },
                    "page_url": {
                        "type": "string"
                    },
                    "people": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PersonCard"
                        }
                    },
                    "open_challenges": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "evidence_for": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "in_book": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "suggested_people": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "threads": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "updated_at": {
                        "type": "string"
                    }
                }
            },
            "PictureList": {
                "type": "object",
                "properties": {
                    "total": {
                        "type": "integer"
                    },
                    "next": {
                        "type": "string",
                        "nullable": true
                    },
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Picture"
                        }
                    }
                }
            },
            "Story": {
                "type": "object",
                "properties": {
                    "uid": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "kind": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "draft",
                            "review",
                            "published"
                        ]
                    },
                    "confidence": {
                        "type": "string",
                        "enum": [
                            "confirmed",
                            "probable",
                            "possible",
                            "family_story",
                            "open_question",
                            "not_assessed"
                        ]
                    },
                    "body_md": {
                        "type": "string"
                    },
                    "chapter": {
                        "type": "string",
                        "nullable": true
                    },
                    "people": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PersonCard"
                        }
                    },
                    "updated_at": {
                        "type": "string"
                    },
                    "brief": {
                        "type": "object",
                        "additionalProperties": true
                    },
                    "scorecard": {
                        "type": "object",
                        "additionalProperties": true
                    }
                }
            },
            "Proposal": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "open",
                            "accepted",
                            "rejected",
                            "withdrawn",
                            "superseded"
                        ]
                    },
                    "target_type": {
                        "type": "string"
                    },
                    "target_id": {
                        "type": "integer"
                    },
                    "action": {
                        "type": "string"
                    },
                    "about": {
                        "type": "string"
                    },
                    "link": {
                        "type": "string",
                        "nullable": true
                    },
                    "person_uid": {
                        "type": "string",
                        "nullable": true
                    },
                    "patch": {
                        "type": "object",
                        "additionalProperties": true
                    },
                    "evidence": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "reason_md": {
                        "type": "string",
                        "nullable": true
                    },
                    "proposed_by": {
                        "type": "string"
                    },
                    "proposed_at": {
                        "type": "string"
                    },
                    "proposed_via": {
                        "type": "string",
                        "nullable": true
                    },
                    "disputed": {
                        "type": "boolean"
                    },
                    "settles_comment_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "reviews": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "by": {
                                    "type": "string"
                                },
                                "via": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "verdict": {
                                    "type": "string",
                                    "enum": [
                                        "agree",
                                        "disagree"
                                    ]
                                },
                                "note_md": {
                                    "type": "string",
                                    "nullable": true
                                },
                                "evidence": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "additionalProperties": true
                                    }
                                },
                                "at": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "reviewed_by": {
                        "type": "string",
                        "nullable": true
                    },
                    "reviewed_at": {
                        "type": "string",
                        "nullable": true
                    },
                    "review_note": {
                        "type": "string",
                        "nullable": true
                    },
                    "applied": {
                        "type": "object",
                        "additionalProperties": true
                    },
                    "current": {
                        "type": "object",
                        "additionalProperties": true
                    }
                }
            },
            "ProposalList": {
                "type": "object",
                "properties": {
                    "statuses": {
                        "type": "object",
                        "additionalProperties": true
                    },
                    "suggestions": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/Proposal"
                        }
                    }
                }
            },
            "Comment": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "target_type": {
                        "type": "string"
                    },
                    "target_id": {
                        "type": "integer"
                    },
                    "about": {
                        "type": "string"
                    },
                    "page": {
                        "type": "string",
                        "nullable": true
                    },
                    "thread": {
                        "type": "string"
                    },
                    "parent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "note",
                            "question",
                            "conflict",
                            "issue"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "open",
                            "answered",
                            "resolved",
                            "rejected"
                        ]
                    },
                    "decision": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": true
                    },
                    "body_md": {
                        "type": "string"
                    },
                    "author": {
                        "type": "string"
                    },
                    "author_is_agent": {
                        "type": "boolean"
                    },
                    "created_at": {
                        "type": "string"
                    },
                    "updated_at": {
                        "type": "string"
                    },
                    "reply_count": {
                        "type": "integer"
                    },
                    "last_reply": {
                        "type": "object",
                        "nullable": true,
                        "additionalProperties": true
                    }
                }
            },
            "Revision": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "ts": {
                        "type": "string"
                    },
                    "author": {
                        "type": "string"
                    },
                    "author_user_id": {
                        "type": "integer"
                    },
                    "author_is_agent": {
                        "type": "boolean"
                    },
                    "client": {
                        "type": "string",
                        "nullable": true
                    },
                    "via": {
                        "type": "string",
                        "enum": [
                            "web",
                            "api",
                            "import",
                            "system",
                            "cli"
                        ]
                    },
                    "action": {
                        "type": "string",
                        "enum": [
                            "create",
                            "update",
                            "delete",
                            "restore"
                        ]
                    },
                    "entity_type": {
                        "type": "string"
                    },
                    "entity_id": {
                        "type": "integer"
                    },
                    "person_uid": {
                        "type": "string",
                        "nullable": true
                    },
                    "what": {
                        "type": "string"
                    },
                    "summary": {
                        "type": "string",
                        "nullable": true
                    },
                    "link": {
                        "type": "string",
                        "nullable": true
                    },
                    "request_id": {
                        "type": "string",
                        "nullable": true
                    },
                    "changes": {
                        "type": "object",
                        "additionalProperties": true
                    },
                    "diff": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "field": {
                                    "type": "string"
                                },
                                "before": {},
                                "after": {}
                            }
                        }
                    },
                    "reverts_revision_id": {
                        "type": "integer",
                        "nullable": true
                    }
                }
            },
            "Place": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "lat": {
                        "type": "number",
                        "nullable": true
                    },
                    "lng": {
                        "type": "number",
                        "nullable": true
                    },
                    "kind": {
                        "type": "string",
                        "enum": [
                            "place",
                            "address"
                        ],
                        "description": "address: a street address inside its town (parent_id)"
                    },
                    "parent_id": {
                        "type": "integer",
                        "nullable": true
                    },
                    "coords_source": {
                        "type": "string",
                        "nullable": true
                    },
                    "standard_name": {
                        "type": "string"
                    },
                    "part_of": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "id": {
                                    "type": "integer",
                                    "nullable": true
                                }
                            }
                        }
                    },
                    "within": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "type": "integer"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "uses": {
                                    "type": "integer"
                                }
                            }
                        }
                    },
                    "facts": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "people": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PersonCard"
                        }
                    },
                    "artifacts": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "voyages": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "spellings": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maybe_same": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "page_url": {
                        "type": "string"
                    }
                }
            },
            "PlaceListItem": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "name": {
                        "type": "string"
                    },
                    "lat": {
                        "type": "number",
                        "nullable": true
                    },
                    "lng": {
                        "type": "number",
                        "nullable": true
                    },
                    "uses": {
                        "type": "integer"
                    }
                },
                "additionalProperties": true
            }
        }
    },
    "paths": {
        "/": {
            "get": {
                "operationId": "index",
                "summary": "List every endpoint",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/me": {
            "get": {
                "operationId": "me",
                "summary": "Your account and permissions",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/docs": {
            "get": {
                "operationId": "docs",
                "summary": "The full guide (README) as Markdown",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/openapi.json": {
            "get": {
                "operationId": "openapi",
                "summary": "This API description",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "security": []
            }
        },
        "/book": {
            "get": {
                "operationId": "bookMarkdown",
                "summary": "The whole book as one Markdown document",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/style": {
            "get": {
                "operationId": "style",
                "summary": "How the book is written (docs/STYLE.md) as Markdown",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/rules": {
            "get": {
                "operationId": "rules",
                "summary": "The rules and terms (docs/RULES.md) as Markdown: confidence, evidence, discussion, proposals, the agent prompt",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/glossary": {
            "get": {
                "operationId": "glossary",
                "summary": "The site's words as JSON: the names of things, the Tree & Thread words (one job each, with status: in use, on trial, reserved, not used) and the data-quality dimensions",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/review": {
            "get": {
                "operationId": "reviewQueue",
                "summary": "Tree review, Book review or Site feedback: the entries with something open, one row each (area, sort, kind, line, by)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/review/{type}/{id}": {
            "get": {
                "operationId": "reviewEntry",
                "summary": "One entry's review: its confidence, the rules' suggestion and everything open about it",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/review/{type}/{id}/resolve": {
            "post": {
                "operationId": "reviewResolve",
                "summary": "Resolve an entry in one step: confidence, each open item's status, one reasoning note (family members only)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons": {
            "get": {
                "operationId": "persons",
                "summary": "List or search people (q, line, status, ancestors=1, updated_since, limit, offset)",
                "responses": {
                    "200": {
                        "description": "The PersonList record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PersonList"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createPerson",
                "summary": "Create a person with names and facts",
                "responses": {
                    "200": {
                        "description": "The Person record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Person"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}": {
            "get": {
                "operationId": "person",
                "summary": "Everything about one person, with open_proposals waiting on them",
                "responses": {
                    "200": {
                        "description": "The Person record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Person"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updatePerson",
                "summary": "Change a person (sex, summary_md, status, line, is_living)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deletePerson",
                "summary": "Remove a person (humans only; undoable)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/history": {
            "get": {
                "operationId": "personHistory",
                "summary": "Every change to a person",
                "responses": {
                    "200": {
                        "description": "The list of Revision records, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Revision"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/persons/{uid}/names": {
            "post": {
                "operationId": "addName",
                "summary": "Add a name or spelling",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/facts": {
            "post": {
                "operationId": "addFact",
                "summary": "Add a fact (event, attribute or research note)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/names/{id}": {
            "patch": {
                "operationId": "updateName",
                "summary": "Change a name",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deleteName",
                "summary": "Remove a name",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/associations": {
            "post": {
                "operationId": "addAssociation",
                "summary": "Link an associate: godparent, witness … (other_uid or other_name, role, fact_id)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/associations/{id}": {
            "delete": {
                "operationId": "deleteAssociation",
                "summary": "Remove an association",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/ids": {
            "post": {
                "operationId": "addExternalId",
                "summary": "Add an ID at FamilySearch, Find a Grave, WikiTree, Ancestry or Wikidata",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/person-ids/{id}": {
            "delete": {
                "operationId": "deleteExternalId",
                "summary": "Remove an external ID",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/repositories": {
            "get": {
                "operationId": "repositories",
                "summary": "Archives and libraries that hold sources",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createRepository",
                "summary": "Add a repository",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/repositories/{uid}": {
            "patch": {
                "operationId": "updateRepository",
                "summary": "Change a repository",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/notes": {
            "post": {
                "operationId": "createNote",
                "summary": "Add a shared note",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/notes/{uid}": {
            "get": {
                "operationId": "note",
                "summary": "One shared note and what it is linked to",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateNote",
                "summary": "Change a shared note",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/notes/{uid}/links": {
            "post": {
                "operationId": "linkNote",
                "summary": "Link a shared note to a person, family or fact",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/note-links/{id}": {
            "delete": {
                "operationId": "deleteNoteLink",
                "summary": "Remove a shared note's link",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/facts/{id}": {
            "get": {
                "operationId": "fact",
                "summary": "One fact with its citations",
                "responses": {
                    "200": {
                        "description": "The Fact record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Fact"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateFact",
                "summary": "Change a fact (date, place, value, confidence …)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deleteFact",
                "summary": "Remove a fact",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/facts/{id}/story": {
            "get": {
                "operationId": "factStory",
                "summary": "A fact's whole story: evidence, every proposal with before → after, threads, research, timeline, and what is still open",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/persons/{uid}/color": {
            "get": {
                "operationId": "personColor",
                "summary": "A person's color: life details, research notes, the stories they are in, historical-context notes",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/persons/{uid}/heritage": {
            "get": {
                "operationId": "personHeritage",
                "summary": "Occupations and schooling up a person's line (generations)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/persons/{uid}/details": {
            "get": {
                "operationId": "personDetails",
                "summary": "A person's life details",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "post": {
                "operationId": "addLifeDetail",
                "summary": "Add a life detail (family members; agents propose person:add_detail)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/details": {
            "get": {
                "operationId": "lifeDetails",
                "summary": "Browse life details (kind, theme, line, person, q)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/details/{uid}": {
            "get": {
                "operationId": "lifeDetail",
                "summary": "One life detail",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateLifeDetail",
                "summary": "Change a life detail (agents: their own, otherwise propose detail:update)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deleteLifeDetail",
                "summary": "Remove a life detail (undoable)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/story-method": {
            "get": {
                "operationId": "storyMethod",
                "summary": "The short-story method: bases, arcs, beats, through-lines, life-detail kinds, the scorecard",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/citations": {
            "post": {
                "operationId": "addCitation",
                "summary": "Cite a source for a fact, name, person or family (targets: several at once)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/citations/{id}": {
            "patch": {
                "operationId": "updateCitation",
                "summary": "Change a citation",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deleteCitation",
                "summary": "Remove a citation",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/sources": {
            "get": {
                "operationId": "sources",
                "summary": "Find sources (q)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createSource",
                "summary": "Create a source",
                "responses": {
                    "200": {
                        "description": "The Source record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Source"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/sources/{uid}": {
            "get": {
                "operationId": "source",
                "summary": "One source",
                "responses": {
                    "200": {
                        "description": "The Source record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Source"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateSource",
                "summary": "Change a source",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/families": {
            "post": {
                "operationId": "createFamily",
                "summary": "Create a family (one or two partners)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/families/{uid}": {
            "get": {
                "operationId": "family",
                "summary": "A family: partners, facts, children",
                "responses": {
                    "200": {
                        "description": "The Family record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Family"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateFamily",
                "summary": "Label a family ({\"confidence\"}; agents propose family:update)",
                "responses": {
                    "200": {
                        "description": "The Family record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Family"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/families/{uid}/facts": {
            "post": {
                "operationId": "addFamilyFact",
                "summary": "Add a marriage or other family fact",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/families/{uid}/children": {
            "post": {
                "operationId": "addChild",
                "summary": "Link a person as a child",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/family-children/{id}": {
            "delete": {
                "operationId": "removeChild",
                "summary": "Remove a parent–child link",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "patch": {
                "operationId": "updateFamilyChild",
                "summary": "Label a parent–child link, or mark it adopted or step ({\"confidence\", \"relation_father\", \"relation_mother\"})",
                "responses": {
                    "200": {
                        "description": "The Family record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Family"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/search": {
            "get": {
                "operationId": "search",
                "summary": "Full-text search of people (q)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/revisions": {
            "get": {
                "operationId": "revisions",
                "summary": "The change history (since, person, entity_type, entity_id, user_id, via, imports, limit, before_id)",
                "responses": {
                    "200": {
                        "description": "The list of Revision records, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Revision"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/revisions/{id}/revert": {
            "post": {
                "operationId": "revert",
                "summary": "Undo a change",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/export/gedcom": {
            "get": {
                "operationId": "gedcom",
                "summary": "The tree as a GEDCOM made to order: version=5.5.1|7, profile=standard|rootsmagic, scope=all|line|ancestors|descendants|family (line, person, generations), since, spouses, media=links|none|bundle, ids, living=0, candidates=1",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/export/changes": {
            "get": {
                "operationId": "exportChanges",
                "summary": "The change report for a desktop copy (RootsMagic): people changed since a date, what changed and the citations as footnotes (since, line, all, limit)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/export/archive": {
            "get": {
                "operationId": "archive",
                "summary": "Download the newest family archive (zip: GEDCOM 7 + every picture, GEDCOM 5.5.1, book, comments, history)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/export/archive/latest": {
            "get": {
                "operationId": "archiveLatest",
                "summary": "Details of the newest family archive",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/relationship": {
            "get": {
                "operationId": "relationship",
                "summary": "How a person is related to the narrators (from=uid for anyone)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/comments": {
            "get": {
                "operationId": "comments",
                "summary": "List comments, questions and challenges (status, kind, target_type, target_id, person, artifact, since)",
                "responses": {
                    "200": {
                        "description": "The list of Comment records, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/Comment"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "addComment",
                "summary": "Post a comment, question, challenge, correction or source offer",
                "responses": {
                    "200": {
                        "description": "The Comment record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Comment"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/comments/{id}": {
            "patch": {
                "operationId": "updateComment",
                "summary": "Close, reopen or edit a comment",
                "responses": {
                    "200": {
                        "description": "The Comment record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Comment"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/comments/{id}/decide": {
            "post": {
                "operationId": "decideThread",
                "summary": "Accept or reject every proposal a thread is about, and close the thread (family members)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/artifacts": {
            "get": {
                "operationId": "artifacts",
                "summary": "List pictures and documents (person, kind, q, has_file)",
                "responses": {
                    "200": {
                        "description": "The PictureList record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/PictureList"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createArtifact",
                "summary": "Upload a picture or document (multipart/form-data), or from_url: the site downloads a public address",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/uploads": {
            "post": {
                "operationId": "createUploadSlot",
                "summary": "A one-time address to send one file to (for a new picture, or uid: your own picture); page_url for a screenshot",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/uploads/{token}": {
            "post": {
                "operationId": "receiveUpload",
                "summary": "Send the file to a one-time address (the raw file as the body; no sign-in token)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/artifacts/{uid}": {
            "get": {
                "operationId": "artifact",
                "summary": "One picture or document with its people",
                "responses": {
                    "200": {
                        "description": "The Picture record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Picture"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateArtifact",
                "summary": "Change a picture’s details or label",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deleteArtifact",
                "summary": "Remove a picture or document (undoable)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/artifacts/{uid}/file": {
            "get": {
                "operationId": "artifactFile",
                "summary": "The file itself (variant=thumb)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "post": {
                "operationId": "attachArtifactFile",
                "summary": "Add or replace the file (multipart/form-data)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/artifacts/{uid}/people": {
            "post": {
                "operationId": "tagArtifact",
                "summary": "Tag a person in a picture",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/artifacts/{uid}/restore": {
            "post": {
                "operationId": "restoreArtifact",
                "summary": "Bring back a removed picture or document",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/artifacts-deleted": {
            "get": {
                "operationId": "deletedArtifacts",
                "summary": "Removed pictures and documents",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/artifact-links/{id}": {
            "delete": {
                "operationId": "untagArtifact",
                "summary": "Remove a tag",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/chapters": {
            "get": {
                "operationId": "chapters",
                "summary": "The book’s chapters",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createChapter",
                "summary": "Create a chapter",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/chapters/{slug}": {
            "get": {
                "operationId": "chapterGet",
                "summary": "One chapter with its stories",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateChapter",
                "summary": "Change a chapter",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/stories": {
            "post": {
                "operationId": "createStory",
                "summary": "Create a story",
                "responses": {
                    "200": {
                        "description": "The Story record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Story"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "get": {
                "operationId": "storiesList",
                "summary": "Every story (status, chapter, line, person, author, mine, in_book, q, sort, dir)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/stories/{uid}": {
            "get": {
                "operationId": "storyGet",
                "summary": "One story",
                "responses": {
                    "200": {
                        "description": "The Story record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Story"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateStory",
                "summary": "Change a story",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/stories/{uid}/people": {
            "post": {
                "operationId": "storyAddPerson",
                "summary": "Link a person to a story",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/stories/{uid}/review-requests": {
            "post": {
                "operationId": "requestStoryReview",
                "summary": "Ask family members to review a story",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/review-requests": {
            "get": {
                "operationId": "storyReviews",
                "summary": "Story review requests (status, story)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/review-requests/{id}/answer": {
            "post": {
                "operationId": "answerStoryReview",
                "summary": "Answer a story review request",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/review-requests/{id}/withdraw": {
            "post": {
                "operationId": "withdrawStoryReview",
                "summary": "Withdraw your story review request",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/story-people/{id}": {
            "delete": {
                "operationId": "storyRemovePerson",
                "summary": "Unlink a person from a story",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/settings": {
            "get": {
                "operationId": "settings",
                "summary": "Site title, narrators, root person",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/events": {
            "get": {
                "operationId": "events",
                "summary": "History events around the family (?from, ?to, ?region)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createEvent",
                "summary": "Add a sourced history event",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/events/{id}": {
            "get": {
                "operationId": "eventGet",
                "summary": "One history event",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateEvent",
                "summary": "Correct a history event",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deleteEvent",
                "summary": "Remove a history event",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/events/{id}/people": {
            "post": {
                "operationId": "linkEventPerson",
                "summary": "Historical context: link an event to a person with a note",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/event-people/{id}": {
            "delete": {
                "operationId": "unlinkEventPerson",
                "summary": "Remove a historical-context link",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/times": {
            "get": {
                "operationId": "personTimes",
                "summary": "A person's life against the times (events with their age and context notes)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/verify/queue": {
            "get": {
                "operationId": "verifyQueue",
                "summary": "What to verify next, most important first (scope, status, line, person, max_gen, at, limit)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/verify/progress": {
            "get": {
                "operationId": "verifyProgress",
                "summary": "Verification progress per family line",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/verify/facts/{id}": {
            "get": {
                "operationId": "verifyCard",
                "summary": "One fact with everything needed to verify it",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/voyages": {
            "get": {
                "operationId": "voyages",
                "summary": "Voyages (q, person, line, decade, family, sort, dir)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createVoyage",
                "summary": "Add a voyage with its ship and passengers (family members; an agent proposes it: voyage:create)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/voyages/{uid}": {
            "get": {
                "operationId": "voyageGet",
                "summary": "One voyage with its passengers",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateVoyage",
                "summary": "Change a voyage (agents: blank fields on any voyage, anything on one they made; otherwise propose voyage:update)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deleteVoyage",
                "summary": "Remove a voyage",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/voyages/{uid}/people": {
            "post": {
                "operationId": "voyageAddPerson",
                "summary": "Put a person on a voyage, or fill their line on the list (agents: blanks of someone aboard; otherwise propose voyage:passenger)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/voyage-people/{id}": {
            "delete": {
                "operationId": "voyageRemovePerson",
                "summary": "Take a person off a voyage",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/voyages/{uid}/facts": {
            "post": {
                "operationId": "voyageFacts",
                "summary": "Link, add or cite the passengers' crossing facts (do: link, add, cite)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/voyages-to-find": {
            "get": {
                "operationId": "voyagesToFind",
                "summary": "Arrivals no voyage explains yet, with searches to try",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/ships": {
            "get": {
                "operationId": "ships",
                "summary": "Every ship, with its voyages",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createShip",
                "summary": "Add a ship (family members)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/ships/{uid}": {
            "get": {
                "operationId": "shipGet",
                "summary": "One ship: type, line, built, tonnage, flag, picture, voyages",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateShip",
                "summary": "Change a ship (agents: blank fields; otherwise propose ship:update)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/places": {
            "get": {
                "operationId": "places",
                "summary": "Places with coordinates and use counts (q, missing=1, within: a county, state or parish and the places inside it)",
                "responses": {
                    "200": {
                        "description": "The list of PlaceListItem records, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PlaceListItem"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/places/{id}": {
            "patch": {
                "operationId": "updatePlace",
                "summary": "Set a place's map coordinates and details: place_type, wikidata, geonames, familysearch_id, gov_id, parish, registers_url, notes_md (agents: only where blank, or over an approximate point)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "get": {
                "operationId": "placeGet",
                "summary": "One place: everyone with a fact there, its pictures and voyages, other spellings, places that may be the same",
                "responses": {
                    "200": {
                        "description": "The Place record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Place"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/places/{id}/names": {
            "post": {
                "operationId": "addPlaceName",
                "summary": "Add a name the place had in a period, or its name in another language",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/moves": {
            "get": {
                "operationId": "personMoves",
                "summary": "A person's places in date order, with coordinates, for maps",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/notifications": {
            "get": {
                "operationId": "notifications",
                "summary": "Your notifications: replies, status changes, decisions on your proposals (unread=1, after_id)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/notifications/read": {
            "post": {
                "operationId": "readNotifications",
                "summary": "Mark notifications read",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/me/webhook": {
            "post": {
                "operationId": "setWebhook",
                "summary": "Set (or remove) your webhook: auth hmac, github, stripe, standard or bearer; your own secret or one made for you",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/me/inbox": {
            "get": {
                "operationId": "inbox",
                "summary": "Everything waiting on you, in sections with counts and links",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/me/webhook/test": {
            "post": {
                "operationId": "testWebhook",
                "summary": "Send a test notification to your webhook",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/suggestions": {
            "get": {
                "operationId": "suggestions",
                "summary": "The review queue: proposed changes (status, target_type, action, mine=1, person, verifiable, order, limit, after_id)",
                "responses": {
                    "200": {
                        "description": "The ProposalList record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/ProposalList"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createSuggestion",
                "summary": "Propose a change for a family member to accept",
                "responses": {
                    "200": {
                        "description": "The Proposal record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Proposal"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/suggestions/{id}": {
            "get": {
                "operationId": "suggestionGet",
                "summary": "One suggestion with the current values",
                "responses": {
                    "200": {
                        "description": "The Proposal record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Proposal"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            }
        },
        "/suggestions/{id}/verify": {
            "post": {
                "operationId": "verifySuggestion",
                "summary": "The second, independent check: agree (applies it) or disagree (records a dispute)",
                "responses": {
                    "200": {
                        "description": "The Proposal record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Proposal"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/suggestions/{id}/accept": {
            "post": {
                "operationId": "acceptSuggestion",
                "summary": "Accept a suggestion (family members; optional edits)",
                "responses": {
                    "200": {
                        "description": "The Proposal record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Proposal"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/suggestions/{id}/reject": {
            "post": {
                "operationId": "rejectSuggestion",
                "summary": "Reject a suggestion with a note (family members)",
                "responses": {
                    "200": {
                        "description": "The Proposal record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Proposal"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/suggestions/{id}/withdraw": {
            "post": {
                "operationId": "withdrawSuggestion",
                "summary": "Withdraw your own suggestion",
                "responses": {
                    "200": {
                        "description": "The Proposal record, as {\"data\": …}",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/Proposal"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/suggestions/{id}/undo": {
            "post": {
                "operationId": "undoSuggestion",
                "summary": "Undo an accepted proposal: every change it made, in one step; it is open again (family members)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/suggestions/{id}/second-look": {
            "post": {
                "operationId": "secondLookSuggestion",
                "summary": "A second look at a proposal accepted in bulk: keep, or undo with a note (family members)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/desk": {
            "get": {
                "operationId": "desk",
                "summary": "The whole Research: open research tasks, cost totals, waiting on, open discussion, open-question facts",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/research_items": {
            "get": {
                "operationId": "researchItems",
                "summary": "Research tasks (type, status=open|all|…, priority, person, owner, line, q, sort, dir)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "createResearchItem",
                "summary": "Add a research task",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/research_items/batch": {
            "post": {
                "operationId": "createResearchItems",
                "summary": "Add or update many research tasks at once (all or nothing)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/research_items/{uid}": {
            "get": {
                "operationId": "researchItem",
                "summary": "One research task with its history",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ]
            },
            "patch": {
                "operationId": "updateResearchItem",
                "summary": "Change a research task",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            },
            "delete": {
                "operationId": "deleteResearchItem",
                "summary": "Remove a research task",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/places/{id}/merge": {
            "post": {
                "operationId": "mergePlace",
                "summary": "Merge a place written two ways into the one that stays ({\"into\": place id}; agents propose place:merge)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/sources/{uid}/merge": {
            "post": {
                "operationId": "mergeSource",
                "summary": "Merge a source entered twice into the one that stays ({\"into\": source uid}; agents propose source:merge)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/merge": {
            "post": {
                "operationId": "mergePerson",
                "summary": "Merge a person entered twice ({\"with\": the duplicate's uid}) into this one (family members; agents propose person:merge)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/search/all": {
            "get": {
                "operationId": "searchAll",
                "summary": "One search over every kind of record, proposals included (q, type); go: the record a number or ID names",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/duplicates": {
            "get": {
                "operationId": "duplicates",
                "summary": "People, sources and places probably entered twice",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/mcp": {
            "get": {
                "operationId": "mcpDocs",
                "summary": "The MCP connector and every tool (docs/MCP.md) as Markdown",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/checks": {
            "get": {
                "operationId": "checks",
                "summary": "Data checks: conflicting dates, impossible ages, facts entered twice, labels from the import, duplicates, loose pictures",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/checks/marks": {
            "post": {
                "operationId": "markCheck",
                "summary": "Mark a data-check item checked: kept on purpose, it leaves the count",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/checks/marks/{id}": {
            "delete": {
                "operationId": "unmarkCheck",
                "summary": "Take a check mark off: the item counts again",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": false,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/quality": {
            "get": {
                "operationId": "quality",
                "summary": "The data-quality scorecard: rules now and a week ago, thresholds, per family line, daily history (days)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/linkage": {
            "get": {
                "operationId": "linkage",
                "summary": "The linkage to-do list: direct ancestors missing FamilySearch, WikiTree or Find a Grave IDs, places with no outside ID (kind, limit, offset)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/metrics": {
            "get": {
                "operationId": "metrics",
                "summary": "How good the record is: headline numbers, pedigree completeness, evidence, relationships, stewardship KPIs and trends (fresh=1)",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/places/{id}/unmerge": {
            "post": {
                "operationId": "unmergePlace",
                "summary": "Undo the merge of this place (the one merged away) in one step",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/sources/{uid}/unmerge": {
            "post": {
                "operationId": "unmergeSource",
                "summary": "Undo the merge of this source in one step",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/persons/{uid}/unmerge": {
            "post": {
                "operationId": "unmergePerson",
                "summary": "Undo the merge of this person (the duplicate merged away) in one step",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "uid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        },
        "/requests/{id}/revert": {
            "post": {
                "operationId": "revertRequest",
                "summary": "Undo every change made together (the revisions sharing this request_id), newest first",
                "responses": {
                    "200": {
                        "description": "{\"data\": …} (Markdown, text or a file for the document endpoints)"
                    },
                    "4XX": {
                        "description": "{\"error\": {\"code\": …, \"message\": …}}: 404 not_found or merged, 410 removed, 422 invalid, 403 forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "required": [
                                    "summary"
                                ],
                                "properties": {
                                    "summary": {
                                        "type": "string",
                                        "description": "What changed and why (required on every change; optional on comments)"
                                    }
                                },
                                "additionalProperties": true
                            }
                        }
                    }
                }
            }
        }
    }
}