VLE

This page is under construction
We’re working on it!

Set of API endpoints that allows access to VLE related models.

Table of Contents

  1. VLE Management
  2. VLE Course Management
  3. VLE Instrument Management
  4. VLE Course Instructor Management
  5. VLE Course Learner Management
  6. VLE Course Activity Management
  7. VLE Course Activity Attachment Management
  8. VLE Course Activity Instrument Management
  9. VLE Course Activity Learner Management
  10. VLE Course Activity Report Management



1. VLE Management


1.1 GET: List VLE
1.2 GET: Read VLE
1.3 POST: VLE Assesment : create a new assessment session.
1.4 POST: VLE Launcher : create a new launcher url for VLE user.


1.1 List VLE

API endpoint for listing Providers.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
searchstringA search term.
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of Objects (VLE)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "type": "string",
    "name": "string",
    "url": "string",
    "client_id": "string"
  }
]
}

1.2 Read VLE

Retrieves information about a VLE.

Request

ConceptData
HTTP methodGET
Path/api/v2/vle/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
integerRequest path parameter. A unique integer value identifying this VLE.
Response parameters.
NameTypeComments
idinteger (ID)-
type
required
string (Type)
non-empty.
-
name
required
string (Name)
[1 .. 250] characters
VLE unique name.
urlstring (Url name)
Nullable
VLE url.
client_idstring (Client_id)
[1 .. 250] characters
Nullable
LTI 1.3 Client ID.

Responses

Response sample: 200

200
{
  "id": 0,
  "type": "string",
  "name": "string",
  "url": "string",
  "client_id": "string"
}

1.3 VLE Assessment

API endpoint that creates a new assessment session.

Request

ConceptData
HTTP methodPOST
Path/api/v2/vle/{id}/assessment/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
integerRequest path parameter. A unique integer value identifying this VLE.
dataobject (VLENewAssessmentSessionData)-
checked_atstring <date-time> (Checked at)
Nullable.
Last time this assessment session has been checked.
closed_atstring <date-time> (Closed at)
Nullable.
Date the assessment session has been closed.
auto_closedboolean (Auto closed)
Nullable.
Whether this session has been automatically closed.
activity
required
integer (Activity)Activity of this session.
learner
required
string (Learner)Learner of this session.
Response parameters.
NameTypeComments
idinteger (ID)-
dataobject (VLENewAssessmentSessionData)-
started_atstring <date-time> (Started at)
Nullable.
Date when this assessment session started.
checked_atstring <date-time> (Checked at)
Nullable.
Last time this assessment session has been checked.
closed_atstring <date-time> (Closed at)
Nullable.
Date the assessment session has been closed.
auto_closedboolean (Auto closed)
Nullable.
Whether this session has been automatically closed.
activity
required
integer (Activity)Activity of this session.
learner
required
string (Learner)Learner of this session.

Request Sample:

{
  "data": {
    "session": 0
  },
  "checked_at": "2019-08-24T14:15:22Z",
  "closed_at": "2019-08-24T14:15:22Z",
  "auto_closed": true,
  "activity": 0,
  "learner": "string"
}

Responses

Response sample: 201

201
{
  "id": 0,
  "data": {
    "id": 0,
    "connector": "http://example.com",
    "data": "http://example.com",
    "session": 0
  },
  "started_at": "2019-08-24T14:15:22Z",
  "checked_at": "2019-08-24T14:15:22Z",
  "closed_at": "2019-08-24T14:15:22Z",
  "auto_closed": true,
  "activity": 0,
  "learner": "string"
}

1.4 VLE Launcher

API endpoint that creates a new launcher url for VLE user.

Request

ConceptData
HTTP methodPOST
Path/api/v2/vle/{vle_user_uid}/launcher/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
vle_user_uid
required
stringIdentifier of the user in the vle.
vle_id
intIdentifier of the vle. If not provided take it from module configuration.
targetstringThe target for the launcher. Accepted values are "dashboard" (default) and "lapi".
Default: 'DASHBOARD'
target_urlstringThe url where launcher is expected to be redirected.
ttlintThe amount of time this launcher will be valid.
Default: 120
session_idintThe assessment session linked to this launcher.
Response parameters.
NameTypeComments
-dictLauncher id and token.

Request Sample:

{
	"vle_user_uid": "learner1@example.com",
    "target": "DASHBOARD",
    "ttl": 120,
    "session_id": null,
    "target_url": null
}

Responses

Response sample: 200

200
{
  "token": "df249481-1ad6-4c2e-ba8e-2db10132b5f4",
  "id": 123,
  "url": "https://yourdomain.com/ui/auth/launcher?id=123&token=df249481-1ad6-4c2e-ba8e-2db10132b5f4"
}




2. VLE Course Management


Set of API endpoints that allow a course in a VLE to be viewed or edited.

2.1 GET: List VLE Courses
2.2 POST: Create VLE Course
2.3 GET: Read VLE Course
2.4 PUT: Update VLE Course
2.5 PATCH: Partial Update VLE Course
2.6 DELETE: Delete VLE Course


2.1 List VLE Courses

API endpoint for listing Courses in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_vle_id
required
stringRequest path parameter.
searchstringA search term
codestring-
vle_course_idstring-
descriptionstring-
vlestring-
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of objects (VLECourse)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "vle": {
      "id": 0,
      "type": "string",
      "name": "string",
      "url": "string",
      "client_id": "string"
    },
    "code": "string",
    "vle_course_id": "string",
    "description": "string",
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
]
}

2.2 Create VLE Course

API endpoint for creating a new Course in a VLE.

Request

ConceptData
HTTP MethodPOST
Path/api/v2/vle/{parent_lookup_vle_id}/course/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_vle_id
required
stringRequest path parameter.
vleobject (VLE)-
code
required
string (Code)
[1 .. 250] characters
Course code.
vle_course_id
required
string (VLE Course ID)
[1 .. 250] characters
Course ID on the VLE.
descriptionstring (Description)
Nullable.
Course description.
startstring <date-time> (Start)
Nullable.
When course starts.
endstring <date-time>
Nullable.
When course ends.
Response parameters.
NameTypeComments
idinteger (ID)-
vleobject (VLE)-
code
required
string (Code)
[1 .. 250] characters
Course code.
vle_course_id
required
string (VLE Course ID)
[1 .. 250] characters
Course ID on the VLE.
descriptionstring (Description)
Nullable.
Course description.
startstring <date-time> (Start)
Nullable.
When course starts.
endstring <date-time>
Nullable.
When course ends.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Request Sample:

