54. Add Resource Attributes

Used to add resource attributes.

54.1 Request Data

Required Information
Name Description
action adminattributes
operation add
format The format to return results in. Acceptable values:
  • xml Results are returned in XML format.
  • json Results are returned in JSON format.
aname Attribute name to use. Must be unique.
Optional Information
Name Description
pid Parent id to use. Defaults to 0 - (Makes top level attribute).
logvers logvers is used to determine the output of the call. Accepted values are:
  • 1 This returns the standard success reply
  • 2 This returns an extra element, <message_id> which contains the DBID for the attribute.

54.2 Data Returned

Returned information:
A success or error message.

Example Request:

http://development.zonarsystems.net/interface.php?action=adminattributes&operation=add&format=xml&aname=Taco&pid=44

Example Success Reply XML:

<?xml version="1.0"?>
<success ver="1.07">
 <action>adminattributes</action>
</success>


Example Success Reply logvers 2 XML:

<?xml version="1.0"?>
<success ver="1.07">
 <action>adminattributes</action>
 <message_id>42</message_id>
</success>


Example Success Reply JSON:

  {
    "success": {
      "ver": "1.07",
      "action": "adminattributes"
    }
  }