Function getPublishedItems

  • Finds and returns the published items for a given item. This endpoint is particularly useful for finding the published copies of an app or a qvapp when you want to replace the content of a published copy with new information from the source item.

    Parameters

    • itemId: string

      The item's unique identifier

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

      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).

      • 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.

      • OptionalresourceType?: ItemResourceTypeEnum

        The case-sensitive string used to search for an item by resourceType.

      • 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.

    • Optionaloptions: ApiCallOptions

    Returns Promise<GetPublishedItemsHttpResponse>

    GetPublishedItemsHttpError