dry_run_endpoint
Validate an endpoint document without writing it. Returns either {ok: true, resolved: } or {ok: false, errors: {...}}. Pass endpointId to dry-run a PATCH against an existing endpoint; omit it to dry-run a create. Supply sample and/or answerSample to also run each target's mapping against a real payload and see what it produces, which field came from which node, and every rule that failed with the value that broke it. No DB write, no queue entry, no billing, and the payload is never sent anywhere.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sample | No | Optional: a request payload, shaped as one a caller would actually send, passed as JSON rather than as a string containing JSON. Every target carrying an outgoingMapping is evaluated against it and the verdict is attached to that target as outgoingMappingEvaluation. | |
| lineKey | Yes | The line key. | |
| endpoint | Yes | Endpoint document (for create dry-run) or PATCH body (when endpointId is supplied). | |
| endpointId | No | Optional: dry-run a PATCH against this endpoint UUID. | |
| answerSample | No | Optional: an answer payload, shaped as one a target would actually return. Drives answerMapping the same way, as answerMappingEvaluation. It cannot be inferred from sample — the two travel in opposite directions. |