This method will update a division.


Resource Information

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


Resource URL

Europe Production Server:

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


PUT Data

Update data as key value.


PUT Data Example


KeyData
division (required)Amsterdam
division_to_updateNorth Holland
parentNetherlands


Example Request


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