The Items function is a TypeScript function that returns an object with methods for querying, creating, updating, and deleting items in a specified list.

  • Parameters

    • baseUrl: string

      The base URL for the API endpoint.

    • clientId: TClientId

      The clientId parameter is of type TClientId, which represents the client ID. It is used to identify the client for which the items are being queried.

    • siteId: string

      The siteId parameter represents the ID of the site where the items are located.

    • listId: string

      The listId parameter is the unique identifier of a list. It is used to specify which list the items belong to or should be created in.

    • OptionalitemId: string = null

      The itemId parameter is the unique identifier of an item in a list. It is used to specify which item to perform operations on, such as retrieving, updating, or deleting the item. If itemId is null, it means that the operation is not specific to a particular item and

    Returns IQueryItems

    an object of type IQueryItems.