Back to endpoints

Get a list of attendance for persons registered for an event (occurrence)

GET PublicApi/{rewriteUrl}/{language}/Attendance/{id}/CreateAndGetPersonAttendance

The id in Attendance/{id} refers to an event (occurrence) and you can get it from /Events. Returns a list of people along with their attendance status and list of user-defined values. Attendance status has possible values None and Present.

Request Information

URI Parameters

PARAMETERS
rewriteUrl (string)

Unique, url-friendly organization token. Part of base url

Required
language (string)

Language in which the localizable values should be returned. Part of base url. Value is either 'fr' or 'en'

Required
id (integer)

Occurrence id

Required

Body Parameters

None.

Response Information

Resource Description

PARAMETERS
Id (integer)

Resource id

AmiliaId (string)
SegmentId (integer)
FirstName (string)

First name of the person

LastName (string)

Last name of the person

PictureId (integer)
PictureUrl (string)

Url of the resource picture

Gender (Gender)

Object containing the gender values NotSpecified, Male, Female and PreferNotToSay

DateOfBirth (date)

Format is 9999-12-31

Age (integer)

Object containing minimum and maximum ages, and the option to specify age in months

MedicalInformation (MedicalInformations)

Object containing the medical information (allergies, sicknesses, reactions, medication) for a person

RegistrationInformation (ActivityPersonInfoApiModel)
Contacts ()

Object containing the persons who are listed as contacts and their details

UpdatedOn (date)

Date the resource was updated. Format is 9999-12-31

Status (ActivitySegmentAttendanceStatus)

Object containing the possible status values (case-insensitive).

Values ()
AccountId (integer)

Id of the account

ExpectedBalance (decimal number)

Response Formats

CODE SAMPLE JSON
[
  {
    "Id": 0,
    "AmiliaId": "P095637",
    "SegmentId": 0,
    "FirstName": "Marty",
    "LastName": "McFly",
    "PictureId": 8888,
    "PictureUrl": "marty1985@docbrown.com",
    "Gender": 0,
    "DateOfBirth": "2022-09-01T12:47:27.9198959-04:00",
    "Age": 0,
    "MedicalInformation": {
      "Allergies": {},
      "Sicknesses": {},
      "Reactions": "",
      "MedicationDosage": "",
      "MedicationFrequency": "",
      "MedicationOther": "",
      "OtherAllergy": "",
      "OtherSickness": "",
      "IsPerfectHealth": true,
      "HasSickness": false,
      "HasAllergy": false
    },
    "RegistrationInformation": {
      "UpdatedOn": "0001-01-01T00:00:00",
      "Alias": "MM",
      "FriendRequest": "Doc Brown"
    },
    "Contacts": [
      {
        "FirstName": "Dad",
        "LastName": "McFly",
        "PhoneNumber": "555 555 5555",
        "Role": "father",
        "Relationship": "father"
      },
      {
        "FirstName": "Mom",
        "LastName": "McFly",
        "PhoneNumber": "555 555 5555",
        "Role": "mother",
        "Relationship": "mother"
      }
    ],
    "UpdatedOn": "0001-01-01T00:00:00",
    "Status": "Present",
    "Values": [
      ""
    ],
    "AccountId": 0,
    "ExpectedBalance": 0.0
  },
  {
    "Id": 0,
    "AmiliaId": "P095637",
    "SegmentId": 0,
    "FirstName": "Marty",
    "LastName": "McFly",
    "PictureId": 8888,
    "PictureUrl": "marty1985@docbrown.com",
    "Gender": 0,
    "DateOfBirth": "2022-09-01T12:47:27.9198959-04:00",
    "Age": 0,
    "MedicalInformation": {
      "Allergies": {},
      "Sicknesses": {},
      "Reactions": "",
      "MedicationDosage": "",
      "MedicationFrequency": "",
      "MedicationOther": "",
      "OtherAllergy": "",
      "OtherSickness": "",
      "IsPerfectHealth": true,
      "HasSickness": false,
      "HasAllergy": false
    },
    "RegistrationInformation": {
      "UpdatedOn": "0001-01-01T00:00:00",
      "Alias": "MM",
      "FriendRequest": "Doc Brown"
    },
    "Contacts": [
      {
        "FirstName": "Dad",
        "LastName": "McFly",
        "PhoneNumber": "555 555 5555",
        "Role": "father",
        "Relationship": "father"
      },
      {
        "FirstName": "Mom",
        "LastName": "McFly",
        "PhoneNumber": "555 555 5555",
        "Role": "mother",
        "Relationship": "mother"
      }
    ],
    "UpdatedOn": "0001-01-01T00:00:00",
    "Status": "Present",
    "Values": [
      ""
    ],
    "AccountId": 0,
    "ExpectedBalance": 0.0
  }
]