Absorb Integration API (v2)
Download OpenAPI specification:Download
Update attendance record.
Update an existing attendance record associated with the identified session, session schedule, and attendance record.
Authorizations:
path Parameters
id required | string <guid> The attendance Id. |
sessionId required | string <guid> The session Id. |
sessionScheduleId required | string <guid> The session schedule Id. |
header Parameters
x-api-key | string |
x-api-version | string 2 |
Request Body schema: application/json
The request body including whether or not the learner was present.
isPresent required | boolean true if the user has been marked as present. |
Responses
Response Schema: application/json
attendanceId | string <guid> The attendance Id. |
isPresent | boolean true if the user has been marked as present. |
Request samples
- Payload
{- "isPresent": true
}
Response samples
- 200
- 400
- 403
- 404
- 422
{- "attendanceId": "string",
- "isPresent": true
}
Create attendance record.
Create a new attendance record associated with the identified session and session schedule.
Authorizations:
path Parameters
sessionId required | string <guid> The session Id. |
sessionScheduleId required | string <guid> The session schedule Id. |
header Parameters
x-api-key | string |
x-api-version | string 2 |
Request Body schema: application/json
The request body including the session enrollment identifier and whether or not the learner was present.
id | string <guid> The optional unique identifier of the attendance record. If not provided, one will be created. |
sessionEnrollmentId required | string <guid> non-empty The unique identifier of the session enrollment the attendance belongs to. |
isPresent required | boolean true if the user has been marked as present. |
Responses
Response Schema: application/json
attendanceId | string <guid> The attendance Id. |
isPresent | boolean true if the user has been marked as present. |
Request samples
- Payload
{- "id": "string",
- "sessionEnrollmentId": "string",
- "isPresent": true
}
Response samples
- 201
- 400
- 401
- 404
- 422
{- "attendanceId": "string",
- "isPresent": true
}
List attendance records.
List all attendance records associated with the identified session and session schedule.
Authorizations:
path Parameters
sessionId required | string <guid> The session Id. |
sessionScheduleId required | string <guid> The session schedule Id. |
query Parameters
_filter | string One or more filter operations to be performed on the collection. The referenced fields must allow filtering. See the respective report's schema for which fields can be filtered. Supports most of the OData filter syntax. Supported operations: * eq, * ne, * gt, * ge, * lt, * le, * and, * or, * not, * () Supported functions: * substringof('value',fieldName), * endswith(fieldName,'value'), * startswith(fieldName,'value'), * tolower(fieldName), * toupper(fieldName) Examples:
|
_sort | string Optional list of comma-separated fields to sort the collection by. The referenced fields must allow sorting. See the respective report's schema for which fields can be sorted. If not specified, all report fields are returned. To sort in a descending manner, prefix the field name with |
_limit | string The maximum number of items to return in the current page of the collection. |
_offset | string The number of pages to offset into the collection. |
header Parameters
x-api-key | string |
x-api-version | string 2 |
Responses
Response Schema: application/json
totalItems | integer <int32> The total number of items in the unbounded collection |
returnedItems | integer <int32> The number of items in the bound collection being returned |
limit | integer <int32> The current page size for the collection |
offset | integer <int32> The current offset for the collection |
Array of objects (AttendanceResource) A collection of AttendanceResource. |
Response samples
- 200
- 404
- 422
{- "totalItems": 0,
- "returnedItems": 0,
- "limit": 0,
- "offset": 0,
- "attendances": [
- {
- "id": "string",
- "sessionEnrollmentId": "string",
- "isPresent": true,
- "dateEdited": "2019-08-24T14:15:22Z",
- "userId": "string"
}
]
}