FieldRoutes API docs logoFieldRoutes API

Configuration & Audit

region

3 endpoints. Start at search to collect IDs, then resolve them through get.

Read operations

get/region/getTry it

get region

Get Bulk data for region. Accepts an array of regionIDs. Returns a max of 1000 records.

Parameters

regionIDsarray

No description in the upstream reference.

Returns

regionIDsinteger

Primary key

officeIDsinteger

Office ID region belongs to

descriptionstring

Description of the region

createdstring

Time the region was created

deletedstring

Time the region was deleted

pointsstring

latitude and longitude bounding points separated by colons

typestring

No description in the upstream reference.

activestring

Active status for the region.

Request

/region/get
curl -X POST 'https://{subdomain}.pestroutes.com/api/region/get' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'regionIDs=value' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
]
count:2
}
by id/region/{id}Try it

Fetch by id region

Get region data for single ID -- please provide a specific record ID in the URL structure.

Parameters

No parameters beyond authentication.

Returns

regionIDsinteger

Primary key

officeIDsinteger

Office ID region belongs to

descriptionstring

Description of the region

createdstring

Time the region was created

deletedstring

Time the region was deleted

pointsstring

latitude and longitude bounding points separated by colons

typestring

No description in the upstream reference.

activestring

Active status for the region.

Request

/region/{id}
curl -X POST 'https://{subdomain}.pestroutes.com/api/region/{id}' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
regionIDs:0
officeIDs:2
description:"Sample value returned by the mock engine."
created:"sample-created"
deleted:"sample-deleted"
points:"sample-points"
type:"sample-type"
active:"sample-active"
}
}