Download OpenAPI specification:Download
To start using the Territory Helper API, please contact the Help Desk to register your application. Please submit the name of your application, your contact name and email address (both of which will appear in Territory Helper during user-authorization), and your application website address (if applicable).
When we have registered your application, we will supply you with a Client ID and Client Secret (Signature). These credentials are specific to your application. The Client ID is publicly exposed (it is how Territory Helper identifies your application), but the Client Secret must be kept private between your application and Territory Helper.
The credentials will allow you to use the OAuth2 framework to obtain access to some of the data associated with a Territory Helper user account via an access token. There are two methods you can use to get an access token: "Authorization Code Web" and "Authorization Code PKCE". Use the "Authorization Code Web" method if your application is a website and you can secure the Client Secret on your server. Use "Authorization Code PKCE" if your application is a desktop or mobile one, or if you can't secure the Client Secret for some other reason. These two methods are described below.
For use with web applications.
Territory Helper responds by displaying a login page, and when the user logs in, Territory Helper displays a "Request for Permission" page that allows the user to approve or reject the request.
If the user clicks the "Accept" button, Territory Helper supplies an authorization code at your REDIRECT URI using a query string field named "code".
If the user clicks the "Cancel" button, Territory Helper redirects to your REDIRECT URI using a query string field named "error" and value "access_denied".
client_id required | string client_id is supplied by Territory Helper during registration of your application. |
redirect_uri required | string The URL Territory Helper will redirect to when issuing an authorization code. |
In your callback code, your application should then request an access token from Territory Helper.
The returned token can be used to call the Territory Helper API, specifying it as a query string field named "access_token".
The access_token is short lived and may need to use the refresh_token to create new access tokens.
grant_type required | string The grant type "authorization_code" must be used to retrieve a new token. |
refresh_token | string The refresh_token supplied in a "authorization_code" and required for "refresh_token" grant type. |
code | string he authorization code supplied by Territory Helper appart of the redirect URI in the Authorization code method. Required for "authorization_code" grant types. |
redirect_uri | string The redirect URI supplied in the initial authorization. Required to validate "authorization_code" grant types. |
client_id required | string client_id is supplied by Territory Helper during registration of your application. |
client_secret required | string client_secret is supplied by Territory Helper during registration of your application. Also referred to as the signature. |
{- "access_token": "string",
- "refresh_token": "string",
- "token_type": "string",
- "expires_in": 0
}
In your callback code, your application should then request an access token from Territory Helper.
The returned token can be used to call the Territory Helper API, specifying it as a query string field named "access_token".
The access_token is short lived and may need to use the refresh_token to create new access tokens.
grant_type required | string The grant type "authorization_code" must be used to retrieve a new token. |
refresh_token | string The refresh_token supplied in a "authorization_code" and required for "refresh_token" grant type. |
code | string he authorization code supplied by Territory Helper appart of the redirect URI in the Authorization code method. Required for "authorization_code" grant types. |
redirect_uri | string The redirect URI supplied in the initial authorization. Required to validate "authorization_code" grant types. |
client_id required | string client_id is supplied by Territory Helper during registration of your application. |
code_verifier required | string The random key used to create the hashed and encrypted code_challenge in the previous authorization step. |
{- "access_token": "string",
- "refresh_token": "string",
- "token_type": "string",
- "expires_in": 0
}
{- "Id": 0,
- "LanguageId": "st",
- "Number": 0,
- "Name": "string",
- "Address": "string",
- "Coordinates": "string",
- "PrimaryContactPhone": "string",
- "PrimaryContactEmail": "string",
- "OverviewBoundary": "string",
- "OverdueDays": 0,
- "PublisherLoginRequired": true,
- "ApproveLocations": true,
- "PublisherLocationAccessId": 0,
- "PublisherTerritoryAccessId": 0,
- "PublisherCanEditLocations": true,
- "PublishercanAddLocations": true,
- "PublisherCanEditNotes": true,
- "PublisehrCanViewTerritories": true,
- "PublisehrCanReturnAssignments": true,
- "GdprCompliant": true,
- "LocationsByAddress": true,
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModified": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Only the publisher's congregation is allowed to be accessed.
congregation_id required | integer The congregation ID. |
{- "Id": 0,
- "LanguageId": "st",
- "Number": 0,
- "Name": "string",
- "Address": "string",
- "Coordinates": "string",
- "PrimaryContactPhone": "string",
- "PrimaryContactEmail": "string",
- "OverviewBoundary": "string",
- "OverdueDays": 0,
- "PublisherLoginRequired": true,
- "ApproveLocations": true,
- "PublisherLocationAccessId": 0,
- "PublisherTerritoryAccessId": 0,
- "PublisherCanEditLocations": true,
- "PublishercanAddLocations": true,
- "PublisherCanEditNotes": true,
- "PublisehrCanViewTerritories": true,
- "PublisehrCanReturnAssignments": true,
- "GdprCompliant": true,
- "LocationsByAddress": true,
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModified": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
[- {
- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
Only the publisher's congregation is allowed to be accessed.
congregation_id required | integer The congregation ID. |
[- {
- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- {
- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
Only the publisher's congregation is allowed to be accessed.
congregation_id required | integer The congregation ID. |
[- {
- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
Only the publisher's congregation is allowed to be accessed.
congregation_id required | integer The congregation ID. |
[- {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
{- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
[- {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
This API can be used to retreive the publisher and all of their related congregation data, and is more efficient than making multiple API calls to retrieve the discrete data.
{- "Publisher": {
- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Congregation": {
- "Id": 0,
- "LanguageId": "st",
- "Number": 0,
- "Name": "string",
- "Address": "string",
- "Coordinates": "string",
- "PrimaryContactPhone": "string",
- "PrimaryContactEmail": "string",
- "OverviewBoundary": "string",
- "OverdueDays": 0,
- "PublisherLoginRequired": true,
- "ApproveLocations": true,
- "PublisherLocationAccessId": 0,
- "PublisherTerritoryAccessId": 0,
- "PublisherCanEditLocations": true,
- "PublishercanAddLocations": true,
- "PublisherCanEditNotes": true,
- "PublisehrCanViewTerritories": true,
- "PublisehrCanReturnAssignments": true,
- "GdprCompliant": true,
- "LocationsByAddress": true,
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModified": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "ServiceGroupPublishers": [
- {
- "Id": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "RoleId": 0,
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
Pass the json formatted Publisher model in the body of your request. Applicable properties are FirstName, LastName, Email (optional), PhoneNumber (optional) and AccessLevelID (optional).
The newly-added publisher is returned as the response content.
The new publisher.
Id | integer <int32> |
CongregationId | integer <int32> |
FirstName | string <= 45 characters |
LastName | string <= 45 characters |
string or null | |
AccessLevelId | integer |
string or null | |
string or null | |
LastPasswordChangeDate | string <date-time> |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Pass the json formatted Publisher model in the body of your request. Applicable properties are FirstName, LastName, Email (optional), PhoneNumber (optional) and AccessLevelID (optional).
The updated publisher is returned as the response content.
publisher_id required | integer The publisher ID. |
Updates a publisher.
Id | integer <int32> |
CongregationId | integer <int32> |
FirstName | string <= 45 characters |
LastName | string <= 45 characters |
string or null | |
AccessLevelId | integer |
string or null | |
string or null | |
LastPasswordChangeDate | string <date-time> |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
publisher_id required | integer The publisher ID. |
{- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
This API can be used to retreive the publisher and all of their related congregation data, and is more efficient than making multiple API calls to retrieve the discrete data.
publisher_id required | integer The publisher ID. |
{- "Publisher": {
- "Id": 0,
- "CongregationId": 0,
- "FirstName": "string",
- "LastName": "string",
- "Email": "string",
- "AccessLevelId": 0,
- "LanguageId": "st",
- "PhoneNumber": "string",
- "LastPasswordChangeDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Congregation": {
- "Id": 0,
- "LanguageId": "st",
- "Number": 0,
- "Name": "string",
- "Address": "string",
- "Coordinates": "string",
- "PrimaryContactPhone": "string",
- "PrimaryContactEmail": "string",
- "OverviewBoundary": "string",
- "OverdueDays": 0,
- "PublisherLoginRequired": true,
- "ApproveLocations": true,
- "PublisherLocationAccessId": 0,
- "PublisherTerritoryAccessId": 0,
- "PublisherCanEditLocations": true,
- "PublishercanAddLocations": true,
- "PublisherCanEditNotes": true,
- "PublisehrCanViewTerritories": true,
- "PublisehrCanReturnAssignments": true,
- "GdprCompliant": true,
- "LocationsByAddress": true,
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModified": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "ServiceGroupPublishers": [
- {
- "Id": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "RoleId": 0,
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
0: Publisher
1: Assistant
2: Overseer
[- {
- "Id": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "RoleId": 0,
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
name required | string The service group name. |
{- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
service_group_id required | integer The service group ID. |
name required | string The service group name. |
{- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
service_group_id required | integer The service group ID. |
{- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Only the publisher's congregation is allowed to be accessed.
congregation_id | integer The congregation ID. |
[- {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
Pass the json formatted Territory type model in the body of your request.
The new territory type.
Id | integer <int32> |
string or null | |
Name | string <= 100 characters |
string or null The HEX code for the type color. | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_type_id required | integer The territory type ID. |
{- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Pass the json formatted Territory type model in the body of your request. The newly-modified territory type is returned as the response content.
territory_type_id required | integer The territory type ID. |
Updates an existing territory type.
Id | integer <int32> |
string or null | |
Name | string <= 100 characters |
string or null The HEX code for the type color. | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_type_id required | integer The territory type ID. |
{- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Only the publisher's congregation is allowed to be accessed.
congregation_id | integer The congregation ID. |
territory_type_id | integer Territories of a specified territory type. Leaving empty will return territories of all territory types. |
territory_number | string Territories of a given number. Leaving empty will return territories with any number. |
[- {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
Pass the json formatted Territory model in the body of your request.
TerritoryTypeId is required. If you omit Number, Territory Helper will automatically supply a value.
The newly-added territory is returned as the response content.
The new territory.
Id | integer <int32> |
UrlId | string <= 16 characters The unique ID used to identify the territory on the web. |
CongregationId | integer <int32> |
TerritoryTypeId | integer <int32> |
Number | string <= 10 characters |
string or null An array of coordinates making up the territory boundary as JSON. | |
string or null The center point specified by the creator as JSON. | |
string or null "polygon" | |
string or null The current resolved notes from suggested or approved notes. | |
string or null | |
string or null | |
string or null The short URL code used in the QR code. | |
IncludeStatistics | boolean Whether the territory is included in statistics for the dashboard, statistical territory views, etc. |
ViewUrl | string The digital territory view URL. |
PrintUrl | string The territory print view URL. |
TerritoryUrl | string The full screen territory URL for embedding in applications. |
StaticUrl | string The full screen territory URL without controls for embedding in applications. |
TerritoryImage | string The URL to the territory image. |
BoundaryDateModified | string <date-time> |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
[- {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
territory_id required | string The territory ID or URL ID. |
{- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Pass the json formatted Territory model in the body of your request. The newly-modified territory is returned as the response content.
territory_id required | string The territory ID or URL ID. |
Updates an existing territory.
Id | integer <int32> |
UrlId | string <= 16 characters The unique ID used to identify the territory on the web. |
CongregationId | integer <int32> |
TerritoryTypeId | integer <int32> |
Number | string <= 10 characters |
string or null An array of coordinates making up the territory boundary as JSON. | |
string or null The center point specified by the creator as JSON. | |
string or null "polygon" | |
string or null The current resolved notes from suggested or approved notes. | |
string or null | |
string or null | |
string or null The short URL code used in the QR code. | |
IncludeStatistics | boolean Whether the territory is included in statistics for the dashboard, statistical territory views, etc. |
ViewUrl | string The digital territory view URL. |
PrintUrl | string The territory print view URL. |
TerritoryUrl | string The full screen territory URL for embedding in applications. |
StaticUrl | string The full screen territory URL without controls for embedding in applications. |
TerritoryImage | string The URL to the territory image. |
BoundaryDateModified | string <date-time> |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
{- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
This API can be used to retreive a specified territory along with related data, and is more efficient than making multiple API calls to retrieve the discrete data.
territory_id required | string The territory ID or URL ID. |
visits | string assignment: (Default) Include visit data for the current assignment. |
{- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
]
}
]
}
This API can be used to retreive the assigned territories along with related data, and is more efficient than making multiple API calls to retrieve the discrete data.
visits | string assignment: Include visit data for the current assignment. |
[- {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
]
}
]
}
]
Optionally add a Request to the body of the request. You can specify a TerritoryId if you know which territory to request; otherwise omit it. Territory Helper responds to the request by sending email to the territory servant.
The territory request.
string or null The territory ID or URL ID. | |
string or null |
{- "TerritoryId": "string",
- "Message": "string"
}
{- "TerritoryId": "string",
- "Message": "string"
}
assignment_id required | integer The assignment ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Optionally add a Request to the body of the request. You can specify a TerritoryId if you know which territory to request; otherwise omit it. Territory Helper responds to the request by sending email to the territory servant.
The territory request.
string or null The territory ID or URL ID. | |
string or null |
{- "TerritoryId": "string",
- "Message": "string"
}
{- "TerritoryId": "string",
- "Message": "string"
}
assignment_id required | integer The assignment ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Note that you can specify an optional 'take' parameter to specify the maximum number assignments to take. The default is 1. It is recommended to take as few assignments as possible in order to reduce response time and overhead.
take | integer The number of assignments per territory to take. If omitted the default of 1 will be used. |
[- {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
Note that you can specify an optional 'take' parameter to specify the maximum number assignments to take. The default is 1. It is recommended to take as few assignments as possible in order to reduce response time and overhead.
territory_id required | string The territory ID or URL ID. |
take | integer The number of assignments to take. If omitted the default of 1 will be used. |
[- {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
There are no mandatory values (you can omit the Assignment body). Note that the following values are ignored if you supply them: Id, TerritoryId, PublisherName, DateNotified, DateReturned, NotifierId, DateModified, CreatorId, and LastModifierId. If you omit PublisherId, then the current user is assumed. If you omit DateAssigned, then the current date is assumed. The newly-added assignment is returned as the response content.
Note that the user's ability to assign territories depends on his role.
You should specify the DateAssigned value using your local time. If you leave the DateAssigned null then the territory will still be booked out but the DateAssigned will be set by the server which operates in UTC (so the DateAssigned value may be some hours different from your local time).
territory_id required | string The territory ID or URL ID. |
The assignment.
Id | integer <int32> |
TerritoryId | integer <int32> |
integer or null | |
integer or null | |
PublisherName | string <= 100 characters |
string or null | |
Unworked | boolean |
DateAssigned | string <date-time> |
string or null | |
integer or null The publisher that notified the assignee on the assignment being overdue | |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
assignment_id required | integer The assignment ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Can be used to return (i.e. check-in) a worked territory map. Note that the following values are ignored if you supply them: Id, TerritoryId, PublisherName, DateNotified, NotifierId, DateModified, CreatorId, and LastModifierId. The updated assignment is returned as the response content.
When updating an Assignment you must supply all applicable values (there is no PATCH method to update a subset of the Assignment's properties).
If you update any datetime values (e.g. DateReturned), please use your local time.
territory_id required | string The territory ID or URL ID. |
assignment_id required | integer The assignment ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
assignment_id required | integer The assignment ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
assignment_id required | integer The assignment ID. |
return_date | string <date-time> Use your local timezone. If omitted the current date and time will be used. |
unworked | boolean Whether the territory assignment was unworked. |
notes | string Notes about the assignment for the servants. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
This API can be used to retreive all territory and campaign territory assignments along with related data, and is more efficient than making multiple API calls to retrieve the discrete data.
publisher_id required | integer The publisher ID. |
visits | string assignment: (Default) Include visit data for the current assignment. |
{- "CompositeTerritories": [
- {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
]
}
]
}
], - "CompositeCampaignTerritories": [
- {
- "Territory": {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": null,
- "StatusId": null,
- "TerritoryId": null,
- "LocationId": null,
- "LocationUnitId": null,
- "TerritoryAssignmentId": null,
- "CampaignId": null,
- "PublisherId": null,
- "DateVisited": null,
- "DateCreated": null,
- "DateModfied": null,
- "CreatorId": null,
- "LastModifierId": null
}
]
}
]
}
]
}, - "CampaignTerritory": {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Campaign": {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
}
]
}
This API can be used to retreive all territory and campaign territory assignments along with related data, and is more efficient than making multiple API calls to retrieve the discrete data.
visits | string assignment: Include visit data for the current assignment. |
{- "CompositeTerritories": [
- {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
]
}
]
}
], - "CompositeCampaignTerritories": [
- {
- "Territory": {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": null,
- "StatusId": null,
- "TerritoryId": null,
- "LocationId": null,
- "LocationUnitId": null,
- "TerritoryAssignmentId": null,
- "CampaignId": null,
- "PublisherId": null,
- "DateVisited": null,
- "DateCreated": null,
- "DateModfied": null,
- "CreatorId": null,
- "LastModifierId": null
}
]
}
]
}
]
}, - "CampaignTerritory": {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Campaign": {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
}
]
}
[- {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
campaign_id required | integer The campaign ID. |
[- {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
campaign_id required | integer The campaign ID. |
territory_id required | string The territory ID or URL ID. |
{- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
The only properties that can be changed are complete_date and notes.
The localTime query string field to specify the user's local datetime in ISO8601 (otherwise the server will use UTC).
The campaign_territory body can be left null and the remaining properties will be ignored when updating the campaign territory.
campaign_id required | integer The campaign ID. |
territory_id required | string The territory ID or URL ID. |
complete_date | string <date-time> If left NULL the current date will be used. |
The modified campaign territory.
CampaignId | integer <int32> |
TerritoryId | integer <int32> |
integer or null | |
integer or null | |
PublisherName | string <= 100 characters |
string or null | |
integer or null | |
integer or null | |
string or null The short URL code used in the QR code. | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Deletes an existing campaign territory assignment and informs the territory servants (administrators and servants) that it was returned unworked.
campaign_id required | integer The campaign ID. |
territory_id required | string The territory ID or URL ID. |
{- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
campaign_id required | integer The campaign ID. |
territory_id required | string The territory ID or URL ID. |
complete_date | string <date-time> If left NULL the current date will be used. |
unworked | boolean |
notes | string |
{- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
This API can be used to retreive a specified campaign territory along with related data, and is more efficient than making multiple API calls to retrieve the discrete data.
campaign_id required | integer <int32> The campaign ID. |
territory_id required | string The territory ID or URL ID. |
visits | string assignment: (Default) Include visit data for the current assignment. |
{- "Territory": {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
]
}
]
}, - "CampaignTerritory": {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Campaign": {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
}
This API can be used to retreive the assigned campaign territories along with related data, and is more efficient than making multiple API calls to retrieve the discrete data.
visits | string assignment: Include visit data for the current assignment. |
[- {
- "Territory": {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
]
}
]
}, - "CampaignTerritory": {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Campaign": {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
}
]
This API can be used to retreive all territory and campaign territory assignments along with related data, and is more efficient than making multiple API calls to retrieve the discrete data.
publisher_id required | integer The publisher ID. |
visits | string assignment: (Default) Include visit data for the current assignment. |
{- "CompositeTerritories": [
- {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
]
}
]
}
], - "CompositeCampaignTerritories": [
- {
- "Territory": {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": null,
- "StatusId": null,
- "TerritoryId": null,
- "LocationId": null,
- "LocationUnitId": null,
- "TerritoryAssignmentId": null,
- "CampaignId": null,
- "PublisherId": null,
- "DateVisited": null,
- "DateCreated": null,
- "DateModfied": null,
- "CreatorId": null,
- "LastModifierId": null
}
]
}
]
}
]
}, - "CampaignTerritory": {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Campaign": {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
}
]
}
This API can be used to retreive all territory and campaign territory assignments along with related data, and is more efficient than making multiple API calls to retrieve the discrete data.
visits | string assignment: Include visit data for the current assignment. |
{- "CompositeTerritories": [
- {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
}
]
}
]
}
], - "CompositeCampaignTerritories": [
- {
- "Territory": {
- "DisplayName": "string",
- "Territory": {
- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryType": {
- "Id": 0,
- "Code": "string",
- "Name": "string",
- "Color": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Assignment": {
- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "TerritoryNotes": {
- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "CompositeLocations": [
- {
- "Location": {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
], - "Units": [
- {
- "LocationUnit": {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Visits": [
- {
- "Id": null,
- "StatusId": null,
- "TerritoryId": null,
- "LocationId": null,
- "LocationUnitId": null,
- "TerritoryAssignmentId": null,
- "CampaignId": null,
- "PublisherId": null,
- "DateVisited": null,
- "DateCreated": null,
- "DateModfied": null,
- "CreatorId": null,
- "LastModifierId": null
}
]
}
]
}
]
}, - "CampaignTerritory": {
- "CampaignId": 0,
- "TerritoryId": 0,
- "PublisherId": 0,
- "ServiceGroupId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "DateAssigned": 0,
- "DateCompleted": 0,
- "ShortUrlCode": "string",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}, - "Campaign": {
- "Id": 0,
- "CongregationId": 0,
- "Name": "string",
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
}
]
}
territory_id required | string The territory ID or URL ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Territory Helper will automatically handle the modification of territory notes depending on congregation settings and publisher role.
Publishers with administrators and servant roles will bypass suggested notes and directly set the territory notes.
territory_id required | string The territory ID or URL ID. |
notes | string If left NULL the notes will be cleared. |
{- "Id": 0,
- "TerritoryId": 0,
- "Notes": "string",
- "NotesSuggested": "string",
- "NotesSuggestedPublisherId": 0,
- "NotesSuggestedDate": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
[- {
- "Id": 0,
- "TerritoryId": 0,
- "TagId": 0,
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
territory_id required | string The territory ID or URL ID. |
[- {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
territory_id required | string The territory ID or URL ID. |
The new location.
Id | integer <int32> |
CongregationId | integer <int32> |
integer or null | |
Approved | boolean |
TypeId | integer <byte> |
StatusId | integer <byte> |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null JSON encoded coordinates. | |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
{- "Id": 0,
- "UrlId": "string",
- "CongregationId": 0,
- "TerritoryTypeId": 0,
- "Number": "string",
- "Boundary": "string",
- "CenterCoordinates": "string",
- "ShapeType": "string",
- "Notes": "string",
- "Label": "string",
- "Address": "string",
- "ShortUrlCode": "string",
- "IncludeStatistics": true,
- "ViewUrl": "string",
- "PrintUrl": "string",
- "TerritoryUrl": "string",
- "StaticUrl": "string",
- "TerritoryImage": "string",
- "BoundaryDateModified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
The modified location.
Id | integer <int32> |
CongregationId | integer <int32> |
integer or null | |
Approved | boolean |
TypeId | integer <byte> |
StatusId | integer <byte> |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null JSON encoded coordinates. | |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
location_id required | integer <int32> The location ID. |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
location_id required | integer <int32> The location ID. |
The modified location.
Id | integer <int32> |
CongregationId | integer <int32> |
integer or null | |
Approved | boolean |
TypeId | integer <byte> |
StatusId | integer <byte> |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null JSON encoded coordinates. | |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
location_id required | integer <int32> The location ID. |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
The modified location.
Id | integer <int32> |
CongregationId | integer <int32> |
integer or null | |
Approved | boolean |
TypeId | integer <byte> |
StatusId | integer <byte> |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null JSON encoded coordinates. | |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Adding locations in a batch using this API is quicker than making multiple calls to add individual locations. Note that the batch is applied transactionally, which means either all the specified locations are added or none are.
territory_id required | string The territory ID or URL ID. |
The locations to be added in batch.
Id | integer <int32> |
CongregationId | integer <int32> |
integer or null | |
Approved | boolean |
TypeId | integer <byte> |
StatusId | integer <byte> |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null JSON encoded coordinates. | |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
[- {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- 0
]
Updating locations in a batch using this API is quicker than making multiple calls to update individual locations. Note that the batch is applied transactionally, which means either all the specified locations are updated or none are.
territory_id required | string The territory ID or URL ID. |
The locations to be modified in batch.
Id | integer <int32> |
CongregationId | integer <int32> |
integer or null | |
Approved | boolean |
TypeId | integer <byte> |
StatusId | integer <byte> |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null JSON encoded coordinates. | |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
[- {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- 0
]
Deleting locations in a batch using this API is quicker than making multiple calls to delete individual locations. Note that the batch is applied transactionally, which means either all the specified locations are deleted or none are.
territory_id required | string The territory ID or URL ID. |
The locations to be deleted in batch.
Id | integer <int32> |
CongregationId | integer <int32> |
integer or null | |
Approved | boolean |
TypeId | integer <byte> |
StatusId | integer <byte> |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null | |
string or null JSON encoded coordinates. | |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
[- {
- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- 0
]
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
[- {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
The added location unit.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
location_id required | integer <int32> The location ID. |
[- {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
location_id required | integer <int32> The location ID. |
The added location unit.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
location_id required | integer <int32> The location ID. |
{- "Id": 0,
- "CongregationId": 0,
- "TerritoryId": 0,
- "Approved": true,
- "TypeId": 0,
- "StatusId": 0,
- "Address": "string",
- "Number": "string",
- "StreetName": "string",
- "City": "string",
- "County": "string",
- "PostalCode": "string",
- "State": "string",
- "CountryCode": "st",
- "LatLng": "string",
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
The added location unit.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
location_id required | integer <int32> The location ID. |
unit_id required | integer <int32> The location unit ID. |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
location_id required | integer <int32> The location ID. |
unit_id required | integer <int32> The location unit ID. |
The modified location unit.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
location_id required | integer <int32> The location ID. |
unit_id required | integer <int32> The location unit ID. |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
unit_id required | integer <int32> The location unit ID. |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
unit_id required | integer <int32> The location unit ID. |
The modified location unit.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
unit_id required | integer <int32> The location unit ID. |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
unit_id required | integer <int32> The location unit ID. |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
unit_id required | integer <int32> The location unit ID. |
The modified location unit.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
unit_id required | integer <int32> The location unit ID. |
{- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
Adding units in a batch using this API is quicker than making multiple calls to add individual units. Note that the batch is applied transactionally, which means either all the specified units are added or none are.
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
The location units to be added in batch.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
[- {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- 0
]
Updating units in a batch using this API is quicker than making multiple calls to update individual units. Note that the batch is applied transactionally, which means either all the specified units are updated or none are.
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
The location units to be modified in batch.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
[- {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- 0
]
Deleting units in a batch using this API is quicker than making multiple calls to delete individual units. Note that the batch is applied transactionally, which means either all the specified units are deleted or none are.
territory_id required | string The territory ID or URL ID. |
location_id required | integer <int32> The location ID. |
The location units to be deleted in batch.
Id | integer <int32> |
LocationId | integer <int32> |
Approved | boolean |
StatusId | integer <byte> |
string or null | |
Floor | integer <int16> |
string or null | |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
[- {
- "Id": 0,
- "LocationId": 0,
- "Approved": true,
- "StatusId": 0,
- "Number": "string",
- "Floor": 0,
- "DateLastVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
[- 0
]
language_id | string The language ID. The publisher's language code will be used if not specified. |
[- {
- "Id": 0,
- "InternalName": "string",
- "LocalizedName": "string"
}
]
status_id required | integer <int32> The location status ID. |
language_id | string The language ID. The publisher's language code will be used if not specified. |
{- "Id": 0,
- "InternalName": "string",
- "LocalizedName": "string"
}
language_id | string The language ID. The publisher's language code will be used if not specified. |
[- {
- "Id": 0,
- "InternalName": "string",
- "LocalizedName": "string"
}
]
type_id required | integer <int32> The location type ID. |
language_id | string The language ID. The publisher's language code will be used if not specified. |
{- "Id": 0,
- "InternalName": "string",
- "LocalizedName": "string"
}
territory_id required | string The territory ID or URL ID. |
assignment_id required | integer <int32> The territory assignment ID. |
[- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
Adds a visit or updates an existing visit within the territory assignment.
Note that there is no PUT equivalent. Use POST to both add a new visit and update an existing one. (There is only ever 0 or 1 visits associated with a location for a given territory assignment, so POST will always update the visit if it already exists.)
The following Visit values are mandatory: StatusId, TerritoryId (but you can omit it if it is specified in the route), LocationId (or LocationUnitId). You should also explicitly set the DateVisited value if it is to be changed. Use your congregation's local time. Suitable defaults are used for other values that are unspecified.
Note that if you are specifying LocationUnitId it is not necessary to specify LocationId.
territory_id required | string The territory ID or URL ID. |
assignment_id required | integer <int32> The territory assignment ID. |
The added or modified visit.
Id | integer <int32> |
StatusId | integer <byte> |
TerritoryId | integer <int32> |
integer or null | |
integer or null | |
integer or null | |
integer or null | |
PublisherId | integer <int32> |
DateVisited | string <date-time> |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
assignment_id required | integer <int32> The territory assignment ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
assignment_id required | integer <int32> The territory assignment ID. |
[- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
Adds a visit or updates an existing visit within the territory assignment.
Note that there is no PUT equivalent. Use POST to both add a new visit and update an existing one. (There is only ever 0 or 1 visits associated with a location for a given territory assignment, so POST will always update the visit if it already exists.)
The following Visit values are mandatory: StatusId, TerritoryId (but you can omit it if it is specified in the route), LocationId (or LocationUnitId). You should also explicitly set the DateVisited value if it is to be changed. Use your congregation's local time. Suitable defaults are used for other values that are unspecified.
Note that if you are specifying LocationUnitId it is not necessary to specify LocationId.
assignment_id required | integer <int32> The assignment ID. |
The added or modified visit.
Id | integer <int32> |
StatusId | integer <byte> |
TerritoryId | integer <int32> |
integer or null | |
integer or null | |
integer or null | |
integer or null | |
PublisherId | integer <int32> |
DateVisited | string <date-time> |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
assignment_id required | integer <int32> The territory assignment ID. |
{- "Id": 0,
- "TerritoryId": 0,
- "ServiceGroupId": 0,
- "PublisherId": 0,
- "PublisherName": "string",
- "Notes": "string",
- "Unworked": true,
- "DateAssigned": "2019-08-24T14:15:22Z",
- "DateReturned": "2019-08-24T14:15:22Z",
- "NotifierId": 0,
- "DateNotified": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
verbose | boolean true: All visit data for each location and unit. |
[- {
- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
]
The following Visit values are mandatory: StatusId, LocationId (or LocationUnitId). You must not specify an AssignmentId (use the "assigments" route if required). You should explicitly set the DateVisited value if it is to be changed. Use your congregation's local time. Suitable defaults are used for other values that are unspecified.
Note that if you are specifying LocationUnitId it is not necessary to specify LocationId.
territory_id required | string The territory ID or URL ID. |
The added or modified visit.
Id | integer <int32> |
StatusId | integer <byte> |
TerritoryId | integer <int32> |
integer or null | |
integer or null | |
integer or null | |
integer or null | |
PublisherId | integer <int32> |
DateVisited | string <date-time> |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
location_id | integer <int32> The location ID. |
unit_id | integer <int32> The location unit ID. |
assignment_id | integer <int32> The assignment ID. |
campaign_id | integer <int32> The campaign ID. |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
assignment_id required | integer <int32> The territory assignment ID. |
visit_id required | integer <int32> The visit ID. |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
assignment_id required | integer <int32> The territory assignment ID. |
visit_id required | integer <int32> The visit ID. |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
assignment_id required | integer <int32> The territory assignment ID. |
visit_id required | integer <int32> The visit ID. |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
assignment_id required | integer <int32> The territory assignment ID. |
visit_id required | integer <int32> The visit ID. |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
The following Visit values are mandatory: StatusId, LocationId (or LocationUnitId). You must not specify an AssignmentId (use the "assigments" route if required). You should explicitly set the DateVisited value if it is to be changed. Use your congregation's local time. Suitable defaults are used for other values that are unspecified.
Note that if you are specifying LocationUnitId it is not necessary to specify LocationId.
territory_id required | string The territory ID or URL ID. |
visit_id required | integer <int32> The visit ID. |
The modified visit.
Id | integer <int32> |
StatusId | integer <byte> |
TerritoryId | integer <int32> |
integer or null | |
integer or null | |
integer or null | |
integer or null | |
PublisherId | integer <int32> |
DateVisited | string <date-time> |
DateCreated | string <date-time> |
string or null | |
CreatorId | integer <int32> |
integer or null |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
territory_id required | string The territory ID or URL ID. |
visit_id required | integer <int32> The visit ID. |
{- "Id": 0,
- "StatusId": 0,
- "TerritoryId": 0,
- "LocationId": 0,
- "LocationUnitId": 0,
- "TerritoryAssignmentId": 0,
- "CampaignId": 0,
- "PublisherId": 0,
- "DateVisited": "2019-08-24T14:15:22Z",
- "DateCreated": "2019-08-24T14:15:22Z",
- "DateModfied": "2019-08-24T14:15:22Z",
- "CreatorId": 0,
- "LastModifierId": 0
}
language_id | string The language ID. The publisher's language code will be used if not specified. |
[- {
- "Id": 0,
- "InternalName": "string",
- "LocalizedName": "string"
}
]
status_id required | integer <int32> The visit status ID. |
language_id | string The language ID. The publisher's language code will be used if not specified. |
{- "Id": 0,
- "InternalName": "string",
- "LocalizedName": "string"
}