post
https://production-api.shoutaboutus.com/api/v1/partner/account//update
Update an existing account company row plus its owner user/person and account company_options. Field names passed in override_locations are cascaded down to the account's child stores (only who_will_pay is actually mirrored onto each store's company_options).
Auth: Partner — authentication under partner/account. Target resolved by path id. Controller 404s if the row is missing or not bundle_id=3, then walks getParentCompany(brand,'partner') and calls canManageBrand (super-admin, or the caller's partner == the account's partner) else 403. owner_email uniqueness ignores the account's current owner user.
Rate limit: No rate limit.
Request
- Body (JSON):
| Field | Type | Required | Notes |
|---|---|---|---|
| name | string (max 100) | yes | No angle brackets. |
| website | string (url) | no | |
| billing_id | string (max 100) | no | No angle brackets. |
| client_account_id | string (max 100) | no | No angle brackets. |
| phone | string (9–15) | no | |
| address | string (max 255) | yes | No angle brackets. |
| city_id | integer | yes | Must be an existing city. |
| companyindustry_id | integer | no | Must be an existing industry (active industries only). Optional industry tag; a partner-level industry, when set, cascades and overrides this on save. |
| postal_code | string (3–12) | yes | No angle brackets. |
| first_name | string (max 100) | yes | Owner first name. |
| last_name | string (max 100) | no | Owner last name. |
| owner_email | email (rfc,dns) | yes | Unique, ignoring this account's current owner. |
| owner_phone | string (9–15) | no | |
| override_locations | array | no | Cascade field list. |
| override_locations.* | string in:plan_id | no | Only plan_id is an accepted value. |
Response — { data. } envelope.
status(string) —success.message(string) —Account has been updated successfully!.accountId.label(string) — account name.accountId.value(integer) — account company id.stores_updated(integer) — count of child stores touched by the cascade.overrides_applied(string[]) — the override field names received.
Path params
| Parameter | Type | Required | Notes |
|---|---|---|---|
brandId | integer | Required | Digits only. |
Errors: 422 on validation failure.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
