api.companies.save_geo_settings

POST /companies/{companyId}/geosettings — ACPortal

Python

api.companies.save_geo_settings(company_id: str, *, data: GeoSettingsSaveRequest | dict) -> None

CLI

ab companies save_geo_settings <company_id> [--data ...]

POST /companies/{companyId}/geosettings.

Args: company_id: Company ID or code. data: Geo settings payload with service_areas and restrictions. Accepts a :class:GeoSettingsSaveRequest instance or a dict.

Request model: :class:GeoSettingsSaveRequest

Request body — GeoSettingsSaveRequest

Field

Type

Required

Description

serviceAreas

Optional[list[dict]]

no

Service area definitions

restrictions

Optional[list[dict]]

no

Geographic restrictions

Response

No response body.


← Back to api.companies