Create or update a company
POST/api/v1/pms/corporate/companies
Creates when id is blank; otherwise overwrites the existing company. domains and couponIds are replaced wholesale — send the full set the drawer is showing, not a delta. Domains are lower-cased and de-duplicated; a domain already approved for another company is rejected.
Request
Responses
- 200
- 400
Persisted company, with domains and coupons.
Missing name, malformed domain, unknown coupon id, or a domain owned by another company.