Difference between revisions of "REST API:developConfig Resource"

From AgileApps Support Wiki
imported>Aeric
 
imported>Aeric
m (Text replace - 'Record Identifier' to 'Record Id')
Line 58: Line 58:
! Name!!Type!!Attribute!!Required During Add!!Description!!Additional Information
! Name!!Type!!Attribute!!Required During Add!!Description!!Additional Information
|-
|-
| id || String || align="center"|Read Only || || || [[Record Identifier]]
| id || String || align="center"|Read Only || || || [[Record Id]]
|-
|-
| log_level || Number || align="center"|Editable on Update || || ||  
| log_level || Number || align="center"|Editable on Update || || ||  

Revision as of 22:03, 26 July 2011

Manage development configuration details using the REST API.

Access Permissions

Lock-tiny.gif

Users that have the Manage Develop Features permission can use the developConfig Resource in the REST API 

Read developConfig Settings

Method
GET
URI
https://{domain}/networking/rest/developConfig
Response
<syntaxhighlight lang="xml" enclose="div">

<platform>

   <developConfig>
       <id>...</id>
       <log_level>3</log_level>
       <namespace>demo</namespace>
   </developConfig>
   <message>
       0
       <description>Success</description>
   </message>

</platform> </syntaxhighlight>

See also: REST API:Error Codes

Update developConfig Settings

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

<platform>

   <developConfig>
       <log_level>3</log_level>
       <namespace>demo</namespace>
   </developConfig>

</platform> </syntaxhighlight>

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

<platform>

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

</platform> </syntaxhighlight>

See also: REST API:Error Codes

Fields

Name Type Attribute Required During Add Description Additional Information
id String Read Only Record Id
log_level Number Editable on Update
namespace String Editable on Update