def update_portal_registration_config(
    self,
    host: str = "",
    port: int = 0,
    account_id: str = "",
    account_name: str = "",
    account_key: str = "",
    old_account_key: str = "",
    group: str = "",
    site: str = "",
) -> dict:
    """Update Cloud Portal registration information

    .. list-table::
        :header-rows: 1

        * - Swagger Section
          - Method
          - Endpoint
        * - spPortal
          - POST
          - /spPortal/config

    :param host: Hostname for cloud portal,
        e.g. ``portal.silverpeak.cloud``, defaults to ""
    :type host: str, optional
    :param port: Port to connect to cloud portal on, e.g. ``443``,
        defaults to 0
    :type port: int, optional
    :param account_id: Account ID string,
        e.g. ``5f347e4637f3de001a2a6e77``, defaults to ""
    :type account_id: str, optional
    :param account_name: Account name, defaults to ""
    :type account_name: str, optional
    :param account_key: Account key, defaults to ""
    :type account_key: str, optional
    :param old_account_key: Old account key, defaults to ""
    :type old_account_key: str, optional
    :param group: Group, can be ``unassigned``, defaults to ""
    :type group: str, optional
    :param site: Site, can be ``unassigned``, defaults to ""
    :type site: str, optional
    :return: Returns True/False based on successful call
    :rtype: bool
    """
    data = {
        "host": host,
        "port": port,
        "registration": {
            "accountId": account_id,
            "account": account_name,
            "key": account_key,
            "oldKey": old_account_key,
            "group": group,
            "site": site,
        },
    }

    return self._post(
        "/spPortal/config",
        data=data,
        expected_status=[204],
        return_type="bool",
    )