{
  "vle": {
    "type": "string",
    "name": "string",
    "url": "string",
    "client_id": "string"
  },
  "code": "string",
  "vle_course_id": "string",
  "description": "string",
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z"
}

Responses

Response sample

201
{
"id": 0,
"vle": {
  "id": 0,
  "type": "string",
  "name": "string",
  "url": "string",
  "client_id": "string"
},
"code": "string",
"vle_course_id": "string",
"description": "string",
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}

2.3 Read VLE Course

Retrieves information about a Course in a VLE.

Request

ConceptData
HTTP methodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
vleobject (VLE)-
code
required
string (Code)
[1 .. 250] characters
Course code.
vle_course_id
required
string (VLE Course ID)
[1 .. 250] characters
Course ID on the VLE.
descriptionstring (Description)
Nullable.
Course description.
startstring <date-time> (Start)
Nullable.
When course starts.
endstring <date-time>
Nullable.
When course ends.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Responses

Response sample: 200

200
{
  "id": 0,
  "vle": {
    "id": 0,
    "type": "string",
    "name": "string",
    "url": "string",
    "client_id": "string"
  },
  "code": "string",
  "vle_course_id": "string",
  "description": "string",
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}

2.4 Update VLE Course

API endpoint that updates a Course in a VLE.

Request

ConceptData
HTTP methodPUT
Path/api/v2/vle/{parent_lookup_vle_id}/course/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
vleobject (VLE)-
code
required
string (Code)
[1 .. 250] characters
Course code.
vle_course_id
required
string (VLE Course ID)
[1 .. 250] characters
Course ID on the VLE.
descriptionstring (Description)
Nullable.
Course description.
startstring <date-time> (Start)
Nullable.
When course starts.
endstring <date-time>
Nullable.
When course ends.
Response parameters.
NameTypeComments
idinteger (ID)-
vleobject (VLE)-
code
required
string (Code)
[1 .. 250] characters
Course code.
vle_course_id
required
string (VLE Course ID)
[1 .. 250] characters
Course ID on the VLE.
descriptionstring (Description)
Nullable.
Course description.
startstring <date-time> (Start)
Nullable.
When course starts.
endstring <date-time>
Nullable.
When course ends.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Request sample

{
  "vle": {
    "type": "string",
    "name": "string",
    "url": "string",
    "client_id": "string"
  },
  "code": "string",
  "vle_course_id": "string",
  "description": "string",
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z"
}

Responses

Response sample: 200

200
{
  "id": 0,
  "vle": {
    "id": 0,
    "type": "string",
    "name": "string",
    "url": "string",
    "client_id": "string"
  },
  "code": "string",
  "vle_course_id": "string",
  "description": "string",
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}

2.5 Partial Update VLE Course

API endpoint that updates a Course in a VLE.

Request

ConceptData
HTTP methodPATCH
Path/api/v2/vle/{parent_lookup_vle_id}/course/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
vleobject (VLE)-
code
required
string (Code)
[1 .. 250] characters
Course code.
vle_course_id
required
string (VLE Course ID)
[1 .. 250] characters
Course ID on the VLE.
descriptionstring (Description)
Nullable.
Course description.
startstring <date-time> (Start)
Nullable.
When course starts.
endstring <date-time>
Nullable.
When course ends.
Response parameters.
NameTypeComments
idinteger (ID)-
vleobject (VLE)-
code
required
string (Code)
[1 .. 250] characters
Course code.
vle_course_id
required
string (VLE Course ID)
[1 .. 250] characters
Course ID on the VLE.
descriptionstring (Description)
Nullable.
Course description.
startstring <date-time> (Start)
Nullable.
When course starts.
endstring <date-time>
Nullable.
When course ends.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Request sample

{
  "vle": {
    "type": "string",
    "name": "string",
    "url": "string",
    "client_id": "string"
  },
  "code": "string",
  "vle_course_id": "string",
  "description": "string",
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z"
}

Responses

Response sample: 200

200
{
  "id": 0,
  "vle": {
    "id": 0,
    "type": "string",
    "name": "string",
    "url": "string",
    "client_id": "string"
  },
  "code": "string",
  "vle_course_id": "string",
  "description": "string",
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}

2.6 Delete VLE Course

API endpoint for deleting a Course in a VLE.

Request

ConceptData
HTTP MethodDELETE
Path/api/v2/vle/{parent_lookup_vle_id}/course/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.

Responses

Response sample: 204

204
{
}





3. VLE Instrument Management


Set of API endpoints that allows access to VLE related models.

3.1 GET: List VLE Instrument
3.2 GET: Read VLE Instrument


3.1 List VLE Instrument

API endpoint for listing VLE Instruments.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/instrument/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_vle_id
required
stringRequest path parameter.
searchstringA search term.
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of Objects (VLEInstrument)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "name": "string",
    "acronym": "string",
    "queue": "string",
    "enabled": true,
    "requires_enrolment": true,
    "description": "string",
    "identity": true,
    "originality": true,
    "authorship": true,
    "integrity": true,
    "options_schema": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
]
}

3.2 Read VLE Instrument

Retrieves information about VLE Instrument.

Request

ConceptData
HTTP methodGET
Path/api/v2/vle/{parent_lookup_vle_id}/instrument/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
integerRequest path parameter. A unique integer value identifying this Instrument.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
name
required
string (Name)
[1 .. 250] characters
Instrument name.
acronym
required
string (Acronym)
[1 .. 30] characters
Instrument Acronym.
queue
required
string (Queue)
non-empty
Queue this instrument listens to.
enabledboolean (Enabled)The instrument is enabled.
requires_enrolmentboolean (Requires enrolment)Whether this instrument requires enrolment.
descriptionstring (Description)
Nullable.
Description of the instrument.
identityboolean (Identity)This instrument contributes to the learner identity verification.
originalityboolean (Originality)This instrument contributes to the assessment originality verification.
authorshipboolean (Authorship)This instrument contributes to the assessment authorship verification.
integrityboolean (Integrity)This instrument contributes to the assessment integrity verification.
options_schemastring (Options schema)
non-empty
Nullable.
Schema for instrument options.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Responses

Response sample: 200

200
{
  "id": 0,
  "name": "string",
  "acronym": "string",
  "queue": "string",
  "enabled": true,
  "requires_enrolment": true,
  "description": "string",
  "identity": true,
  "originality": true,
  "authorship": true,
  "integrity": true,
  "options_schema": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}



4. VLE Course Instructor Management


Set of API endpoints that allows Instructor in a Course to be viewed or edited.

