AgileApps Support Wiki Pre Release

Difference between revisions of "REST API:tenantCapabilities Resource"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 39: Line 39:
         <governance_tenant_level_cpu_time/>
         <governance_tenant_level_cpu_time/>
         <SSO>false</SSO>
         <SSO>false</SSO>
         <can_access_mobile>true</can_access_mobile></tenantCapabilities>
         <can_access_mobile>true</can_access_mobile>
     </tenantCapabilities>
     </tenantCapabilities>


Line 86: Line 86:
         <governance_tenant_level_cpu_time/>
         <governance_tenant_level_cpu_time/>
         <SSO>false</SSO>
         <SSO>false</SSO>
         <can_access_mobile>true</can_access_mobile></tenantCapabilities>
         <can_access_mobile>true</can_access_mobile>
     </tenantCapabilities>     
     </tenantCapabilities>     
</platform>
</platform>

Revision as of 18:47, 13 December 2011

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://{domain}/networking/rest/tenantCapabilities/{tenant_id}
Response
<syntaxhighlight lang="xml" enclose="div">

<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/>
       <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>
   </tenantCapabilities>
   <message>
       0
       <description>Success</description>
   </message>

</platform> </syntaxhighlight>

See also: REST API:Error Codes

Update Tenant Capabilities

Method
PUT
URI
https://{domain}/networking/rest/tenantCapabilities/{tenant_id}
Request
<syntaxhighlight lang="xml" enclose="div">

<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/>
       <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>
   </tenantCapabilities>    

</platform> </syntaxhighlight>

Response
<syntaxhighlight lang="xml" enclose="div">

<platform>

   <message>
       0
       <description>Success</description>        
   </message>

</platform> </syntaxhighlight>


See also: REST API:Error Codes