FieldRoutes API docs logoFieldRoutes API

Field Operations

team

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

Read operations

get/team/getTry it

get team

Get Bulk data for team. Accepts an array of teamIDs. Returns a max of 1000 records.

Parameters

teamIDsarray

No description in the upstream reference.

Returns

teamIDinteger

Unique Identifier

officeIDinteger

Office ID this team belongs to

namestring

Team name

teamLeaderinteger

Team Leader ID

employeeIDsinteger

Employee IDs of team members

Request

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

Response

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

Fetch by id team

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

Parameters

No parameters beyond authentication.

Returns

teamIDinteger

Unique Identifier

officeIDinteger

Office ID this team belongs to

namestring

Team name

teamLeaderinteger

Team Leader ID

employeeIDsinteger

Employee IDs of team members

Request

/team/{id}
curl -X POST 'https://{subdomain}.pestroutes.com/api/team/{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
teamID:6955
officeID:2602
name:"Quarterly Perimeter"
teamLeader:1
employeeIDs:1
}
}