This method will update a division.


Resource Information

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


Resource URL

Production Server:

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


PUT Data

Update data as key value.


PUT Data Example


Key Data
division (required) Amsterdam
division_to_update North Holland
parent Netherlands


Example Request


cURL example curl -X PUT https://api.customergauge.com/v4.1/hierarchy.json -d division=Amsterdam -d division_to_update=”North Holland”


Example Result


Message reported on successful operation:




1




{"Data":{"message":"Division has been updated successfully"}}




Message reported on failed operation:




1




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