Get Territories

Request
Description Retrieves the list of territories the connected user has access to.
Context https://<instance>.optimizemyday.com/omdservices-basic/rest/v1/services/data
URL /getTerritories
Method GET
Response Code 200 when successful, another HTTP status code otherwise
Success Response A document containing the list of territories.
Response Type XML or JSON
Parameter Datatype Description
configId Integer The identifier of the configuration.
_output String The requested output format being xml or json. If omitted, xml is assumed.

Sample Call

https://sandbox.optimizemyday.com/omdservices-basic/rest/v1/services/data/getTerritories?configId=16167225

Sample Result

<Result success="true">
  <Territory id="16175135" version="1" configuration="16167225" name="104"/>
  <Territory id="16175138" version="1" configuration="16167225" name="112"/>
  <Territory id="16175142" version="1" configuration="16167225" name="105"/>
</Result>

results matching ""

    No results matching ""