Add a location to a company
Creates a location for the company. Address fields: street, city, state, zip, country, country_code. formatted is always derived from them (street, city, zip, state, then country or country_code) and cannot be set. At least one address field must be non-empty, otherwise 422 EMPTY_LOCATION. When is_primary is omitted, the location becomes primary only if the company has no primary location yet; true makes it the only primary location, false keeps it non-primary. Requires companies:write.
Body
streetstringStreet address
citystringCity name
statestringState, province or region
zipstringPostal code
countrystringCountry name
country_ codestringISO 3166-1 alpha-2 country code
is_ primarybooleanMake this the primary location
Parameters
idstringrequiredpathCompany ID
Response
Location created
Invalid id or body
Invalid API key
Insufficient scope
Company not found
EMPTY_LOCATION or validation error
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: companies:write
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: companies:write
apikey_ authapiKey in queryAPI key in query string
Scopes: companies:write
