Back to endpoints

Get an activity's attendance per occurrence for an organization

GET api/V3/{language}/org/{orgIdentifier}/activities/{id}/attendance

?page={page}

&perPage={perPage}

Returns a list of activity occurrences (events) with their attendance lists.

Request Information

URI Parameters

PARAMETERS
language (string)

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

Required
orgIdentifier (string)

Amilia-specific organization identifier. This identifier can be either the organization number, such as 8008, or the organization URL identifier. You can find that by looking at the URL of your Amilia store. It may look like lower-case words separated by a dash, such as forest-explorers. Note that in v2 and v1 we call that the 'rewrite URL'.

Required
id (integer)

Activity id

Required
page (integer)

Result page number that appears first.

Default value is 1

Optional
perPage (integer)

Number of results per page.

Default value is 200

Optional

Body Parameters

None.

Response Information

Resource Description

PARAMETERS
Id (integer)

Resource id

Attendance ()
Start (date)

Inclusive start limit. Format is 9999-12-31

End (date)

Inclusive end limit. Format is 9999-12-31

Response Formats

CODE SAMPLE JSON
[
  {
    "Id": 1,
    "Attendance": [
      {
        "PersonId": 1,
        "Status": "string 2"
      },
      {
        "PersonId": 1,
        "Status": "string 2"
      }
    ],
    "Start": "2022-09-01T12:47:27.0369976-04:00",
    "End": "2022-09-01T12:47:27.0369976-04:00"
  },
  {
    "Id": 1,
    "Attendance": [
      {
        "PersonId": 1,
        "Status": "string 2"
      },
      {
        "PersonId": 1,
        "Status": "string 2"
      }
    ],
    "Start": "2022-09-01T12:47:27.0369976-04:00",
    "End": "2022-09-01T12:47:27.0369976-04:00"
  }
]