This method will add a division to the hierarchy.


Resource Information

Response formatsJSON (default), XML
HTTP MethodPOST
Response familyhierarchy
Header
Authorization: api_key XXXXX


Resource URL

Europe Production Server:

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


POST Data

Post data as key value.


POST Data Example


KeyData
division (required)Amsterdam
parentNetherlands


Example Request


cURL examplecurl -X POST https://api.eu.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}}