4.1 GET: List VLE Course Instructor
4.2 POST: Create VLE Course Instructor
4.3 GET: Read VLE Course Instructor
4.4 PUT: Update VLE Course Instructor
4.5 PATCH: Partial Update VLE Course Instructor
4.6 DELETE: Delete VLE Course Instructor


4.1 List VLE Course Instructor

API endpoint for listing Instructors from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/instructor/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
searchstringA search term
uidstring-
emailstring-
first_namestring-
last_namestring-
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of objects (VLECourseActivity)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "username": "string",
    "last_login": "2019-08-24T14:15:22Z",
    "first_name": "string",
    "last_name": "string",
    "email": "user@example.com",
    "locale": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "uid": "string",
    "inst_admin": true,
    "legal_admin": true,
    "send_admin": true,
    "data_admin": true
  }
]
}

4.2 Create VLE Course Instructor

API endpoint for creating Instructor for a Course in a VLE.

Request

ConceptData
HTTP MethodPOST
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/instructor/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
Response parameters.
NameTypeComments
idinteger (ID)-
usernamestring (Username)
non-empty
-
last_loginstring <date-time> (Last login)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
created_atstring <date-time> (Created at)Date when user was created.
updated_atstring <date-time> (Updated at)Last user modification.
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.

Request Sample:

