People
Add a phone number to a person
POST
Adds a phone number; with is_primary: true it becomes the primary one. A number the person already has (same digits) adds nothing and answers added: false. At least 5 digits and at most 40 characters, otherwise 422 INVALID_PHONE. Requires people:write.
Body
application/json
numberstringrequiredPhone number
is_ primarybooleanMake it the primary number
Parameters
idstringrequiredpathPerson ID
Response
Phone number added, or already there
400Bad RequestErrorResponse
Invalid id or body
401UnauthorizedErrorResponse
Invalid API key
403ForbiddenErrorResponse
Insufficient scope
404Not FoundErrorResponse
Person 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: people:write
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: people:write
apikey_ authapiKey in queryAPI key in query string
Scopes: people:write
