Territory Services API is a RESTful api developed to provide easy and accessible storage and management for congregation territories. Although many systems can connect to the api via mobile and web client, the api does provide a web UI client interface. The web UI client interface can be viewed here.
{ "token": (string) }
{ "token": (string) }
{
"data": {
"email": (string),
"userId": (int),
"userType": (string)
}
}
{ "data": [ { "userId": (int), "userType": (string), "email": (string), "publisher": { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string), "territories": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string) },... ] } },... ] }
{ "data": [ { "userId": (int), "userType": (string), "email": (string), "publisherId": (int) } ] }
{ "data": true }
{ "data": [ { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string) } ] }
{ "data": [ { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string), "territories": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) },... ] } ] }
{ "data": { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string), "territories": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) },... ] } }
{ "data": { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string), "territories": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) },... ] } }
{ "data": { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string), "territories": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) },... ] } }
{ "data": true }
{ "data": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) },... ] }
{ "data": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) },... ] }
{ "data": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) },... ] }
{ "data": { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string), "addresses": [ { "addressId": (int), "territoryId": (int), "inActive": (bool), "name": (string), "address": (string), "apt": (string), "lat": (float), "long": (float), "phone": (string), "street": { "streetId": (int), "isAptBuilding": (bool), "street": (string) }, "streetId": (int), "streetName": (string), "notes": "" },... ], "publisher": { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string) }, } }
{ "data": { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string), "addresses": [ { "addressId": (int), "territoryId": (int), "inActive": (bool), "name": (string), "address": (int), "apt": (string), "lat": (float), "long": (float), "phone": (string), "streetId": (int), "streetName": (string), "notes": (string) "street": { "streetId": (int), "isAptBuilding": (bool), "street":(string) }, },... ], "records": [ { "recordId": (int), "userId": (int), "territoryId": (int), "publisherId": (int), "activityType": (string), "publisher": { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string) }, "user": { "userId": (int), "userType": (string), "email": (string) } },... ], "publisher" :{ "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string) } } }
{ "data": [ { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string), "records": [ { "recordId": (int), "userId": (int), "territoryId": (int), "publisherId": (int), "activityType": (string), "publisher": { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string) }, "user": { "userId": (int), "userType": (string), "email": (string) } } ] },... ] }
{ "data": { "territory": { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string), "publisher": { "publisherId": (int), "firstName": (string), "lastName": (string), "publisherType": (string) }, "map": [ { "address": (string), "name": (string), "lat": (float), "long": (float), "id": (int) },... ] } } }
{ "data": { "territory": { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) } } }
{ "data": { "territory": { "territoryId": (int), "publisherId": (int), "date": (date), "number": (int), "location": (string), "cityState": (string), "boundaries": (string) } } }
{ "data": { "address": (string), "name": (string), "lat": (float), "long": (float), "addressId": (int) } }
{ "data": { "address": (string), "name": (string), "lat": (float), "long": (float), "addressId": (int) } }
{ "data": true }
{ "data": { "address": (string), "name": (string), "lat": (float), "long": (float), "id": (int), "notes": (string) } }
{ "data": { "address": (string), "name": (string), "lat": (float), "long": (float), "id": (int), "notes": (string) } }