<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>629</ContextCount>
  <ElementCount>665</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>141</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>18</UnitCount>
  <MyReports>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/ConsolidatedStatementsofOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Statements of Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statements of Comprehensive Income (Loss) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/ConsolidatedStatementsofComprehensiveIncomeLossParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - Consolidated Statements of Shareholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/ConsolidatedStatementsofShareholdersEquity</Role>
      <ShortName>Consolidated Statements of Shareholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - NATURE OF BUSINESS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/NATUREOFBUSINESS</Role>
      <ShortName>NATURE OF BUSINESS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SIGNIFICANTACCOUNTINGPOLICIES</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - RECENT ACCOUNTING PRONOUNCEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/RECENTACCOUNTINGPRONOUNCEMENTS</Role>
      <ShortName>RECENT ACCOUNTING PRONOUNCEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - BUSINESS COMBINATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/BUSINESSCOMBINATIONS</Role>
      <ShortName>BUSINESS COMBINATIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - DIVESTITURES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DIVESTITURES</Role>
      <ShortName>DIVESTITURES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - RESTRUCTURING</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/RESTRUCTURING</Role>
      <ShortName>RESTRUCTURING</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - NET REVENUES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/NETREVENUES</Role>
      <ShortName>NET REVENUES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - GOODWILL AND INTANGIBLES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/GOODWILLANDINTANGIBLES</Role>
      <ShortName>GOODWILL AND INTANGIBLES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - FAIR VALUE OF FINANCIAL INSTRUMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/FAIRVALUEOFFINANCIALINSTRUMENTS</Role>
      <ShortName>FAIR VALUE OF FINANCIAL INSTRUMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - DERIVATIVES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DERIVATIVES</Role>
      <ShortName>DERIVATIVES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - PROPERTY AND EQUIPMENT, NET</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PROPERTYANDEQUIPMENTNET</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/LEASES</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DEBT</Role>
      <ShortName>DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXES</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - EMPLOYEE BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/EMPLOYEEBENEFITPLANS</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - PENSION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSION</Role>
      <ShortName>PENSION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9952174 - Disclosure - RELATED-PARTY TRANSACTIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/RELATEDPARTYTRANSACTIONS</Role>
      <ShortName>RELATED-PARTY TRANSACTIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9952175 - Disclosure - CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/CONTINGENCIES</Role>
      <ShortName>CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9952176 - Disclosure - SHAREHOLDERS' EQUITY AND REDEEMABLE CONVERTIBLE PREFERRED STOCK</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SHAREHOLDERSEQUITYANDREDEEMABLECONVERTIBLEPREFERREDSTOCK</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND REDEEMABLE CONVERTIBLE PREFERRED STOCK</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9952177 - Disclosure - SHARE-BASED COMPENSATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SHAREBASEDCOMPENSATION</Role>
      <ShortName>SHARE-BASED COMPENSATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9952178 - Disclosure - EARNINGS (LOSS) PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/EARNINGSLOSSPERSHARE</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9952179 - Disclosure - SEGMENT INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SEGMENTINFORMATION</Role>
      <ShortName>SEGMENT INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9952180 - Disclosure - SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SUBSEQUENTEVENTS</Role>
      <ShortName>SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9952181 - Disclosure - SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SCHEDULEIIVALUATIONANDQUALIFYINGACCOUNTS</Role>
      <ShortName>SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SIGNIFICANTACCOUNTINGPOLICIESPolicies</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - BUSINESS COMBINATIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/BUSINESSCOMBINATIONSTables</Role>
      <ShortName>BUSINESS COMBINATIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/BUSINESSCOMBINATIONS</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - RESTRUCTURING (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/RESTRUCTURINGTables</Role>
      <ShortName>RESTRUCTURING (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/RESTRUCTURING</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - NET REVENUES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/NETREVENUESTables</Role>
      <ShortName>NET REVENUES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/NETREVENUES</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - GOODWILL AND INTANGIBLES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/GOODWILLANDINTANGIBLESTables</Role>
      <ShortName>GOODWILL AND INTANGIBLES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/GOODWILLANDINTANGIBLES</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - FAIR VALUE OF FINANCIAL INSTRUMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSTables</Role>
      <ShortName>FAIR VALUE OF FINANCIAL INSTRUMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/FAIRVALUEOFFINANCIALINSTRUMENTS</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - DERIVATIVES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DERIVATIVESTables</Role>
      <ShortName>DERIVATIVES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/DERIVATIVES</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - PROPERTY AND EQUIPMENT, NET (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PROPERTYANDEQUIPMENTNETTables</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/PROPERTYANDEQUIPMENTNET</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/LEASESTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/LEASES</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DEBTTables</Role>
      <ShortName>DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/DEBT</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXESTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/INCOMETAXES</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - EMPLOYEE BENEFIT PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/EMPLOYEEBENEFITPLANSTables</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/EMPLOYEEBENEFITPLANS</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - PENSION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONTables</Role>
      <ShortName>PENSION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/PENSION</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - SHARE-BASED COMPENSATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SHAREBASEDCOMPENSATIONTables</Role>
      <ShortName>SHARE-BASED COMPENSATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/SHAREBASEDCOMPENSATION</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - EARNINGS (LOSS) PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/EARNINGSLOSSPERSHARETables</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/EARNINGSLOSSPERSHARE</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - SEGMENT INFORMATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SEGMENTINFORMATIONTables</Role>
      <ShortName>SEGMENT INFORMATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/SEGMENTINFORMATION</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - NATURE OF BUSINESS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/NATUREOFBUSINESSAdditionalInformationDetails</Role>
      <ShortName>NATURE OF BUSINESS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SIGNIFICANTACCOUNTINGPOLICIESAdditionalInformationDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - BUSINESS COMBINATIONS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/BUSINESSCOMBINATIONSNarrativeDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - BUSINESS COMBINATIONS - Schedule of Net Assets Acquired (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/BUSINESSCOMBINATIONSScheduleofNetAssetsAcquiredDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Schedule of Net Assets Acquired (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - DIVESTITURES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DIVESTITURESDetails</Role>
      <ShortName>DIVESTITURES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/DIVESTITURES</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - RESTRUCTURING - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/RESTRUCTURINGAdditionalInformationDetails</Role>
      <ShortName>RESTRUCTURING - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - RESTRUCTURING - Summary of Restructuring Program (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/RESTRUCTURINGSummaryofRestructuringProgramDetails</Role>
      <ShortName>RESTRUCTURING - Summary of Restructuring Program (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - NET REVENUES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/NETREVENUESAdditionalInformationDetails</Role>
      <ShortName>NET REVENUES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - NET REVENUES - Summary of Disaggregated Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/NETREVENUESSummaryofDisaggregatedRevenueDetails</Role>
      <ShortName>NET REVENUES - Summary of Disaggregated Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - NET REVENUES - Summary of Accounts Receivable, Net of Allowances, Contract Assets and Contract Liabilities from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/NETREVENUESSummaryofAccountsReceivableNetofAllowancesContractAssetsandContractLiabilitiesfromContractswithCustomersDetails</Role>
      <ShortName>NET REVENUES - Summary of Accounts Receivable, Net of Allowances, Contract Assets and Contract Liabilities from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - GOODWILL AND INTANGIBLES - Summary of Changes In Carrying Amounts of Goodwill By Reportable Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/GOODWILLANDINTANGIBLESSummaryofChangesInCarryingAmountsofGoodwillByReportableSegmentsDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLES - Summary of Changes In Carrying Amounts of Goodwill By Reportable Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - GOODWILL AND INTANGIBLES - Summary of Identifiable Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/GOODWILLANDINTANGIBLESSummaryofIdentifiableIntangibleAssetsDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLES - Summary of Identifiable Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - GOODWILL AND INTANGIBLES - Summary of Aggregate Amortization Expense of the Intangible (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/GOODWILLANDINTANGIBLESSummaryofAggregateAmortizationExpenseoftheIntangibleDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLES - Summary of Aggregate Amortization Expense of the Intangible (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - GOODWILL AND INTANGIBLES - Summary of Amortization Expense Recognized on Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/GOODWILLANDINTANGIBLESSummaryofAmortizationExpenseRecognizedonIntangibleAssetsDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLES - Summary of Amortization Expense Recognized on Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - FAIR VALUE OF FINANCIAL INSTRUMENTS - Summary of Fair Value Measurement Assets and Liabilities Measured on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSSummaryofFairValueMeasurementAssetsandLiabilitiesMeasuredonRecurringBasisDetails</Role>
      <ShortName>FAIR VALUE OF FINANCIAL INSTRUMENTS - Summary of Fair Value Measurement Assets and Liabilities Measured on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - FAIR VALUE OF FINANCIAL INSTRUMENTS - Summary of Reconciliation of Fair Value of Contingent Consideration Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSSummaryofReconciliationofFairValueofContingentConsiderationObligationsDetails</Role>
      <ShortName>FAIR VALUE OF FINANCIAL INSTRUMENTS - Summary of Reconciliation of Fair Value of Contingent Consideration Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - FAIR VALUE OF FINANCIAL INSTRUMENTS - Summary of Carrying And Fair Value Of Non-Variable Interest Rate Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSSummaryofCarryingAndFairValueOfNonVariableInterestRateDebtDetails</Role>
      <ShortName>FAIR VALUE OF FINANCIAL INSTRUMENTS - Summary of Carrying And Fair Value Of Non-Variable Interest Rate Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - DERIVATIVES - Summary of Fair Value of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DERIVATIVESSummaryofFairValueofDerivativeInstrumentsDetails</Role>
      <ShortName>DERIVATIVES - Summary of Fair Value of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - DERIVATIVES - Summary of Effect of Derivatives on Consolidated Statements of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DERIVATIVESSummaryofEffectofDerivativesonConsolidatedStatementsofOperationsDetails</Role>
      <ShortName>DERIVATIVES - Summary of Effect of Derivatives on Consolidated Statements of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - DERIVATIVES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DERIVATIVESAdditionalInformationDetails</Role>
      <ShortName>DERIVATIVES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - DERIVATIVES - Summary of Effect of Cash Flow and Fair Value Hedge Accounting on Accumulated Other Comprehensive (Income) Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DERIVATIVESSummaryofEffectofCashFlowandFairValueHedgeAccountingonAccumulatedOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>DERIVATIVES - Summary of Effect of Cash Flow and Fair Value Hedge Accounting on Accumulated Other Comprehensive (Income) Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - PROPERTY AND EQUIPMENT, NET - Summary of Components of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PROPERTYANDEQUIPMENTNETSummaryofComponentsofPropertyandEquipmentDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET - Summary of Components of Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - PROPERTY AND EQUIPMENT, NET - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PROPERTYANDEQUIPMENTNETAdditionalInformationDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - LEASES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/LEASESAdditionalInformationDetails</Role>
      <ShortName>LEASES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - LEASES - Schedule of Components of Lease Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/LEASESScheduleofComponentsofLeaseExpenseDetails</Role>
      <ShortName>LEASES - Schedule of Components of Lease Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - LEASES - Schedule of Supplemental Consolidated Statements of Cash Flows Information Related to Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/LEASESScheduleofSupplementalConsolidatedStatementsofCashFlowsInformationRelatedtoLeasesDetails</Role>
      <ShortName>LEASES - Schedule of Supplemental Consolidated Statements of Cash Flows Information Related to Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - LEASES - Schedule of Supplemental Consolidated Balance Sheets Information Related to Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/LEASESScheduleofSupplementalConsolidatedBalanceSheetsInformationRelatedtoLeasesDetails</Role>
      <ShortName>LEASES - Schedule of Supplemental Consolidated Balance Sheets Information Related to Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - LEASES - Schedule of Future Undiscounted Cash Flows and Reconciliation to the Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/LEASESScheduleofFutureUndiscountedCashFlowsandReconciliationtotheLeaseLiabilitiesDetails</Role>
      <ShortName>LEASES - Schedule of Future Undiscounted Cash Flows and Reconciliation to the Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - DEBT - Summary of Debt Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DEBTSummaryofDebtObligationsDetails</Role>
      <ShortName>DEBT - Summary of Debt Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - DEBT - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DEBTAdditionalInformationDetails</Role>
      <ShortName>DEBT - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - DEBT - Schedule of Annual Maturities, Excluding Amortization of Debt Issuance Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/DEBTScheduleofAnnualMaturitiesExcludingAmortizationofDebtIssuanceCostsDetails</Role>
      <ShortName>DEBT - Schedule of Annual Maturities, Excluding Amortization of Debt Issuance Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - INCOME TAXES - Summary of Components of Income (Loss) Before Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXESSummaryofComponentsofIncomeLossBeforeIncomeTaxesDetails</Role>
      <ShortName>INCOME TAXES - Summary of Components of Income (Loss) Before Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - INCOME TAXES - Summary of Income Tax Provision (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXESSummaryofIncomeTaxProvisionDetails</Role>
      <ShortName>INCOME TAXES - Summary of Income Tax Provision (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - INCOME TAXES - Summary of Reconciliation of Federal Statutory Income Tax Rate In Acordance With the Guidance in ASU No. 2023-09 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXESSummaryofReconciliationofFederalStatutoryIncomeTaxRateInAcordanceWiththeGuidanceinASUNo202309Details</Role>
      <ShortName>INCOME TAXES - Summary of Reconciliation of Federal Statutory Income Tax Rate In Acordance With the Guidance in ASU No. 2023-09 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - INCOME TAXES - Summary of Income Taxes Paid (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXESSummaryofIncomeTaxesPaidDetails</Role>
      <ShortName>INCOME TAXES - Summary of Income Taxes Paid (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - INCOME TAXES - Summary of Components of Deferred Tax Assets And Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXESSummaryofComponentsofDeferredTaxAssetsAndLiabilitiesDetails</Role>
      <ShortName>INCOME TAXES - Summary of Components of Deferred Tax Assets And Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - INCOME TAXES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXESAdditionalInformationDetails</Role>
      <ShortName>INCOME TAXES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - INCOME TAXES - Summary of Reconciliation of Beginning and Ending Amount of Unrecognized Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/INCOMETAXESSummaryofReconciliationofBeginningandEndingAmountofUnrecognizedTaxBenefitsDetails</Role>
      <ShortName>INCOME TAXES - Summary of Reconciliation of Beginning and Ending Amount of Unrecognized Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - EMPLOYEE BENEFIT PLANS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/EMPLOYEEBENEFITPLANSAdditionalInformationDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - EMPLOYEE BENEFIT PLANS - Schedule of Participation in MEPPs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/EMPLOYEEBENEFITPLANSScheduleofParticipationinMEPPsDetails</Role>
      <ShortName>EMPLOYEE BENEFIT PLANS - Schedule of Participation in MEPPs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - PENSION - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONAdditionalInformationDetails</Role>
      <ShortName>PENSION - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - PENSION - Schedule of Changes in Benefit Obligations and Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONScheduleofChangesinBenefitObligationsandPlanAssetsDetails</Role>
      <ShortName>PENSION - Schedule of Changes in Benefit Obligations and Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - PENSION - Summary of Supplemental Consolidated Balance Sheets Information Related to Pension (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONSummaryofSupplementalConsolidatedBalanceSheetsInformationRelatedtoPensionDetails</Role>
      <ShortName>PENSION - Summary of Supplemental Consolidated Balance Sheets Information Related to Pension (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9955570 - Disclosure - PENSION - Information for Pension Plans with Accumulated Benefit Obligations in Excess of Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONInformationforPensionPlanswithAccumulatedBenefitObligationsinExcessofPlanAssetsDetails</Role>
      <ShortName>PENSION - Information for Pension Plans with Accumulated Benefit Obligations in Excess of Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>9955571 - Disclosure - PENSION - Components of Net Periodic Pension Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONComponentsofNetPeriodicPensionCostDetails</Role>
      <ShortName>PENSION - Components of Net Periodic Pension Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>9955572 - Disclosure - PENSION - Major Assumptions Used to Determine Benefit Obligation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONMajorAssumptionsUsedtoDetermineBenefitObligationDetails</Role>
      <ShortName>PENSION - Major Assumptions Used to Determine Benefit Obligation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>9955573 - Disclosure - PENSION - Summary of Allocation of Pension Plan Asset (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONSummaryofAllocationofPensionPlanAssetDetails</Role>
      <ShortName>PENSION - Summary of Allocation of Pension Plan Asset (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>9955574 - Disclosure - PENSION - Summary of Fair Value of Pension Plan Assets by Asset Category (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONSummaryofFairValueofPensionPlanAssetsbyAssetCategoryDetails</Role>
      <ShortName>PENSION - Summary of Fair Value of Pension Plan Assets by Asset Category (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>9955575 - Disclosure - PENSION - Plan Assets That Use Unobservable Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/PENSIONPlanAssetsThatUseUnobservableInputsDetails</Role>
      <ShortName>PENSION - Plan Assets That Use Unobservable Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>9955576 - Disclosure - RELATED-PARTY TRANSACTIONS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/RELATEDPARTYTRANSACTIONSDetails</Role>
      <ShortName>RELATED-PARTY TRANSACTIONS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/RELATEDPARTYTRANSACTIONS</ParentRole>
      <Position>102</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>9955577 - Disclosure - CONTINGENCIES - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/CONTINGENCIESAdditionalInformationDetails</Role>
      <ShortName>CONTINGENCIES - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>9955578 - Disclosure - SHAREHOLDERS' EQUITY AND REDEEMABLE CONVERTIBLE PREFERRED STOCK (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SHAREHOLDERSEQUITYANDREDEEMABLECONVERTIBLEPREFERREDSTOCKDetails</Role>
      <ShortName>SHAREHOLDERS' EQUITY AND REDEEMABLE CONVERTIBLE PREFERRED STOCK (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/SHAREHOLDERSEQUITYANDREDEEMABLECONVERTIBLEPREFERREDSTOCK</ParentRole>
      <Position>104</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>9955579 - Disclosure - SHARE-BASED COMPENSATION - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SHAREBASEDCOMPENSATIONAdditionalInformationDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>9955580 - Disclosure - SHARE-BASED COMPENSATION - Summary of Changes in Number of Common Shares Underlying Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SHAREBASEDCOMPENSATIONSummaryofChangesinNumberofCommonSharesUnderlyingOptionsDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION - Summary of Changes in Number of Common Shares Underlying Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>9955581 - Disclosure - SHARE-BASED COMPENSATION - Summary of Changes in Number of Outstanding RSUs and PSUs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SHAREBASEDCOMPENSATIONSummaryofChangesinNumberofOutstandingRSUsandPSUsDetails</Role>
      <ShortName>SHARE-BASED COMPENSATION - Summary of Changes in Number of Outstanding RSUs and PSUs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>9955582 - Disclosure - EARNINGS (LOSS) PER SHARE - Summary of Computation Earnings (Loss) Per Common Share Using Two Class Method (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/EARNINGSLOSSPERSHARESummaryofComputationEarningsLossPerCommonShareUsingTwoClassMethodDetails</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE - Summary of Computation Earnings (Loss) Per Common Share Using Two Class Method (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/EARNINGSLOSSPERSHARETables</ParentRole>
      <Position>108</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>9955583 - Disclosure - SEGMENT INFORMATION - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SEGMENTINFORMATIONAdditionalInformationDetails</Role>
      <ShortName>SEGMENT INFORMATION - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>9955584 - Disclosure - SEGMENT INFORMATION - Summary of Reconciliation Operating Income to EBITDA (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SEGMENTINFORMATIONSummaryofReconciliationOperatingIncometoEBITDADetails</Role>
      <ShortName>SEGMENT INFORMATION - Summary of Reconciliation Operating Income to EBITDA (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>9955585 - Disclosure - SUBSEQUENT EVENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SUBSEQUENTEVENTSDetails</Role>
      <ShortName>SUBSEQUENT EVENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/SUBSEQUENTEVENTS</ParentRole>
      <Position>111</Position>
    </Report>
    <Report instance="apg-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>9955586 - Disclosure - SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.apigroupinc.com/role/SCHEDULEIIVALUATIONANDQUALIFYINGACCOUNTSDetails</Role>
      <ShortName>SCHEDULE II - VALUATION AND QUALIFYING ACCOUNTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.apigroupinc.com/role/SCHEDULEIIVALUATIONANDQUALIFYINGACCOUNTS</ParentRole>
      <Position>112</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="apg-20251231.htm">apg-20251231.htm</File>
    <File>apg-20251231.xsd</File>
    <File>apg-20251231_cal.xml</File>
    <File>apg-20251231_def.xml</File>
    <File>apg-20251231_lab.xml</File>
    <File>apg-20251231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>apg-20251231_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="1874">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
