Publish a form definition
POSThttps://sandbox.api.lendeasy.ai/v1/form-definitions/{formKey}/publish Bearer token ·
ADMIN_LMS_FORM_DEFINITIONPublishes the pending draft as an immutable publication and makes it the active version. Field keys keep their types forever — a type change is rejected — and a draft identical to the current publication publishes as a no-op.
Path & query parameters
| Field | Type | Description |
|---|---|---|
| LendEasy-Tenant required in header | string | Tenant selector: lowercase letters, digits, and hyphens, 1-64 characters. Exactly one instance; the only tenant selector honored. |
| formKey required in path | string | Stable opaque formKey identifier. |
| Idempotency-Key optional in header | string | Optional stable key (1-50 chars) for this one logical mutation. Replays of a completed request return the original result with x-served-from-cache: true; an in-flight duplicate returns 409 with Retry-After. Omitted keys are server-generated per attempt. |