Skip to content

POST,PATCH /platform/companies/form

PLATFORM > platform

What it does

/platform/companies/form accepts POST,PATCH and is declared in app/platform/api_routes.php:430 as a path.

The route handler delegates to platformApiCompanyFormMutation(). That function is the owner of this behaviour; the route entry is only dispatch.

Call chain:

  1. → platformApiCompanyFormMutation() — app/platform/master-data/api_helper.php:207
  2. ↳ apiTableMutationNormalize() — app/shared/api/table_mutation_helper.php:6
  3. ↳ array_uppercase() — app/shared/controller/common_post_helper.php:177

Who calls it

Called from:

  • public/assets/js/modules/shared/popup.core.js

A caller is the strongest available evidence of the intended use.

Input

Where Key
query mode

Request bodies must not use TYPE, ACTION or USERNAME as contract fields.

Output

Key
T_COMPANY
T_COMPANY_EMAIL

Success is { "data": …, "requestId": "…" }. Failure is { "error": { "code", "message" }, "requestId": "…" }.

Data

No table reference is visible in the owner function body.

Access

  • session required; no module gate is declared on this route

Validation and failure messages

  • DEFAULT_EXPORT_WORKFLOW invalid.

These strings come from the owner function and are the messages a client can receive. They are also the cheapest way to tell a rejected request from a broken one.