Function getItemCollections

  • Finds and returns the collections (and tags) of an item. This endpoint does not return the user's favorites collection.

    Parameters

    • itemId: string

      The item's unique identifier.

    • query: {
          limit?: number;
          name?: string;
          next?: string;
          prev?: string;
          query?: string;
          sort?:
              | "-name"
              | "+name"
              | "+createdAt"
              | "-createdAt"
              | "+updatedAt"
              | "-updatedAt";
          type?: CollectionTypes;
      }

      an object with query parameters

      • Optionallimit?: number

        The maximum number of resources to return for a request. The limit must be an integer between 1 and 100 (inclusive).

      • Optionalname?: string
      • Optionalnext?: string
      • Optionalprev?: string
      • Optionalquery?: string
      • Optionalsort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt"
      • Optionaltype?: CollectionTypes
    • Optionaloptions: ApiCallOptions

    Returns Promise<GetItemCollectionsHttpResponse>

    GetItemCollectionsHttpError