AgileApps Support Wiki Pre Release

REST API:tenantCapabilities Resource

From AgileApps Support Wiki

Access Permissions

Lock-tiny.gif

Users that have the Manage Tenants and Company Capabilities permission can use this REST API resource. 

Get Tenant Capabilities

URI
https://{yourDomain}/networking/rest/tenantCapabilities/{tenant_id}
Response
<platform>
    <tenantCapabilities>
        <id>1325580066</id>
        <create_objects>true</create_objects>
        <create_application>true</create_application>
        <custom_access_criteria>true</custom_access_criteria>
        <developer_tools>true</developer_tools>
        <digital_signature>true</digital_signature>
        <manage_sites>true</manage_sites>
        <mass_deployment_of_packages>true</mass_deployment_of_packages>
        <multiple_languages>true</multiple_languages>
        <multiple_record_owner>true</multiple_record_owner>
        <object_inheritance>true</object_inheritance>
        <overwrite_previous_package>true</overwrite_previous_package>
        <package_system_generated_objects>true</package_system_generated_objects>
        <publish_package>true</publish_package>
        <install_package_from_file>true</install_package_from_file>
        <synchronous_rollup_summary_fields>true</synchronous_rollup_summary_fields>
        <field_encryption>true</field_encryption>
        <rollup_field_count>11</rollup_field_count>
        <active>true</active>
        <external_lib_path/>
        <subquery_filter>false</subquery_filter>
        <apply_governors>false</apply_governors>
        <schedule_jobs>25</schedule_jobs>
        <governance_tenant_level_on>false</governance_tenant_level_on>
        <governance_tenant_level_string_size/>
        <governance_tenant_level_statement_count/>
        <governance_tenant_level_cpu_time/>
        <SSO>false</SSO>
        <can_access_mobile>true</can_access_mobile>
        <restApiBulkOperationMaxLimit>25</restApiBulkOperationMaxLimit>
    </tenantCapabilities>

    <message>
        <code>0</code>
        <description>Success</description>
    </message>
</platform>
See also: REST API:Error Codes

Update Tenant Capabilities

Method
PUT
URI
https://{yourDomain}/networking/rest/tenantCapabilities/{tenant_id}
Request
<platform>
    <tenantCapabilities>
        <create_objects>true</create_objects>
        <create_application>true</create_application>
        <custom_access_criteria>true</custom_access_criteria>
        <developer_tools>true</developer_tools>
        <digital_signature>true</digital_signature>
        <manage_sites>true</manage_sites>
        <mass_deployment_of_packages>true</mass_deployment_of_packages>
        <multiple_languages>true</multiple_languages>
        <multiple_record_owner>true</multiple_record_owner>
        <object_inheritance>true</object_inheritance>
        <overwrite_previous_package>true</overwrite_previous_package>
        <package_system_generated_objects>true</package_system_generated_objects>
        <publish_package>true</publish_package>
        <install_package_from_file>true</install_package_from_file>
        <synchronous_rollup_summary_fields>true</synchronous_rollup_summary_fields>
        <field_encryption>true</field_encryption>
        <rollup_field_count>11</rollup_field_count>
        <active>true</active>
        <external_lib_path/>
        <subquery_filter>false</subquery_filter>
        <apply_governors>false</apply_governors>
        <schedule_jobs>25</schedule_jobs>
        <governance_tenant_level_on>false</governance_tenant_level_on>
        <governance_tenant_level_string_size/>
        <governance_tenant_level_statement_count/>
        <governance_tenant_level_cpu_time/>
        <SSO>false</SSO>
        <can_access_mobile>true</can_access_mobile>
        <restApiBulkOperationMaxLimit>25</restApiBulkOperationMaxLimit>
    </tenantCapabilities>    
</platform>
Response
<platform>
    <message>
        <code>0</code>
        <description>Success</description>        
    </message>
</platform>


See also: REST API:Error Codes