This method will add a division to the hierarchy.


Resource Information

Response formats JSON (default), XML
HTTP Method POST
Response family hierarchy
Header
Authorization: api_key XXXXX


Resource URL

Production Server:

https://api.customergauge.com/v4.1/hierarchy.json


POST Data

Post data as key value.


POST Data Example


Key Data
division (required) Amsterdam
parent Netherlands


Example Request


cURL example curl -X POST https://api.customergauge.com/v4.1/hierarchy.json -d division=Amsterdam -d parent=Netherlands


Example Result


Message reported on successful operation:




1




{"Data":{"id":"2"}}




Message reported on failed operation:




1




{"Error":{"Message":"Required field 'division' not supplied","Code":300004}}