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

        The case-sensitive string used to search for a collection by name.

      • Optionalnext?: string

        The cursor to the next page of resources. Provide either the next or prev cursor, but not both.

      • Optionalprev?: string

        The cursor to the previous page of resources. Provide either the next or prev cursor, but not both.

      • Optionalquery?: string

        The case-insensitive string used to search for a resource by name or description.

      • Optionalsort?: "-name" | "+name" | "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt"

        The property of a resource to sort on (default sort is +createdAt). The supported properties are createdAt, updatedAt, and name. A property must be prefixed by + or - to indicate ascending or descending sort order respectively.

      • Optionaltype?: CollectionTypes

        The case-sensitive string used to search for a collection by type.

    • Optionaloptions: ApiCallOptions

    Returns Promise<GetItemCollectionsHttpResponse>

    GetItemCollectionsHttpError