Public/Get-GCOrganizationLimits.ps1

<#
.SYNOPSIS
    Retrieves the limit change requests for the organization in Genesys Cloud.

.DESCRIPTION
    Queries the Genesys Cloud API to retrieve a paginated list of limit change requests
    for the current organization.
    API Endpoint: GET /api/v2/organizations/limits/changerequest

.PARAMETER PageSize
    The number of results per page. Default is 25.

.PARAMETER PageNumber
    The page number to retrieve. Default is 1.

.EXAMPLE
    Get-GCOrganizationLimits
    Retrieves the first page of limit change requests.

.NOTES
    Genesys Cloud API: GET /api/v2/organizations/limits/changerequest
#>

function Get-GCOrganizationLimits {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $false)]
        [int]$PageSize = 25,

        [Parameter(Mandatory = $false)]
        [int]$PageNumber = 1
    )

    $queryParams = @{
        pageSize   = $PageSize
        pageNumber = $PageNumber
    }

    $endpoint = "organizations/limits/changerequest"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET -QueryParameters $queryParams
}