The function Pages is a TypeScript function that returns an object with methods for interacting with pages, including getting, creating, updating, and deleting pages.

  • Parameters

    • baseUrl: string

      The base URL for the API endpoint.

    • clientId: TClientId

      The clientId parameter is of type TClientId, which is a custom type representing the client ID. It is used to identify the client for whom the pages are being queried or created.

    • siteId: string

      The siteId parameter is a string that represents the ID of a site.

    • OptionalpageId: string = null

      The pageId parameter is a string that represents the unique identifier of a specific page. It is optional and can be set to null if you want to perform operations on all pages instead of a specific one.

    Returns IQueryPages

    The function Pages returns an object that contains various methods and properties related to managing pages.