Skip to content

V2: Persons phone label is incorrectly typed as boolean #695

Description

@JulienZD

The AddPersonRequestPhonesInner interface has label typed as boolean. In reality this is a string, as can be seen in the Update person API docs

Image

As a result, I cannot attach a label using the SDK without @ts-expect-error

personsApi.updatePerson({
  id: personId,
  UpdatePersonRequest: {
    name: 'John Doe',
    phones: [
      {
         value: phoneNumber,
         // This errors, string is not assignable to type boolean
         label: 'custom_label',
      },
     ],
  },
});

Activity

  1. ziimk commented on Jan 30, 2026

    @ziimk
    Contributor

    Hi! Thank you for reporting. This has been fixed in 31.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions