Knowledgebase: API
Space Groups - JSON
on 07 August 2014 07:10 PM
Add

It allows to create a space group in the system. The request must be done through POST method.

URL: admin/jsapi/grupoespacio?op=a


Mandatory parameters:

  • nombre: name
  • espacio_id: space´s identifiers (For example: 12314 13211)

Request example:

https://admin.eu.e-planning.net/admin/jsapi/grupoespacio?op=a&nombre=grupoAPI&espacio_id=7387 7024

Response example without errors:

{"gespacio_id":"76","status":200} 

Response example with errors: 

{"errors":{"nombre":"ERROR_NOMBRE_DUPLICADO"},"status":400}

 


Edit

It allows to edit a space group in the system. The request must be done through POST method.

URL: /admin/jsapi/grupoespacio?op=m


Mandatory parameters:

  • espacio_id: space identifier
  • nombre: name
  • gespacio_id: space group identifier

 

Request example:

https://admin.eu.e-planning.net/admin/jsapi/grupoespacio?op=m&gespacio_id=76&espacio_id=7387 7024 6519&nombre=edited

Response example without errors:

{"gespacio_id":"73","status":200}

Response example with errors:

{"gespacio_id":"73","errors":{"nombre":"ERROR_SIN_VALOR"},"status":400} 

 

 

Delete 

It allows to erase a space group in the system. The request must be done through POST method.

URL: /admin/jsapi/grupoespacio?op=b


Mandatory parameters:

  • gespacio_id : space group identifier

 

Request example:

https://admin.eu.e-planning.net/admin/jsapi/grupopauta?op=b&gpauta_id=73

Response example without errors:

{"gespacio_id":"73","status":200}

Response example with errors:

{"status":404}
(0 votes)
This article was helpful
This article was not helpful