Companies
Add a phone number to a company
POST
Adds a phone number; with is_primary: true it becomes the primary one. A number the company already has (same digits) adds nothing and answers added: false. At least 5 digits and at most 40 characters, otherwise 422 INVALID_PHONE. Requires companies:write.
Body
application/json
numberstringrequiredPhone number
is_ primarybooleanMake it the primary number
Parameters
idstringrequiredpathCompany ID
Response
Phone number added, or already there
400Bad RequestErrorResponse
Invalid id or body
401UnauthorizedErrorResponse
Invalid API key
403ForbiddenErrorResponse
Insufficient scope
404Not FoundErrorResponse
Company not found
422Unprocessable EntityErrorResponse
Invalid phone number
500Internal Server ErrorErrorResponse
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
