diff --git a/src/v1/persons.ts b/src/v1/persons.ts index f9bbf88..7704e79 100644 --- a/src/v1/persons.ts +++ b/src/v1/persons.ts @@ -145,7 +145,7 @@ export type CreatePersonRequest = { /** * The email addresses of the person. If there are no email addresses, please specify an empty array. */ - emails: string[] + emails?: string[] /** * An array of unique identifiers of organizations that the person is associated with. */ @@ -349,7 +349,10 @@ export class Persons { ): Promise { const response = await this.axios.post( personsUrl(), - data, + { + emails: [], // the API requires this field to be present + ...data, + }, ) return response.data }