/
Creating a Zone

Creating a Zone

This function allows to create a zone within the system, and later on, to add spaces to this zone.  The site identifier to which the zone belongs must be known with anticipation.

The request must be done through POST method.

URL: /admin/adnet/pub/admin/secciones.html?op=a&o=xml

Mandatory parameters:

  • nombre: zone name. Only the following parameters are allowed: 0-9, a-z,  A-Z, and underscore (_).  No repeated zones names within the same site are allowed.
  • sitio_id: site’s identifier to which the zone belongs.


Response:

It contains an object <operacion> that contains a tag <resultado>. The result could be either 1 (successful operation) or 0 (failed operation). 

If the operation is unsuccessful, it adds a list of errors through tags <error>, containing the attribute that specifies the attribute's name with error, and message with the error message.

Response example without errors:

<operacion>
    <resultado>1</resultado>
    <identificador>12142</identificador>
</operacion>


Response example with errors:

<operacion>
    <resultado>0</resultado>
    <errores>
        <error atributo=”sitio_id” mensaje=”Invalid option”/>
    </errores>
</operacion>