{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"feedback":{"type":"string","enum":["like","dislike","question"],"description":"Whether the selected docs were helpful."},"organizationId":{"type":"string","minLength":1,"maxLength":128,"description":"DocDuck organization ID that should receive the feedback."},"path":{"type":"string","minLength":1,"maxLength":2048,"description":"Path of the docs page the feedback is about."},"host":{"type":"string","minLength":1,"maxLength":255,"description":"Host name of the docs page the feedback is about."},"user":{"description":"Optional user identifier from the embedding site.","type":"string","maxLength":256},"selection":{"description":"Selected document text the feedback refers to.","type":"string","maxLength":20000},"comment":{"description":"Optional free-form explanation from the user or agent.","type":"string","maxLength":10000},"feedbackId":{"description":"Existing feedback ID when appending follow-up feedback.","type":"string","minLength":1,"maxLength":128},"selectionMetadata":{"type":"object","properties":{"surroundingContext":{"type":"object","properties":{"before":{"type":"string","maxLength":5000,"description":"Text that appears immediately before the selection."},"after":{"type":"string","maxLength":5000,"description":"Text that appears immediately after the selection."}},"required":["before","after"],"additionalProperties":false,"description":"Nearby document text used to place the selection in context."},"nearestHeading":{"description":"Closest heading associated with the selected content.","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"documentOffset":{"description":"Character offset of the selection within the rendered document.","type":"number"},"crossesShadowBoundary":{"description":"Whether the selection spans across a shadow DOM boundary.","type":"boolean"}},"additionalProperties":false,"description":"Extra metadata about the selected document text."}},"required":["feedback","organizationId","path","host"],"additionalProperties":false,"description":"Request body for submitting docs feedback to DocDuck."}