While enabling api on a custom sub-object (Third level) of another sub-object (Second Level) those parent is Project Object (First Level).
We are getting an error "ODF-0248: Cannot API enable custom sub-object."
Release : 16.0.3
Enabled API property of the third-level sub-object via XOG.
XOG xml sample to API enable an object:
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_contentPack.xsd">
<Header action="write" externalSource="NIKU" objectType="contentPack" version="16.1.1"/>
<contentPack update="true">
<objects>
<object code="Sub2" copyEnabled="true" apiEnabled="true" pageLayoutAttribute="page_layout" parentObjectCode="project" raiseEvents="false" source="customer" update="true">
<nls languageCode="en" name="Sub2"/>
</object>
</objects>
</contentPack>
</NikuDataBus>