{
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

Responses

Response sample

201
{
"id": 0,
"username": "string",
"last_login": "2019-08-24T14:15:22Z",
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"locale": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"uid": "string",
"inst_admin": true,
"legal_admin": true,
"send_admin": true,
"data_admin": true
}

4.3 Read VLE Course Instructor

API endpoint for reading Instructor from a Course in a VLE.

Request

ConceptData
HTTP methodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/instructor/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
usernamestring (Username)
non-empty
-
last_loginstring <date-time> (Last login)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
created_atstring <date-time> (Created at)Date when user was created.
updated_atstring <date-time> (Updated at)Last user modification.
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.

Responses

Response sample: 200

200
{
  "id": 0,
  "username": "string",
  "last_login": "2019-08-24T14:15:22Z",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

4.4 Update VLE Course Instructor

API endpoint that updates an Instructor from a Course in a VLE.

Request

ConceptData
HTTP methodPUT
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/instructor/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
Response parameters.
NameTypeComments
idinteger (ID)-
usernamestring (Username)
non-empty
-
last_loginstring <date-time> (Last login)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
created_atstring <date-time> (Created at)Date when user was created.
updated_atstring <date-time> (Updated at)Last user modification.
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.

Request sample

{
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

Responses

Response sample: 200

200
{
  "id": 0,
  "username": "string",
  "last_login": "2019-08-24T14:15:22Z",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

4.5 Partial Update VLE Course Instructor

API endpoint that updates an Instructor from a Course in a VLE.

Request

ConceptData
HTTP methodPATCH
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/instructor/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
Response parameters.
NameTypeComments
idinteger (ID)-
usernamestring (Username)
non-empty
-
last_loginstring <date-time> (Last login)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
created_atstring <date-time> (Created at)Date when user was created.
updated_atstring <date-time> (Updated at)Last user modification.
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.

Request sample

{
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

Responses

Response sample: 200

200
{
  "id": 0,
  "username": "string",
  "last_login": "2019-08-24T14:15:22Z",
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

4.6 Delete VLE Course Instructor

API endpoint for deleting an Instructor from a Course in a VLE.

Request

ConceptData
HTTP MethodDELETE
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/instructor/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter. A unique integer value identifying this activity.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.

Responses

Response sample: 204

204
{
}




5. VLE Course Learner Management


Set of API endpoints that allows learners in a course to be viewed or edited.

5.1 GET: List VLE Course Learner
5.2 POST: Create VLE Course Learner
5.3 GET: Read VLE Course Learner
5.4 PUT: Update VLE Course Learner
5.5 PATCH: Partial Update VLE Course Learner
5.6 DELETE: Delete VLE Course Learner


5.1 List VLE Course Learner

API endpoint for listing Learner from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/learner/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
searchstringA search term
uidstring-
emailstring-
first_namestring-
last_namestring-
learner_idstring-
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of objects (VLECourseLearner)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "username": "string",
    "consent": {
      "version": "string",
      "status": "string"
    },
    "consent_accepted": "2019-08-24T14:15:22Z",
    "consent_rejected": "2019-08-24T14:15:22Z",
    "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7",
    "last_login": "2019-08-24T14:15:22Z",
    "send": {},
    "ic_status": "string",
    "enrolment_status": {},
    "first_name": "string",
    "last_name": "string",
    "email": "user@example.com",
    "locale": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "uid": "string",
    "inst_admin": true,
    "legal_admin": true,
    "send_admin": true,
    "data_admin": true,
    "joined_at": "2019-08-24T14:15:22Z"
  }
]
}

5.2 Create VLE Course Learner

API endpoint for creating Learner for a Course in a VLE.

Request

ConceptData
HTTP MethodPOST
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/learner/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
consentobject (VLECourseLearnerConsent)
Nullable.
-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
Response parameters.
NameTypeComments
idinteger (ID)-
usernamestring (Username)
non-empty
-
consentobject (VLECourseLearnerConsent)
Nullable.
-
consent_acceptedstring <date-time> (Consent accepted)-
consent_rejectedstring <date-time> (Consent rejected)-
learner_idstring <uuid> (Learner ID)-
last_loginstring <date-time> (Last login)-
sendobject (Send)-
ic_statusstring (IC Status)
non-empty
-
enrolment_statusobject (Enrolment status)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
created_atstring <date-time> (Created at)Date when user was created.
updated_atstring <date-time> (Updated at)Last user modification.
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
joined_string <date-time> (Joined at)Date the learner joined for this institution.

Request Sample:

{
  "consent": {
    "version": "string"
  },
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

Responses

Response sample

201
{
"id": 0,
"username": "string",
"consent": {
  "version": "string",
  "status": "string"
},
"consent_accepted": "2019-08-24T14:15:22Z",
"consent_rejected": "2019-08-24T14:15:22Z",
"learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7",
"last_login": "2019-08-24T14:15:22Z",
"send": {},
"ic_status": "string",
"enrolment_status": {},
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"locale": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"uid": "string",
"inst_admin": true,
"legal_admin": true,
"send_admin": true,
"data_admin": true,
"joined_at": "2019-08-24T14:15:22Z"
}

5.3 Read VLE Course Learner

API endpoint for reading Learner from a Course in a VLE.

Request

ConceptData
HTTP methodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/learner/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
usernamestring (Username)
non-empty
-
consentobject (VLECourseLearnerConsent)
Nullable.
-
consent_acceptedstring <date-time> (Consent accepted)-
consent_rejectedstring <date-time> (Consent rejected)-
learner_idstring <uuid> (Learner ID)-
last_loginstring <date-time> (Last login)-
sendobject (Send)-
ic_statusstring (IC Status)
non-empty
-
enrolment_statusobject (Enrolment status)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
created_atstring <date-time> (Created at)Date when user was created.
updated_atstring <date-time> (Updated at)Last user modification.
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
joined_string <date-time> (Joined at)Date the learner joined for this institution.

Responses

Response sample: 200

200
{
  "id": 0,
  "username": "string",
  "consent": {
    "version": "string",
    "status": "string"
  },
  "consent_accepted": "2019-08-24T14:15:22Z",
  "consent_rejected": "2019-08-24T14:15:22Z",
  "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7",
  "last_login": "2019-08-24T14:15:22Z",
  "send": {},
  "ic_status": "string",
  "enrolment_status": {},
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true,
  "joined_at": "2019-08-24T14:15:22Z"
}

5.4 Update VLE Course Learner

API endpoint that updates a Learner from a Course in a VLE.

Request

ConceptData
HTTP methodPUT
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/learner/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
consentobject (VLECourseLearnerConsent)
Nullable.
-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
Response parameters.
NameTypeComments
idinteger (ID)-
usernamestring (Username)
non-empty
-
consentobject (VLECourseLearnerConsent)
Nullable.
-
consent_acceptedstring <date-time> (Consent accepted)-
consent_rejectedstring <date-time> (Consent rejected)-
learner_idstring <uuid> (Learner ID)-
last_loginstring <date-time> (Last login)-
sendobject (Send)-
ic_statusstring (IC Status)
non-empty
-
enrolment_statusobject (Enrolment status)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
created_atstring <date-time> (Created at)Date when user was created.
updated_atstring <date-time> (Updated at)Last user modification.
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
joined_string <date-time> (Joined at)Date the learner joined for this institution.

Request sample

{
  "consent": {
    "version": "string"
  },
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

Responses

Response sample: 200

200
{
  "id": 0,
  "username": "string",
  "consent": {
    "version": "string",
    "status": "string"
  },
  "consent_accepted": "2019-08-24T14:15:22Z",
  "consent_rejected": "2019-08-24T14:15:22Z",
  "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7",
  "last_login": "2019-08-24T14:15:22Z",
  "send": {},
  "ic_status": "string",
  "enrolment_status": {},
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true,
  "joined_at": "2019-08-24T14:15:22Z"
}

5.5 Partial Update VLE Course Learner

API endpoint that updates a Learner from a Course in a VLE.

Request

ConceptData
HTTP methodPATCH
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/learner/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
consentobject (VLECourseLearnerConsent)
Nullable.
-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
Response parameters.
NameTypeComments
idinteger (ID)-
usernamestring (Username)
non-empty
-
consentobject (VLECourseLearnerConsent)
Nullable.
-
consent_acceptedstring <date-time> (Consent accepted)-
consent_rejectedstring <date-time> (Consent rejected)-
learner_idstring <uuid> (Learner ID)-
last_loginstring <date-time> (Last login)-
sendobject (Send)-
ic_statusstring (IC Status)
non-empty
-
enrolment_statusobject (Enrolment status)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
localestring (Locale)
[1 .. 10] characters
Nullable.
Default locale for this user
created_atstring <date-time> (Created at)Date when user was created.
updated_atstring <date-time> (Updated at)Last user modification.
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
inst_adminboolean (Inst admin)Whether this user is administrator of the institution
legal_adminboolean (Inst admin)Whether this user can manage legal data of the institution.
send_adminboolean (Send admin)Whether this user can manage SEND data of the institution.
data_adminboolean (Data admin)Whether this user can manage the data of the institution.
joined_string <date-time> (Joined at)Date the learner joined for this institution.

Request sample

{
  "consent": {
    "version": "string"
  },
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true
}

Responses

Response sample: 200

200
{
  "id": 0,
  "username": "string",
  "consent": {
    "version": "string",
    "status": "string"
  },
  "consent_accepted": "2019-08-24T14:15:22Z",
  "consent_rejected": "2019-08-24T14:15:22Z",
  "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7",
  "last_login": "2019-08-24T14:15:22Z",
  "send": {},
  "ic_status": "string",
  "enrolment_status": {},
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "locale": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "uid": "string",
  "inst_admin": true,
  "legal_admin": true,
  "send_admin": true,
  "data_admin": true,
  "joined_at": "2019-08-24T14:15:22Z"
}

5.6 Delete VLE Course Learner

API endpoint for deleting a Learner from a Course in a VLE.

Request

ConceptData
HTTP MethodDELETE
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/learner/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.

Responses

Response sample: 204

204
{
}




6. VLE Course Activity Management


Set of API endpoints that allows Activity in a Course to be viewed or edited.

6.1 GET: List VLE Course Activity
6.2 POST: Create VLE Course Activity
6.3 GET: Read VLE Course Activity
6.4 PUT: Update VLE Course Activity
6.5 PATCH: Partial Update VLE Course Activity
6.6 DELETE: Delete VLE Course Activity


6.1 List VLE Course Activity

API endpoint for listing Activities from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
searchstringA search term
vle_idstring-
vle_activity_typestring-
vle_activity_idstring-
course_idstring-
namestring-
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of objects (VLECourseActivity)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "course": {
      "id": 0,
      "vle": {
        "id": 0,
        "type": "string",
        "name": "string",
        "url": "string",
        "client_id": "string"
      },
      "code": "string",
      "vle_course_id": "string",
      "description": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    },
    "vle_activity_type": "string",
    "vle_activity_id": "string",
    "description": "string",
    "name": "string",
    "enabled": true,
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "conf": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
]
}

6.2 Create VLE Course Activity

API endpoint for creating Activity for a Course in a VLE.

Request

ConceptData
HTTP MethodPOST
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
courseobject (VLECourse)-
vle_activity_type
required
string (VLE Activity Type)
[1 .. 250] characters
Activity type on the VLE.
vle_activity_id
required
string (VLE Activity ID)
[1 .. 250] characters
Activity ID on the VLE.
descriptionstring (Description)
Nullable.
Activity description.
namestring (Name)
<= 255 characters.
Nullable.
Activity name.
enabledboolean (Enabled)Whether this activity is enabled or not.
startstring <date-time> (Start)
Nullable.
When Activity starts.
endstring <date-time>
Nullable.
When Activity ends.
confstring (Conf)
Nullable.
Activity conf.
Response parameters.
NameTypeComments
idinteger (ID)-
courseobject (VLECourse)-
vle_activity_type
required
string (VLE Activity Type)
[1 .. 250] characters
Activity type on the VLE.
vle_activity_id
required
string (VLE Activity ID)
[1 .. 250] characters
Activity ID on the VLE.
descriptionstring (Description)
Nullable.
Activity description.
namestring (Name)
<= 255 characters.
Nullable.
Activity name.
enabledboolean (Enabled)Whether this activity is enabled or not.
startstring <date-time> (Start)
Nullable.
When Activity starts.
endstring <date-time>
Nullable.
When Activity ends.
confstring (Conf)
Nullable.
Activity conf.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Request Sample:

{
  "course": {
    "vle": {
      "type": "string",
      "name": "string",
      "url": "string",
      "client_id": "string"
    },
    "code": "string",
    "vle_course_id": "string",
    "description": "string",
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z"
  },
  "vle_activity_type": "string",
  "vle_activity_id": "string",
  "description": "string",
  "name": "string",
  "enabled": true,
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "conf": "string"
}

Responses

Response sample

201
{
"id": 0,
"course": {
  "id": 0,
  "vle": {
    "id": 0,
    "type": "string",
    "name": "string",
    "url": "string",
    "client_id": "string"
  },
  "code": "string",
  "vle_course_id": "string",
  "description": "string",
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
},
"vle_activity_type": "string",
"vle_activity_id": "string",
"description": "string",
"name": "string",
"enabled": true,
"start": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"conf": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}

6.3 Read VLE Course Activity

API endpoint for reading Activity from a Course in a VLE.

Request

ConceptData
HTTP methodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.A unique integer value identifying this activity.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
courseobject (VLECourse)-
vle_activity_type
required
string (VLE Activity Type)
[1 .. 250] characters
Activity type on the VLE.
vle_activity_id
required
string (VLE Activity ID)
[1 .. 250] characters
Activity ID on the VLE.
descriptionstring (Description)
Nullable.
Activity description.
namestring (Name)
<= 255 characters.
Nullable.
Activity name.
enabledboolean (Enabled)Whether this activity is enabled or not.
startstring <date-time> (Start)
Nullable.
When Activity starts.
endstring <date-time>
Nullable.
When Activity ends.
confstring (Conf)
Nullable.
Activity conf.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Responses

Response sample: 200

200
{
  "id": 0,
  "course": {
    "id": 0,
    "vle": {
      "id": 0,
      "type": "string",
      "name": "string",
      "url": "string",
      "client_id": "string"
    },
    "code": "string",
    "vle_course_id": "string",
    "description": "string",
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "vle_activity_type": "string",
  "vle_activity_id": "string",
  "description": "string",
  "name": "string",
  "enabled": true,
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "conf": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}

6.4 Update VLE Course Activity

API endpoint that updates an Activity from a Course in a VLE.

Request

ConceptData
HTTP methodPUT
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter. A unique integer value identifying this activity.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
courseobject (VLECourse)-
vle_activity_type
required
string (VLE Activity Type)
[1 .. 250] characters
Activity type on the VLE.
vle_activity_id
required
string (VLE Activity ID)
[1 .. 250] characters
Activity ID on the VLE.
descriptionstring (Description)
Nullable.
Activity description.
namestring (Name)
<= 255 characters.
Nullable.
Activity name.
enabledboolean (Enabled)Whether this activity is enabled or not.
startstring <date-time> (Start)
Nullable.
When Activity starts.
endstring <date-time>
Nullable.
When Activity ends.
confstring (Conf)
Nullable.
Activity conf.
Response parameters.
NameTypeComments
idinteger (ID)-
courseobject (VLECourse)-
vle_activity_type
required
string (VLE Activity Type)
[1 .. 250] characters
Activity type on the VLE.
vle_activity_id
required
string (VLE Activity ID)
[1 .. 250] characters
Activity ID on the VLE.
descriptionstring (Description)
Nullable.
Activity description.
namestring (Name)
<= 255 characters.
Nullable.
Activity name.
enabledboolean (Enabled)Whether this activity is enabled or not.
startstring <date-time> (Start)
Nullable.
When Activity starts.
endstring <date-time>
Nullable.
When Activity ends.
confstring (Conf)
Nullable.
Activity conf.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Request sample

{
  "course": {
    "vle": {
      "type": "string",
      "name": "string",
      "url": "string",
      "client_id": "string"
    },
    "code": "string",
    "vle_course_id": "string",
    "description": "string",
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z"
  },
  "vle_activity_type": "string",
  "vle_activity_id": "string",
  "description": "string",
  "name": "string",
  "enabled": true,
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "conf": "string"
}

Responses

Response sample: 200

200
{
  "id": 0,
  "course": {
    "id": 0,
    "vle": {
      "id": 0,
      "type": "string",
      "name": "string",
      "url": "string",
      "client_id": "string"
    },
    "code": "string",
    "vle_course_id": "string",
    "description": "string",
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "vle_activity_type": "string",
  "vle_activity_id": "string",
  "description": "string",
  "name": "string",
  "enabled": true,
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "conf": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}

6.5 Partial Update VLE Course Activity

API endpoint that updates an Activity from a Course in a VLE.

Request

ConceptData
HTTP methodPATCH
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter. A unique integer value identifying this activity.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
courseobject (VLECourse)-
vle_activity_type
required
string (VLE Activity Type)
[1 .. 250] characters
Activity type on the VLE.
vle_activity_id
required
string (VLE Activity ID)
[1 .. 250] characters
Activity ID on the VLE.
descriptionstring (Description)
Nullable.
Activity description.
namestring (Name)
<= 255 characters.
Nullable.
Activity name.
enabledboolean (Enabled)Whether this activity is enabled or not.
startstring <date-time> (Start)
Nullable.
When Activity starts.
endstring <date-time>
Nullable.
When Activity ends.
confstring (Conf)
Nullable.
Activity conf.
Response parameters.
NameTypeComments
idinteger (ID)-
courseobject (VLECourse)-
vle_activity_type
required
string (VLE Activity Type)
[1 .. 250] characters
Activity type on the VLE.
vle_activity_id
required
string (VLE Activity ID)
[1 .. 250] characters
Activity ID on the VLE.
descriptionstring (Description)
Nullable.
Activity description.
namestring (Name)
<= 255 characters.
Nullable.
Activity name.
enabledboolean (Enabled)Whether this activity is enabled or not.
startstring <date-time> (Start)
Nullable.
When Activity starts.
endstring <date-time>
Nullable.
When Activity ends.
confstring (Conf)
Nullable.
Activity conf.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-

Request sample

{
  "course": {
    "vle": {
      "type": "string",
      "name": "string",
      "url": "string",
      "client_id": "string"
    },
    "code": "string",
    "vle_course_id": "string",
    "description": "string",
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z"
  },
  "vle_activity_type": "string",
  "vle_activity_id": "string",
  "description": "string",
  "name": "string",
  "enabled": true,
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "conf": "string"
}

Responses

Response sample: 200

200
{
  "id": 0,
  "course": {
    "id": 0,
    "vle": {
      "id": 0,
      "type": "string",
      "name": "string",
      "url": "string",
      "client_id": "string"
    },
    "code": "string",
    "vle_course_id": "string",
    "description": "string",
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "vle_activity_type": "string",
  "vle_activity_id": "string",
  "description": "string",
  "name": "string",
  "enabled": true,
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "conf": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}

6.6 Delete VLE Course Activity

API endpoint for deleting an Activity from a Course in a VLE.

Request

ConceptData
HTTP MethodDELETE
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter. A unique integer value identifying this activity.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.

Responses

Response sample: 204

204
{
}




7. VLE Course Activity Attachment Management


Set of API endpoints that Return the list of instruments (if any) waiting to process the attachment of the activity.

7.1 GET: List VLE Course Activity Attachment
7.2 POST: Create VLE Course Activity Attachment


7.1 List VLE Course Activity Attachment

API endpoint for listing Activities from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{id}/attachment/{learner_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
id
required
integerRequest path parameter. A unique integer value identifying this activity.
learner_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
learner_idstring <uuid> (Learner ID)
Nullable
-
course_idinteger (Course ID)
Nullable
-
activity_idinteger (Activity ID)
Nullable
-
session_idinteger (Session ID)
Nullable
-
data
required
string (Data)
non-empty.
-
instruments
required
Array of integers-
metadata
required
object (VerificationMetadata)-
close_sessionboolean (Close session)
Nullable
Default: true
close_atstring <date-time> (Close at)-

Responses

Response sample

200
{
"learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7",
"course_id": 0,
"activity_id": 0,
"session_id": 0,
"data": "string",
"instruments": [
  0
],
"metadata": {
  "filename": "string",
  "mimetype": "string",
  "context": {}
},
"close_session": true,
"close_at": "2019-08-24T14:15:22Z"
}

7.2 Create VLE Course Activity Attachment

API endpoint for creating Activity for a Course in a VLE.

Request

ConceptData
HTTP MethodPOST
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{id}/attachment/{learner_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
id
required
integerRequest path parameter. A unique integer value identifying this activity.
learner_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
learner_idstring <uuid> (Learner ID)
Nullable
-
course_idinteger (Course ID)
Nullable
-
activity_idinteger (Activity ID)
Nullable
-
session_idinteger (Session ID)
Nullable
-
data
required
string (Data)
non-empty.
-
instruments
required
Array of integers-
metadata
required
object (VerificationMetadata)-
close_sessionboolean (Close session)
Nullable
Default: true
close_atstring <date-time> (Close at)-
Response parameters.
NameTypeComments
learner_idstring <uuid> (Learner ID)
Nullable
-
course_idinteger (Course ID)
Nullable
-
activity_idinteger (Activity ID)
Nullable
-
session_idinteger (Session ID)
Nullable
-
data
required
string (Data)
non-empty.
-
instruments
required
Array of integers-
metadata
required
object (VerificationMetadata)-
close_sessionboolean (Close session)
Nullable
Default: true
close_atstring <date-time> (Close at)-

Request Sample:

{
  "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7",
  "course_id": 0,
  "activity_id": 0,
  "session_id": 0,
  "data": "string",
  "instruments": [
    0
  ],
  "metadata": {
    "filename": "string",
    "mimetype": "string",
    "context": {}
  },
  "close_session": true,
  "close_at": "2019-08-24T14:15:22Z"
}

Responses

Response sample

201
{
"learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7",
"course_id": 0,
"activity_id": 0,
"session_id": 0,
"data": "string",
"instruments": [
  0
],
"metadata": {
  "filename": "string",
  "mimetype": "string",
  "context": {}
},
"close_session": true,
"close_at": "2019-08-24T14:15:22Z"
}




8. VLE Course Activity Instrument Management


Set of API endpoints that allows Activity instruments in a Course to be viewed or edited.

8.1 GET: List VLE Course Activity Instrument
8.2 POST: Create VLE Course Activity Instrument
8.3 GET: Read VLE Course Activity Instrument
8.4 PUT: Update VLE Course Activity Instrument
8.5 PATCH: Partial Update VLE Course Activity Instrument
8.6 DELETE: Delete VLE Course Activity Instrument


8.1 List VLE Course Activity Instrument

API endpoint for listing Activity’s instruments from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/instrument/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
searchstringA search term
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of objects (VLECourseActivityInstrument)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "activity": {
      "id": 0,
      "course": {
        "id": 0,
        "vle": {
          "id": 0,
          "type": "string",
          "name": "string",
          "url": "string",
          "client_id": "string"
        },
        "code": "string",
        "vle_course_id": "string",
        "description": "string",
        "start": "2019-08-24T14:15:22Z",
        "end": "2019-08-24T14:15:22Z",
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z"
      },
      "vle_activity_type": "string",
      "vle_activity_id": "string",
      "description": "string",
      "name": "string",
      "enabled": true,
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z",
      "conf": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    },
    "options": {},
    "active": true,
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "instrument": 0,
    "alternative_to": 0
  }
]
}

8.2 Create VLE Course Activity Instrument

API endpoint for adding instrument to Activity for a Course in a VLE.

Request

ConceptData
HTTP MethodPOST
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/instrument/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
activityobject (VLECourseActivity)-
options
required
object (Options)
Nullable.
Activity type on the VLE.
active
required
boolean (Active)Is instrument active?
instrument
required
integer (Instrument)Activity.
alternative_tointeger (Alternative to)
Nullable.
Primary instrument to be used.
Response parameters.
NameTypeComments
idinteger (ID)-
activityobject (VLECourseActivity)-
options
required
object (Options)
Nullable.
-
active
required
boolean (Active)-
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-
instrument
required
integer (Instrument)Activity.
alternative_tointeger (Alternative to)
Nullable.
Primary instrument to be used.

Request Sample:

{
  "activity": {
    "course": {
      "vle": {
        "type": "string",
        "name": "string",
        "url": "string",
        "client_id": "string"
      },
      "code": "string",
      "vle_course_id": "string",
      "description": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z"
    },
    "vle_activity_type": "string",
    "vle_activity_id": "string",
    "description": "string",
    "name": "string",
    "enabled": true,
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "conf": "string"
  },
  "options": {},
  "active": true,
  "instrument": 0,
  "alternative_to": 0
}

Responses

Response sample

201
{
"id": 0,
"activity": {
  "id": 0,
  "course": {
    "id": 0,
    "vle": {
      "id": 0,
      "type": "string",
      "name": "string",
      "url": "string",
      "client_id": "string"
    },
    "code": "string",
    "vle_course_id": "string",
    "description": "string",
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "vle_activity_type": "string",
  "vle_activity_id": "string",
  "description": "string",
  "name": "string",
  "enabled": true,
  "start": "2019-08-24T14:15:22Z",
  "end": "2019-08-24T14:15:22Z",
  "conf": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
},
"options": {},
"active": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"instrument": 0,
"alternative_to": 0
}

8.3 Read VLE Course Activity Instrument

API endpoint for reading Activity’s instrument from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/instrument/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
activityobject (VLECourseActivity)-
options
required
object (Options)
Nullable.
-
active
required
boolean (Active)Is instrument active?
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-
instrument
required
integer (Instrument)Activity.
alternative_tointeger (Alternative to)
Nullable.
Primary instrument to be used.

Responses

Response sample: 200

200
{
  "id": 0,
  "activity": {
    "id": 0,
    "course": {
      "id": 0,
      "vle": {
        "id": 0,
        "type": "string",
        "name": "string",
        "url": "string",
        "client_id": "string"
      },
      "code": "string",
      "vle_course_id": "string",
      "description": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    },
    "vle_activity_type": "string",
    "vle_activity_id": "string",
    "description": "string",
    "name": "string",
    "enabled": true,
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "conf": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "options": {},
  "active": true,
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "instrument": 0,
  "alternative_to": 0
}

8.4 Update VLE Course Activity Instrument

API endpoint that updates an Activity’s Instrument from a Course in a VLE.

Request

ConceptData
HTTP MethodPUT
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/instrument/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
activityobject (VLECourseActivity)-
options
required
object (Options)
Nullable.
-
active
required
boolean (Active)Is instrument active?
instrument
required
integer (Instrument)Activity.
alternative_tointeger (Alternative to)
Nullable.
Primary instrument to be used.
Response parameters.
NameTypeComments
idinteger (ID)-
activityobject (VLECourseActivity)-
options
required
object (Options)
Nullable.
-
active
required
boolean (Active)Is instrument active?
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-
instrument
required
integer (Instrument)Activity.
alternative_tointeger (Alternative to)
Nullable.
Primary instrument to be used.

Request sample

{
  "activity": {
    "course": {
      "vle": {
        "type": "string",
        "name": "string",
        "url": "string",
        "client_id": "string"
      },
      "code": "string",
      "vle_course_id": "string",
      "description": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z"
    },
    "vle_activity_type": "string",
    "vle_activity_id": "string",
    "description": "string",
    "name": "string",
    "enabled": true,
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "conf": "string"
  },
  "options": {},
  "active": true,
  "instrument": 0,
  "alternative_to": 0
}

Responses

Response sample: 200

200
{
  "id": 0,
  "activity": {
    "id": 0,
    "course": {
      "id": 0,
      "vle": {
        "id": 0,
        "type": "string",
        "name": "string",
        "url": "string",
        "client_id": "string"
      },
      "code": "string",
      "vle_course_id": "string",
      "description": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    },
    "vle_activity_type": "string",
    "vle_activity_id": "string",
    "description": "string",
    "name": "string",
    "enabled": true,
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "conf": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "options": {},
  "active": true,
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "instrument": 0,
  "alternative_to": 0
}

8.5 Partial Update VLE Course Activity Instrument

API endpoint that updates an Activity’s Instrument from a Course in a VLE.

Request

ConceptData
HTTP MethodPATCH
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/instrument/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
activityobject (VLECourseActivity)-
options
required
object (Options)
Nullable.
-
active
required
boolean (Active)Is instrument active?
instrument
required
integer (Instrument)Activity.
alternative_tointeger (Alternative to)
Nullable.
Primary instrument to be used.
Response parameters.
NameTypeComments
idinteger (ID)-
activityobject (VLECourseActivity)-
options
required
object (Options)
Nullable.
-
active
required
boolean (Active)Is instrument active?
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-
instrument
required
integer (Instrument)Activity.
alternative_tointeger (Alternative to)
Nullable.
Primary instrument to be used.

Request sample

{
  "activity": {
    "course": {
      "vle": {
        "type": "string",
        "name": "string",
        "url": "string",
        "client_id": "string"
      },
      "code": "string",
      "vle_course_id": "string",
      "description": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z"
    },
    "vle_activity_type": "string",
    "vle_activity_id": "string",
    "description": "string",
    "name": "string",
    "enabled": true,
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "conf": "string"
  },
  "options": {},
  "active": true,
  "instrument": 0,
  "alternative_to": 0
}

Responses

Response sample: 200

200
{
  "id": 0,
  "activity": {
    "id": 0,
    "course": {
      "id": 0,
      "vle": {
        "id": 0,
        "type": "string",
        "name": "string",
        "url": "string",
        "client_id": "string"
      },
      "code": "string",
      "vle_course_id": "string",
      "description": "string",
      "start": "2019-08-24T14:15:22Z",
      "end": "2019-08-24T14:15:22Z",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    },
    "vle_activity_type": "string",
    "vle_activity_id": "string",
    "description": "string",
    "name": "string",
    "enabled": true,
    "start": "2019-08-24T14:15:22Z",
    "end": "2019-08-24T14:15:22Z",
    "conf": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  },
  "options": {},
  "active": true,
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "instrument": 0,
  "alternative_to": 0
}

8.6 Delete VLE Course Activity Instrument

API endpoint for deleting an Instrument from Activity.

Request

ConceptData
HTTP MethodDELETE
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/instrument/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.

Responses

Response sample: 204

204
{
}




9. VLE Course Activity Learner Management


Set of API endpoints that allows access results for learners in an Activity.

9.1 GET: List VLE Course Activity Learner
9.2 GET: Read VLE Course Activity Learner
9.3 GET: List VLE Course Activity Learner Request
9.4 GET: Read VLE Course Activity Learner Request


9.1 List VLE Course Activity Learner

Set of API endpoints that allows access results for learners in an Activity.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/learner/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
searchstringA search term
uidstring-
emailstring-
first_namestring-
last_namestring-
learner_idstring-
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of objects (VLECourseActivityLearner)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "first_name": "string",
    "last_name": "string",
    "email": "user@example.com",
    "uid": "string",
    "institution_id": "string",
    "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7"
  }
]
}

9.2 Read VLE Course Activity Learner

API endpoint for reading Activity’s instrument from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/learner/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
first_namestring (First name)
<= 150 characters
-
last_namestring (Last name)
<= 150 characters
-
emailstring <email> (Email address)
<= 254 characters
-
uid
required
string (Uid)
[1 .. 255] characters
Unique User Identifier for the institution.
institution_idstring (Institution ID)-
learner_idstring <uuid> (Learner id)Learner unique ID used to anonymize identity with external providers.

Responses

Response sample: 200

200
{
  "id": 0,
  "first_name": "string",
  "last_name": "string",
  "email": "user@example.com",
  "uid": "string",
  "institution_id": "string",
  "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7"
}

9.3 List VLE Course Activity Learner Request

API endpoint for listing Activity Learner Requests.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/learner/{parent_lookup_learner_id}/request/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_learner_id
required
stringRequest path parameter.
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
searchstringA search term
instrumentsstring-
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of objects (VLECourseActivityLearnerRequest)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "result": [
      {
        "id": 0,
        "status": 0,
        "result": 0,
        "error_message": "string",
        "code": 0,
        "audit": "http://example.com",
        "created_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z",
        "request": 0,
        "instrument": 0,
        "message_code": "string"
      }
    ],
    "status": 0,
    "data": "http://example.com",
    "error_message": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "learner": "string",
    "activity": 0,
    "session": 0,
    "message_code": "string",
    "instruments": [
      0
    ]
  }
]
}

9.4 Read VLE Course Activity Learner Request

API endpoint that allows Activity Learner Request to be viewed.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_vle_id}/course/{parent_lookup_course_id}/activity/{parent_lookup_activity_id}/learner/{parent_lookup_learner_id}/request/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.
parent_lookup_learner_id
required
stringRequest path parameter.
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_course_id
required
stringRequest path parameter.
parent_lookup_vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
result
required
Array of objects (VLECourseActivityLearnerRequestResult)-
statusinteger (Status)
Enum: 0, 1, 2, 3, 4, 5, 6
Status for this request.
datastring <uri> (Data)Data path on storage.
error_messagestring (Error message)
non-empty
Nullable.
Error message when status is error.
created_atstring <date-time> (Created at)-
updated_atstring <date-time> (Updated at)-
learner
required
string (Learner)Unique User Identifier for the institution.
activityinteger (Activity)
Nullable.
-
sessioninteger (Session)
Nullable.
Assessment session for this request.
message_codestring (Message code)
Nullable.
Related message code.
instruments
required
Array of integers-

Responses

Response sample: 200

200
{
  "id": 0,
  "result": [
    {
      "id": 0,
      "status": 0,
      "result": 0,
      "error_message": "string",
      "code": 0,
      "audit": "http://example.com",
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "request": 0,
      "instrument": 0,
      "message_code": "string"
    }
  ],
  "status": 0,
  "data": "http://example.com",
  "error_message": "string",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "learner": "string",
  "activity": 0,
  "session": 0,
  "message_code": "string",
  "instruments": [
    0
  ]
}




10. VLE Course Activity Report Management


10.1 List VLE Course Activity Report
10.2 Read VLE Course Activity Report

10.1 List VLE Course Activity Report

API endpoint for listing Activity Reports from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_activity__vle_id}/course/{parent_lookup_activity__course_id}/activity/{parent_lookup_activity_id}/report/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_activity__course_id
required
stringRequest path parameter.
parent_lookup_activity__vle_id
required
stringRequest path parameter.
searchstringA search term.
orderingstringWhich field to use when ordering the results.
limitintegerNumber of results to return per page.
offsetintegerThe initial index from which to return the results.
Response parameters.
NameTypeComments
count
required
integer-
nextstring <uri>
Nullable
-
previousstring <uri>
Nullable
-
results
required
Array of Objects (VLECourseActivityReport)-

