Member Junction
    Preparing search index...

    Apollo.io list/search client. See the module doc, and the quirk list on apollo-lists.types.ts, for the behaviours it encodes.

    Implements

    Index

    Constructors

    Methods

    • Create a label. Master key required.

      modality is not optional to Apollo despite reading like it should be: posting without it returns HTTP 422 "Please enter a non-empty modality!". It defaults to 'contacts' here because a people list is the common case.

      The create response shape is not pinned in Apollo's docs, so a bare label object, a { label: {...} } envelope and a { labels: [...] } envelope are all accepted — mirroring how listLabels tolerates two read shapes. A shape none of those match throws rather than returning a label with an empty id, which would then be written into a membership array.

      Parameters

      • name: string
      • modality: "accounts" | "contacts" = 'contacts'

      Returns Promise<ApolloLabel>