Multi Company console and branding error codes (mpbx-api-ops)
Raised by /api/v1/system/companies... (W10-TEN-01; ORG-TEN-002) and /api/v1/branding...
(W10-TEN-03; ORG-TEN-006). Guide: Multi Company.
| Code | Kind | Meaning | What to do |
|---|---|---|---|
MPBX-COMPANY-NOT-FOUND | not_found (404) | There is no company with that id. | Reload the list. |
MPBX-COMPANY-SLUG-TAKEN | conflict (409) | The handle is used by another company, or is reserved (www, api, admin, sip, ...). | Choose another handle. |
MPBX-COMPANY-DEFAULT-PROTECTED | conflict (409) | The default company (single-company mode) cannot be suspended or deleted. | Nothing; it is the install's own company. |
MPBX-COMPANY-NOT-SUSPENDED | conflict (409) | A company is deleted only after it was suspended. | Suspend it first, then delete. |
MPBX-COMPANY-CONFIRM-MISMATCH | invalid_argument (400) | confirm is not the company's handle. | Pass the exact handle. |
MPBX-COMPANY-DELETE-BLOCKED | conflict (409) | Some of the company's data could not be removed, so nothing was deleted. | Look at the PBX log (mpbx::tenant), fix the cause, retry; the company stays suspended. |
MPBX-BRANDING-LOGO-INVALID | invalid_argument (400) | The logo is not a PNG, JPEG or WebP, or is larger than 256 KiB (SVG is refused). | Upload a raster picture of at most 256 KiB. |
MPBX-BRANDING-COLOR-INVALID | invalid_argument (400) | A colour is not #rrggbb. | Fix the named field. |
Unknown company ids on the company routes answer MPBX-COMPANY-NOT-FOUND; a company credential on a
/system/... route answers MPBX-TENANT-SYSTEM-REQUIRED (403).