Responses

Response sample

200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
  {
    "id": 0,
    "learner": {
      "id": 0,
      "uid": "string",
      "first_name": "string",
      "last_name": "string",
      "email": "user@example.com",
      "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7"
    },
    "detail": [
      {
        "instrument": "string",
        "enrolment": 0,
        "confidence": 0,
        "result": 0,
        "identity_level": 0,
        "content_level": 0,
        "integrity_level": 0,
        "instrument_id": 0
      }
    ],
    "identity_level": 0,
    "content_level": 0,
    "integrity_level": 0
  }
]
}

10.2 Read VLE Course Activity Report

Retrieves Activity Report from a Course in a VLE.

Request

ConceptData
HTTP MethodGET
Path/api/v2/vle/{parent_lookup_activity__vle_id}/course/{parent_lookup_activity__course_id}/activity/{parent_lookup_activity_id}/report/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
id
required
stringRequest path parameter.A unique integer value identifying this report activity.
parent_lookup_activity_id
required
stringRequest path parameter.
parent_lookup_activity__course_id
required
stringRequest path parameter.
parent_lookup_activity__vle_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
idinteger (ID)-
learner
required
object (VLECourseActivityReportLearner)-
detail
required
Array of Objects (VLECourseActivityReportDetail)-
identity_levelinteger (Identity level)
Enum: 0, 1, 2, 3, 4
Alert level for learner identity.
content_levelinteger (Content level)
Enum: 0, 1, 2, 3, 4
Alert level for content authorship.
integrity_levelinteger (Integrity level)
Enum: 0, 1, 2, 3, 4
Alert level for system integrity.

Responses

Response sample: 200

200
{
  "id": 0,
  "learner": {
    "id": 0,
    "uid": "string",
    "first_name": "string",
    "last_name": "string",
    "email": "user@example.com",
    "learner_id": "2df776db-09df-4cb9-a2af-db56cada6cb7"
  },
  "detail": [
    {
      "instrument": "string",
      "enrolment": 0,
      "confidence": 0,
      "result": 0,
      "identity_level": 0,
      "content_level": 0,
      "integrity_level": 0,
      "instrument_id": 0
    }
  ],
  "identity_level": 0,
  "content_level": 0,
  "integrity_level": 0
}