Endpoint
POST /businesses
Creates a new business record and returns an HTML partial with the updated business table rows, ordered by created_at descending (first page only).
Request body
Send asmultipart/form-data or application/x-www-form-urlencoded.
Business name. Must be non-empty after trimming whitespace. Maximum 255 characters.
Industry category (e.g.,
crypto, banking, healthcare, gambling). If omitted or blank, stored as null.Country name (e.g.,
USA, Germany, Iran). If omitted or blank, stored as null.Response
Returns thepartials/business_rows.html fragment: the full first page of businesses (up to 15), ordered by created_at descending, including the newly created business.
Error responses
| Status | Description |
|---|---|
422 Unprocessable Entity | name is empty (after trimming) or exceeds 255 characters. |