Page tree

GET

/:site_number/connections/assignments/:connection_typeid

Returns a list of connections assigned to the user by the Connection TypeId.

Example

https://secure.accessacs.com/api_accessacs_mobile/v2/12345/connections/assignments/2045?&pageIndex=0&pageSize=50

Notes

pageIndex and pageSize are not required for the API to work properly. These fields allow you to limit the number of records returned at one time and the point when you begin pulling information. If you do not enter this information, the index default is 0 and the size default is 50.  

For example, you are looking for all the individuals with the first name John. 300 records match your criteria. If you leave the defaults, the first 50 matches display. If you change the pageIndex to 2, the next 50 matches are returned.

Required Permissions

The user must fall into one of the categories below:

  • System Administration

  • A user with the following rights:

    • Ability to Assign Contacts

    • View rights to at least one Connection Type

Request Header

Basic Authorization is used to determine security rights for the user credentials supplied using the following parameters.

username: "jadams"

password: "password231"

URL Parameters

site_number – The site number to gather data for.

connection_typeid – The connection id for the type of connection you are searching for.  Values from Connection Type API.

pageIndex – (Optional) Page number for the search results; begins with the 0 value entered for the first set of results.

pageSize – (Optional) Number of results to return per page. 

Return Data

{
    "Page": [
        {
            "ConnectionId": 2045,
            "ConnectionTypeId": 1,
            "ConnectionTypeDescription": "Pastor Visit",
            "ContactType": "Outward",
            "DueDate": "11/19/2010",
            "DueDateLong": "Friday, November 19, 2010",
            "Completed": false,
            "TeamMemberCount": 1,
            "ContactInformation": {
                "IndvId": 789,
                "FamId": 1397,
                "FamilyPosition": "Head",
                "Title": "Mr.",
                "FirstName": "James",
                "LastName": "Aaron",
                "MiddleName": null,
                "GoesByName": null,
                "Suffix": null,
                "PictureUrl": ""
            },
            "TeamMembers": []
        },
        {
            "ConnectionId": 2067,
            "ConnectionTypeId": 1,
            "ConnectionTypeDescription": "Pastor Visit",
            "ContactType": "Outward",
            "DueDate": "11/19/2010",
            "DueDateLong": "Friday, November 19, 2010",
            "Completed": false,
            "TeamMemberCount": 1,
            "ContactInformation": {
                "IndvId": 310,
                "FamId": 1166,
                "FamilyPosition": "Child",
                "Title": "Miss",
                "FirstName": "Betsy",
                "LastName": "Aaron",
                "MiddleName": null,
                "GoesByName": null,
                "Suffix": null,
                "PictureUrl": <Full Picture Url>
            },
            "TeamMembers": []
        },
        {
            "ConnectionId": 2071,
            "ConnectionTypeId": 1,
            "ConnectionTypeDescription": "Pastor Visit",
            "ContactType": "Outward",
            "DueDate": "12/20/2010",
            "DueDateLong": "Monday, December 20, 2010",
            "Completed": false,
            "TeamMemberCount": 1,
            "ContactInformation": {
                "IndvId": 77,
                "FamId": 1042,
                "FamilyPosition": "Spouse",
                "Title": "Mrs.",
                "FirstName": "Jane",
                "LastName": "Aaron",
                "MiddleName": null,
                "GoesByName": null,
                "Suffix": null,
                "PictureUrl": <Full Picture Url>
            },
            "TeamMembers": []
        }
    ],
    "PageCount": 1,
    "PageIndex": 0,
    "PageSize": 10
}