This page is under construction
We’re working on it!
Table of Contents
1. User Management
Set of API endpoints that allow users to be viewed or edited.
List Users: GET
API endpoint for listing Users.
Request
Concept | Data |
---|---|
HTTP Method | GET |
Path | /api/v2/admin/user/ |
Authorization | JWT |
Content Type | application/json |
Parameters
Name | Type | Comments |
search | string | A search term. |
username | string | - |
first_name | string | - |
last_name | string | - |
string | - | |
institution | string | - |
roles | string | - |
ordering | string | Which field to use when ordering the results. |
limit | integer | Number of results to return per page. |
offset | integer | The initial index from which to return the results. |
Name | Type | Comments |
countrequired | integer | - |
next | string <uri> Nullable | - |
previous | string <uri> Nullable | - |
resultsrequired | Array of Objects (User) | - |
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",
"password": "string",
"password2": "string",
"institution": "string",
"roles": "string",
"institution_id": 0,
"inst_admin": false,
"login_allowed": true,
"uid": "string",
"is_superuser": true,
"is_staff": true,
"is_active": true,
"date_joined": "2019-08-24T14:15:22Z",
"groups": [
0
],
"user_permissions": [
0
]
}
]
}
Create User: POST
API endpoint that creates a new user. This endpoint is only available to admin users with the right admin permissions.
Request
Concept | Data |
---|---|
HTTP Method | POST |
Path | /api/v2/admin/user/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
password2 | string (Password2) non-empty Nullable | - |
institution_id | integer (Institution id) Nullable | - |
inst_admin | boolean (Inst admin) Nullable Default: false | - |
login_allowed | boolean (Login allowed) Nullable Default: true | - |
uid | string (Uid) non-empty Nullable | - |
is_superuser | boolean (Superuser status) | Designates that this user has all permissions without explicitly assigning them. |
is_staff | boolean (Staff status) | Designates whether the user can log into this admin site. |
is_active | boolean (Active) | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. |
date_joined | string <date-time> (Date joined) | - |
groups | Array of integers | The groups this user belongs to. A user will get all permissions granted to each of their groups. |
user_permissions | Array of integers | Specific permissions for this user. |
Name | Type | Comments |
id | integer (ID) | - |
usernamerequired | string (Username) non-empty | - |
last_login <date-time>(Last login) | string | - |
first_name | string (First name) non-empty | - |
last_name | string (Last name) non-empty | - |
string <email> (Email) non-empty | - | |
password | string (Password) non-empty Nullable | - |
password2 | string (Password2) non-empty Nullable | - |
institution | string (Institution) | - |
roles | string (Roles) | - |
institution_id | integer (Institution id) Nullable | - |
inst_admin | boolean (Inst admin) Nullable Default: false | - |
login_allowed | boolean (Login allowed) Nullable Default: true | - |
uid | string (Uid) non-empty Nullable | - |
is_superuser | boolean (Superuser status) | Designates that this user has all permissions without explicitly assigning them. |
is_staff | boolean (Staff status) | Designates whether the user can log into this admin site. |
is_active | boolean (Active) | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. |
date_joined | string <date-time> (Date joined) | - |
groups | Array of integers | The groups this user belongs to. A user will get all permissions granted to each of their groups. |
user_permissions | Array of integers | Specific permissions for this user. |
Request Sample: POST
{
"username": "string",
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"password": "string",
"password2": "string",
"institution_id": 0,
"inst_admin": false,
"login_allowed": true,
"uid": "string",
"is_superuser": true,
"is_staff": true,
"is_active": true,
"date_joined": "2019-08-24T14:15:22Z",
"groups": [
0
],
"user_permissions": [
0
]
}
Responses
Response sample: 201
201
{
"id": 0,
"username": "string",
"last_login": "2019-08-24T14:15:22Z",
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"password": "string",
"password2": "string",
"institution": "string",
"roles": "string",
"institution_id": 0,
"inst_admin": false,
"login_allowed": true,
"uid": "string",
"is_superuser": true,
"is_staff": true,
"is_active": true,
"date_joined": "2019-08-24T14:15:22Z",
"groups": [
0
],
"user_permissions": [
0
]
}
Read User
Retrieves information about a user.
Request
Concept | Data |
---|---|
HTTP method | GET |
Path | /api/v2/admin/user/{id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
idrequired | string | Request path parameter |
Name | Type | Comments |
id | integer (ID) non-empty | - |
usernamerequired | string (Username) non-empty | - |
last_login | string <date-time> (Last login) | - |
first_name | string (First name) non-empty | - |
last_name | string (Last name) non-empty | - |
string <email> (Email) non-empty | - | |
password | string (Password) non-empty Nullable | - |
password2 | string (Password2) non-empty Nullable | - |
institution | string (Institution) | - |
roles | string (Roles) | - |
institution_id | integer (Institution ID) Nullable | - |
inst_admin | boolean (Inst admin) Nullable | Default: false |
login_allowed | boolean(Login allowed) Nullable | Default: true |
uid | string (Uid) non-empty Nullable | - |
is_superuser | boolean (Superuser status) | Designates that this user has all permissions without explicitly assigning them. |
is_staff | boolean (Staff status) | Designates whether the user can log into this admin site. |
is_active | boolean (Active) | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. |
date_joined | string <date-time> (Date joined) | - |
groups | Array of integers | The groups this user belongs to. A user will get all permissions granted to each of their groups. |
user_permissions | Array of integers | Specific permissions for this user. |
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",
"password": "string",
"password2": "string",
"institution": "string",
"roles": "string",
"institution_id": 0,
"inst_admin": false,
"login_allowed": true,
"uid": "string",
"is_superuser": true,
"is_staff": true,
"is_active": true,
"date_joined": "2019-08-24T14:15:22Z",
"groups": [
0
],
"user_permissions": [
0
]
}
Update User
Updates user’s information.
Request
Concept | Data |
---|---|
HTTP Method | PUT |
Path | /api/v2/admin/user/{id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
idrequired | string | - |
usernamerequired | string (Username) non-empty | - |
first_name | string (First name) non-empty | - |
last_name | string (Last name) non-empty | - |
string <email> (Email) non-empty | - | |
password | string (Password) non-empty Nullable | - |
password2 | string (Password2) non-empty Nullable | - |
institution_id | integer (Institution ID) Nullable | - |
inst_admin | boolean (Inst admin) Nullable | Default: false |
login_allowed | boolean(Login allowed) Nullable | Default: true |
uid | string (Uid) non-empty Nullable | - |
is_superuser | boolean (Superuser status) | Designates that this user has all permissions without explicitly assigning them. |
is_staff | boolean (Staff status) | Designates whether the user can log into this admin site. |
is_active | boolean (Active) | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. |
date_joined | string <date-time> (Date joined) | - |
groups | Array of integers | The groups this user belongs to. A user will get all permissions granted to each of their groups. |
user_permissions | Array of integers | Specific permissions for this user. |
Name | Type | Comments |
id | integer (ID) | - |
usernamerequired | string (Username) non-empty | - |
last_login | string <date-time&gr; (Last login) | - |
first_name | string (First name) non-empty | - |
last_name | string (Last name) non-empty | - |
string <email> (Email) non-empty | - | |
password | string (Password) non-empty Nullable | - |
password2 | string (Password2) non-empty Nullable | - |
institution | string (Institution) | - |
roles | string (Roles) | - |
institution_id | integer (Institution ID) Nullable | - |
inst_admin | boolean (Inst admin) Nullable | Default: false |
login_allowed | boolean(Login allowed) Nullable | Default: true |
uid | string (Uid) non-empty Nullable | - |
is_superuser | boolean (Superuser status) | Designates that this user has all permissions without explicitly assigning them. |
is_staff | boolean (Staff status) | Designates whether the user can log into this admin site. |
is_active | boolean (Active) | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. |
date_joined | string <date-time> (Date joined) | - |
groups | Array of integers | The groups this user belongs to. A user will get all permissions granted to each of their groups. |
user_permissions | Array of integers | Specific permissions for this user. |
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",
"password": "string",
"password2": "string",
"institution": "string",
"roles": "string",
"institution_id": 0,
"inst_admin": false,
"login_allowed": true,
"uid": "string",
"is_superuser": true,
"is_staff": true,
"is_active": true,
"date_joined": "2019-08-24T14:15:22Z",
"groups": [
0
],
"user_permissions": [
0
]
}
Update User Partial Information
Updates partial user’s information.
Request
Concept | Data |
---|---|
HTTP Method | PATCH |
Path | /api/v2/admin/user/{id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
idrequired | string | - |
usernamerequired | string (Username) non-empty | - |
first_name | string (First name) non-empty | - |
last_name | string (Last name) non-empty | - |
string <email> (Email) non-empty | - | |
password | string (Password) non-empty Nullable | - |
password2 | string (Password2) non-empty Nullable | - |
institution_id | integer (Institution ID) Nullable | - |
inst_admin | boolean (Inst admin) Nullable | Default: false |
login_allowed | boolean(Login allowed) Nullable | Default: true |
uid | string (Uid) non-empty Nullable | - |
is_superuser | boolean (Superuser status) | Designates that this user has all permissions without explicitly assigning them. |
is_staff | boolean (Staff status) | Designates whether the user can log into this admin site. |
is_active | boolean (Active) | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. |
date_joined | string <date-time> (Date joined) | - |
groups | Array of integers | The groups this user belongs to. A user will get all permissions granted to each of their groups. |
user_permissions | Array of integers | Specific permissions for this user. |
Name | Type | Comments |
id | integer (ID) | - |
usernamerequired | string (Username) non-empty | - |
last_login | string <date-time&gr; (Last login) | - |
first_name | string (First name) non-empty | - |
last_name | string (Last name) non-empty | - |
string <email> (Email) non-empty | - | |
password | string (Password) non-empty Nullable | - |
password2 | string (Password2) non-empty Nullable | - |
institution | string (Institution) | - |
roles | string (Roles) | - |
institution_id | integer (Institution ID) Nullable | - |
inst_admin | boolean (Inst admin) Nullable | Default: false |
login_allowed | boolean(Login allowed) Nullable | Default: true |
uid | string (Uid) non-empty Nullable | - |
is_superuser | boolean (Superuser status) | Designates that this user has all permissions without explicitly assigning them. |
is_staff | boolean (Staff status) | Designates whether the user can log into this admin site. |
is_active | boolean (Active) | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. |
date_joined | string <date-time> (Date joined) | - |
groups | Array of integers | The groups this user belongs to. A user will get all permissions granted to each of their groups. |
user_permissions | Array of integers | Specific permissions for this user. |
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",
"password": "string",
"password2": "string",
"institution": "string",
"roles": "string",
"institution_id": 0,
"inst_admin": false,
"login_allowed": true,
"uid": "string",
"is_superuser": true,
"is_staff": true,
"is_active": true,
"date_joined": "2019-08-24T14:15:22Z",
"groups": [
0
],
"user_permissions": [
0
]
}
Delete User
Deletes user from the system.
Request
Concept | Data |
---|---|
HTTP Method | DELETE |
Path | /api/v2/admin/user/{id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
idrequired | string | Request path parameter |
Responses
Response sample: 204
204
{
}
2. Institution Management
Set of API endpoints that allow an Institution to be viewed or edited.
- GET: List Institutions
- POST: Create Institution
- GET: Read Institution
- PUT: Update Institution
- PATCH: Update Institution Partial Information
- DELETE: Delete Institution
List Institutions: GET
API endpoint for listing Institutions.
Request
Concept | Data |
---|---|
HTTP Method | GET |
Path | /api/v2/admin/institution/ |
Authorization | JWT |
Content Type | application/json |
Parameters
Name | Type | Comments |
search | string | A search term |
ordering | string | Which field to use when ordering the results. |
limit | integer | Number of results to return per page. |
offset | integer | The initial index from which to return the results. |
Name | Type | Comments |
countrequired | integer (ID) | - |
next | string (uri) Nullable | - |
previous | string (uri) Nullable | - |
resultsrequired | Array of objects (InstitutionAdmin) | - |
Responses
Response sample
200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
{
"id": 0,
"acronym": "string",
"name": "string",
"external_ic": true,
"mail_domain": "string",
"disable_vle_learner_creation": true,
"disable_vle_instructor_creation": true,
"disable_vle_user_creation": true,
"allow_learner_report": true,
"allow_learner_audit": true,
"allow_valid_audit": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}
Create Institution
API endpoint for creating a new Institution.
Request
Concept | Data |
---|---|
HTTP Method | POST |
Path | /api/v2/admin/institution/ |
Authorization | JWT |
Content Type | application/json |
Parameters
Name | Type | Comments |
acronymrequired | string (Acronym) [1 .. 255] characters | Institution acronym |
namerequired | string (Name) non-empty | Name of the institution |
external_ic | boolean (External ic) | Informed Consent is managed externally to TeSLA |
mail_domain | string (Mail domain) <= 255 characters. Nullable | Accepted mail domains for this institution. |
disable_vle_learner_creation | boolean (Disable vle learner creation) | If enabled, VLEs cannot create learners. |
disable_vle_instructor_creation | boolean (Disable vle instructor creation) | If enabled, VLEs cannot create instructors. |
disable_vle_user_creation | boolean (Disable vle user creation) | If enabled, VLEs cannot create institution users. |
allow_learner_report | boolean (Allow learner report) | Learners can access their reports. |
allow_learner_audit | boolean (Allow learner audit) | Learners can access the audit data of their reports. |
allow_valid_audit | boolean (Allow valid audit) | Audit data is available even when results are valid. |
Name | Type | Comments |
id | integer (Id) | Institution Id. |
acronymrequired | string (Acronym) [1 .. 255] characters | Institution acronym |
namerequired | string (Name) non-empty | Name of the institution |
external_ic | boolean (External ic) | Informed Consent is managed externally to TeSLA |
mail_domain | string (Mail domain) <= 255 characters. Nullable | Accepted mail domains for this institution. |
disable_vle_learner_creation | boolean (Disable vle learner creation) | If enabled, VLEs cannot create learners. |
disable_vle_instructor_creation | boolean (Disable vle instructor creation) | If enabled, VLEs cannot create instructors. |
disable_vle_user_creation | boolean (Disable vle user creation) | If enabled, VLEs cannot create institution users. |
allow_learner_report | boolean (Allow learner report) | Learners can access their reports. |
allow_learner_audit | boolean (Allow learner audit) | Learners can access the audit data of their reports. |
allow_valid_audit | boolean (Allow valid audit) | Audit data is available even when results are valid. |
created_at | string <date-time>(Created at) | - |
updated_at | string <date-time>(Updated at) | - |
Request Sample: POST
{
"acronym": "string",
"name": "string",
"external_ic": true,
"mail_domain": "string",
"disable_vle_learner_creation": true,
"disable_vle_instructor_creation": true,
"disable_vle_user_creation": true,
"allow_learner_report": true,
"allow_learner_audit": true,
"allow_valid_audit": true
}
Responses
Response sample
201
{
"id": 0,
"acronym": "string",
"name": "string",
"external_ic": true,
"mail_domain": "string",
"disable_vle_learner_creation": true,
"disable_vle_instructor_creation": true,
"disable_vle_user_creation": true,
"allow_learner_report": true,
"allow_learner_audit": true,
"allow_valid_audit": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Read Institution
Retrieves information about an Institution.
Request
Concept | Data |
---|---|
HTTP method | GET |
Path | /api/v2/admin/institution/{institution_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
institution_idrequired | string | Request path parameter |
Name | Type | Comments |
id | integer (Id) | Institution Id. |
acronymrequired | string (Acronym) [1 .. 255] characters | Institution acronym |
namerequired | string (Name) non-empty | Name of the institution |
external_ic | boolean (External ic) | Informed Consent is managed externally to TeSLA |
mail_domain | string (Mail domain) <= 255 characters. Nullable | Accepted mail domains for this institution. |
disable_vle_learner_creation | boolean (Disable vle learner creation) | If enabled, VLEs cannot create learners. |
disable_vle_instructor_creation | boolean (Disable vle instructor creation) | If enabled, VLEs cannot create instructors. |
disable_vle_user_creation | boolean (Disable vle user creation) | If enabled, VLEs cannot create institution users. |
allow_learner_report | boolean (Allow learner report) | Learners can access their reports. |
allow_learner_audit | boolean (Allow learner audit) | Learners can access the audit data of their reports. |
allow_valid_audit | boolean (Allow valid audit) | Audit data is available even when results are valid. |
created_at | string <date-time>(Created at) | - |
updated_at | string <date-time>(Updated at) | - |
Responses
Response sample: 200
200
{
"id": 0,
"acronym": "string",
"name": "string",
"external_ic": true,
"mail_domain": "string",
"disable_vle_learner_creation": true,
"disable_vle_instructor_creation": true,
"disable_vle_user_creation": true,
"allow_learner_report": true,
"allow_learner_audit": true,
"allow_valid_audit": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Update Institution
API endpoint that updates Institution’s information.
Request
Concept | Data |
---|---|
HTTP method | PUT |
Path | /api/v2/admin/institution/{institution_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
institution_idrequired | string | Request path parameter |
acronymrequired | string (Acronym) [1 .. 255] characters | Institution acronym |
namerequired | string (Name) non-empty | Name of the institution |
external_ic | boolean (External ic) | Informed Consent is managed externally to TeSLA |
mail_domain | string (Mail domain) <= 255 characters. Nullable | Accepted mail domains for this institution. |
disable_vle_learner_creation | boolean (Disable vle learner creation) | If enabled, VLEs cannot create learners. |
disable_vle_instructor_creation | boolean (Disable vle instructor creation) | If enabled, VLEs cannot create instructors. |
disable_vle_user_creation | boolean (Disable vle user creation) | If enabled, VLEs cannot create institution users. |
allow_learner_report | boolean (Allow learner report) | Learners can access their reports. |
allow_learner_audit | boolean (Allow learner audit) | Learners can access the audit data of their reports. |
allow_valid_audit | boolean (Allow valid audit) | Audit data is available even when results are valid. |
Name | Type | Comments |
id | integer (Id) | Institution Id. |
acronymrequired | string (Acronym) [1 .. 255] characters | Institution acronym |
namerequired | string (Name) non-empty | Name of the institution |
external_ic | boolean (External ic) | Informed Consent is managed externally to TeSLA |
mail_domain | string (Mail domain) <= 255 characters. Nullable | Accepted mail domains for this institution. |
disable_vle_learner_creation | boolean (Disable vle learner creation) | If enabled, VLEs cannot create learners. |
disable_vle_instructor_creation | boolean (Disable vle instructor creation) | If enabled, VLEs cannot create instructors. |
disable_vle_user_creation | boolean (Disable vle user creation) | If enabled, VLEs cannot create institution users. |
allow_learner_report | boolean (Allow learner report) | Learners can access their reports. |
allow_learner_audit | boolean (Allow learner audit) | Learners can access the audit data of their reports. |
allow_valid_audit | boolean (Allow valid audit) | Audit data is available even when results are valid. |
created_at | string <date-time>(Created at) | - |
updated_at | string <date-time>(Updated at) | - |
Request sample
{
"acronym": "string",
"name": "string",
"external_ic": true,
"mail_domain": "string",
"disable_vle_learner_creation": true,
"disable_vle_instructor_creation": true,
"disable_vle_user_creation": true,
"allow_learner_report": true,
"allow_learner_audit": true,
"allow_valid_audit": true
}
Responses
Response sample: 200
200
{
"id": 0,
"acronym": "string",
"name": "string",
"external_ic": true,
"mail_domain": "string",
"disable_vle_learner_creation": true,
"disable_vle_instructor_creation": true,
"disable_vle_user_creation": true,
"allow_learner_report": true,
"allow_learner_audit": true,
"allow_valid_audit": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Update Institution
API endpoint that updates Institution’s information.
Request
Concept | Data |
---|---|
HTTP method | PATCH |
Path | /api/v2/admin/institution/{institution_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
institution_idrequired | string | Request path parameter |
acronymrequired | string (Acronym) [1 .. 255] characters | Institution acronym |
namerequired | string (Name) non-empty | Name of the institution |
external_ic | boolean (External ic) | Informed Consent is managed externally to TeSLA |
mail_domain | string (Mail domain) <= 255 characters. Nullable | Accepted mail domains for this institution. |
disable_vle_learner_creation | boolean (Disable vle learner creation) | If enabled, VLEs cannot create learners. |
disable_vle_instructor_creation | boolean (Disable vle instructor creation) | If enabled, VLEs cannot create instructors. |
disable_vle_user_creation | boolean (Disable vle user creation) | If enabled, VLEs cannot create institution users. |
allow_learner_report | boolean (Allow learner report) | Learners can access their reports. |
allow_learner_audit | boolean (Allow learner audit) | Learners can access the audit data of their reports. |
allow_valid_audit | boolean (Allow valid audit) | Audit data is available even when results are valid. |
Name | Type | Comments |
id | integer (Id) | Institution Id. |
acronymrequired | string (Acronym) [1 .. 255] characters | Institution acronym |
namerequired | string (Name) non-empty | Name of the institution |
external_ic | boolean (External ic) | Informed Consent is managed externally to TeSLA |
mail_domain | string (Mail domain) <= 255 characters. Nullable | Accepted mail domains for this institution. |
disable_vle_learner_creation | boolean (Disable vle learner creation) | If enabled, VLEs cannot create learners. |
disable_vle_instructor_creation | boolean (Disable vle instructor creation) | If enabled, VLEs cannot create instructors. |
disable_vle_user_creation | boolean (Disable vle user creation) | If enabled, VLEs cannot create institution users. |
allow_learner_report | boolean (Allow learner report) | Learners can access their reports. |
allow_learner_audit | boolean (Allow learner audit) | Learners can access the audit data of their reports. |
allow_valid_audit | boolean (Allow valid audit) | Audit data is available even when results are valid. |
created_at | string <date-time>(Created at) | - |
updated_at | string <date-time>(Updated at) | - |
Request sample
{
"acronym": "string",
"name": "string",
"external_ic": true,
"mail_domain": "string",
"disable_vle_learner_creation": true,
"disable_vle_instructor_creation": true,
"disable_vle_user_creation": true,
"allow_learner_report": true,
"allow_learner_audit": true,
"allow_valid_audit": true
}
Responses
Response sample: 200
200
{
"id": 0,
"acronym": "string",
"name": "string",
"external_ic": true,
"mail_domain": "string",
"disable_vle_learner_creation": true,
"disable_vle_instructor_creation": true,
"disable_vle_user_creation": true,
"allow_learner_report": true,
"allow_learner_audit": true,
"allow_valid_audit": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Delete Institution
API endpoint for deleting Institution from the system.
Request
Concept | Data |
---|---|
HTTP Method | DELETE |
Path | /api/v2/admin/institution/{institution_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
institution_idrequired | string | Request path parameter |
Responses
Response sample: 204
204
{
}
3. Instrument Management
Set of API endpoints that allow an Instrument to be viewed or edited.
- GET: List Instruments
- POST: Create Instrument
- GET: Read Instrument
- PUT: Update Instrument
- PATCH: Update Instrument Partial Information
- DELETE: Delete Instrument
List Instruments [GET]
API endpoint for listing all Instruments.
Request
Concept | Data |
---|---|
HTTP Method | GET |
Path | /api/v2/admin/instrument/ |
Authorization | JWT |
Content Type | application/json |
Parameters
Name | Type | Comments |
search | string | A search term |
ordering | string | Which field to use when ordering the results. |
limit | integer | Number of results to return per page. |
offset | integer | The initial index from which to return the results. |
Name | Type | Comments |
countrequired | integer (ID) | - |
next | string (uri) Nullable | - |
previous | string (uri) Nullable | - |
resultsrequired | Array of objects (Instrument) | - |
Responses
Response sample
200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
{
"id": 0,
"options_schema": {},
"name": "string",
"acronym": "string",
"queue": "string",
"enabled": true,
"requires_enrolment": true,
"description": "string",
"identity": true,
"originality": true,
"authorship": true,
"integrity": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]
}
Create Instrument [POST]
API endpoint for creating a new Instrument.
Request
Concept | Data |
---|---|
HTTP Method | POST |
Path | /api/v2/admin/instrument/ |
Authorization | JWT |
Content Type | application/json |
Parameters
Name | Type | Comments |
options_schema | object (Options schema) Nullable | - |
namerequired | string (Name) [1 .. 250] characters | Instrument name |
acronymrequired | string (Acronym) [1 .. 30] characters | Instrument acronym |
queuerequired | string (Queue) non-empty | Queue this instrument listens to. |
enabled | boolean (Enabled) | The instrument is enabled. |
requires_enrolment | boolean (Requires enrolment) | Whether this instrument requires enrolment. |
description | string (Description) Nullable | Description of the instrument. |
identity | boolean (Identity) | This instrument contributes to the learner identity verification. |
originality | boolean (Originality) | This instrument contributes to the assessment originality verification. |
authorship | boolean (Authorship) | This instrument contributes to the assessment authorship verification. |
integrity | boolean (Integrity) | This instrument contributes to the assessment integrity verification. |
Name | Type | Comments |
id | integer (ID) | - |
options_schema | object (Options schema) Nullable | - |
namerequired | string (Name) [1 .. 250] characters | Instrument name |
acronymrequired | string (Acronym) [1 .. 30] characters | Instrument acronym |
queuerequired | string (Queue) non-empty | Queue this instrument listens to. |
enabled | boolean (Enabled) | The instrument is enabled. |
requires_enrolment | boolean (Requires enrolment) | Whether this instrument requires enrolment. |
description | string (Description) Nullable | Description of the instrument. |
identity | boolean (Identity) | This instrument contributes to the learner identity verification. |
originality | boolean (Originality) | This instrument contributes to the assessment originality verification. |
authorship | boolean (Authorship) | This instrument contributes to the assessment authorship verification. |
integrity | boolean (Integrity) | This instrument contributes to the assessment integrity verification. |
created_at | string <date-time> (Created at) | - |
updated_at | string <date-time> (Updated at) | - |
Request Sample: POST
{
"options_schema": {},
"name": "string",
"acronym": "string",
"queue": "string",
"enabled": true,
"requires_enrolment": true,
"description": "string",
"identity": true,
"originality": true,
"authorship": true,
"integrity": true
}
Responses
Response sample
201
{
"id": 0,
"options_schema": {},
"name": "string",
"acronym": "string",
"queue": "string",
"enabled": true,
"requires_enrolment": true,
"description": "string",
"identity": true,
"originality": true,
"authorship": true,
"integrity": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Read Instrument [GET]
Retrieves information about an Instrument.
Request
Concept | Data |
---|---|
HTTP method | GET |
Path | /api/v2/admin/instrument/{instrument_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
instrument_idrequired | string | Request path parameter. A unique integer value identifying this instrument. |
Name | Type | Comments |
id | integer (Id) | Instrument Id. |
options_schema | object (Options schema) Nullable | - |
namerequired | string (Name) [1 .. 250] characters | Instrument name |
acronymrequired | string (Acronym) [1 .. 30] characters | Instrument acronym |
queuerequired | string (Queue) non-empty | Queue this instrument listens to. |
enabled | boolean (Enabled) | The instrument is enabled. |
requires_enrolment | boolean (Requires enrolment) | Whether this instrument requires enrolment. |
description | string (Description) Nullable | Description of the instrument. |
identity | boolean (Identity) | This instrument contributes to the learner identity verification. |
originality | boolean (Originality) | This instrument contributes to the assessment originality verification. |
authorship | boolean (Authorship) | This instrument contributes to the assessment authorship verification. |
integrity | boolean (Integrity) | This instrument contributes to the assessment integrity verification. |
created_at | string <date-time> (Created at) | - |
updated_at | string <date-time> (Updated at) | - |
Responses
Response sample: 200
200
{
"id": 0,
"options_schema": {},
"name": "string",
"acronym": "string",
"queue": "string",
"enabled": true,
"requires_enrolment": true,
"description": "string",
"identity": true,
"originality": true,
"authorship": true,
"integrity": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Update Instrument [PUT]
API endpoint that updates Instrument’s information.
Request
Concept | Data |
---|---|
HTTP method | PUT |
Path | /api/v2/admin/instrument/{instrument_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
instrument_idrequired | string | Request path parameter. A unique integer value identifying this instrument. |
options_schema | object (Options schema) Nullable | - |
namerequired | string (Name) [1 .. 250] characters | Instrument name |
acronymrequired | string (Acronym) [1 .. 30] characters | Instrument acronym |
queuerequired | string (Queue) non-empty | Queue this instrument listens to. |
enabled | boolean (Enabled) | The instrument is enabled. |
requires_enrolment | boolean (Requires enrolment) | Whether this instrument requires enrolment. |
description | string (Description) Nullable | Description of the instrument. |
identity | boolean (Identity) | This instrument contributes to the learner identity verification. |
originality | boolean (Originality) | This instrument contributes to the assessment originality verification. |
authorship | boolean (Authorship) | This instrument contributes to the assessment authorship verification. |
integrity | boolean (Integrity) | This instrument contributes to the assessment integrity verification. |
Name | Type | Comments |
id | integer (Id) | Instrument Id. |
options_schema | object (Options schema) Nullable | - |
namerequired | string (Name) [1 .. 250] characters | Instrument name |
acronymrequired | string (Acronym) [1 .. 30] characters | Instrument acronym |
queuerequired | string (Queue) non-empty | Queue this instrument listens to. |
enabled | boolean (Enabled) | The instrument is enabled. |
requires_enrolment | boolean (Requires enrolment) | Whether this instrument requires enrolment. |
description | string (Description) Nullable | Description of the instrument. |
identity | boolean (Identity) | This instrument contributes to the learner identity verification. |
originality | boolean (Originality) | This instrument contributes to the assessment originality verification. |
authorship | boolean (Authorship) | This instrument contributes to the assessment authorship verification. |
integrity | boolean (Integrity) | This instrument contributes to the assessment integrity verification. |
created_at | string <date-time> (Created at) | - |
updated_at | string <date-time> (Updated at) | - |
Request sample
{
"options_schema": {},
"name": "string",
"acronym": "string",
"queue": "string",
"enabled": true,
"requires_enrolment": true,
"description": "string",
"identity": true,
"originality": true,
"authorship": true,
"integrity": true
}
Responses
Response sample: 200
200
{
"id": 0,
"options_schema": {},
"name": "string",
"acronym": "string",
"queue": "string",
"enabled": true,
"requires_enrolment": true,
"description": "string",
"identity": true,
"originality": true,
"authorship": true,
"integrity": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Update Instrument Partial Information [PATCH]
API endpoint that updates Instrument’s information.
Request
Concept | Data |
---|---|
HTTP method | PATCH |
Path | /api/v2/admin/instrument/{instrument_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
instrument_idrequired | string | Request path parameter. A unique integer value identifying this instrument. |
options_schema | object (Options schema) Nullable | - |
namerequired | string (Name) [1 .. 250] characters | Instrument name |
acronymrequired | string (Acronym) [1 .. 30] characters | Instrument acronym |
queuerequired | string (Queue) non-empty | Queue this instrument listens to. |
enabled | boolean (Enabled) | The instrument is enabled. |
requires_enrolment | boolean (Requires enrolment) | Whether this instrument requires enrolment. |
description | string (Description) Nullable | Description of the instrument. |
identity | boolean (Identity) | This instrument contributes to the learner identity verification. |
originality | boolean (Originality) | This instrument contributes to the assessment originality verification. |
authorship | boolean (Authorship) | This instrument contributes to the assessment authorship verification. |
integrity | boolean (Integrity) | This instrument contributes to the assessment integrity verification. |
Name | Type | Comments |
id | integer (Id) | Instrument Id. |
options_schema | object (Options schema) Nullable | - |
namerequired | string (Name) [1 .. 250] characters | Instrument name |
acronymrequired | string (Acronym) [1 .. 30] characters | Instrument acronym |
queuerequired | string (Queue) non-empty | Queue this instrument listens to. |
enabled | boolean (Enabled) | The instrument is enabled. |
requires_enrolment | boolean (Requires enrolment) | Whether this instrument requires enrolment. |
description | string (Description) Nullable | Description of the instrument. |
identity | boolean (Identity) | This instrument contributes to the learner identity verification. |
originality | boolean (Originality) | This instrument contributes to the assessment originality verification. |
authorship | boolean (Authorship) | This instrument contributes to the assessment authorship verification. |
integrity | boolean (Integrity) | This instrument contributes to the assessment integrity verification. |
created_at | string <date-time> (Created at) | - |
updated_at | string <date-time> (Updated at) | - |
Request sample
{
"options_schema": {},
"name": "string",
"acronym": "string",
"queue": "string",
"enabled": true,
"requires_enrolment": true,
"description": "string",
"identity": true,
"originality": true,
"authorship": true,
"integrity": true
}
Responses
Response sample: 200
200
{
"id": 0,
"options_schema": {},
"name": "string",
"acronym": "string",
"queue": "string",
"enabled": true,
"requires_enrolment": true,
"description": "string",
"identity": true,
"originality": true,
"authorship": true,
"integrity": true,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Delete Instrument [DELETE]
API endpoint for deleting Instrument from the system.
Request
Concept | Data |
---|---|
HTTP Method | DELETE |
Path | /api/v2/admin/instrument/{instrument_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
instrument_idrequired | integer | Request path parameter. A unique integer value identifying this instrument. |
Responses
Response sample: 204
204
{
}
4. UI Management
Set of API endpoints that allow a UI to be viewed or edited.
- List UI (GET)
- Create UI (POST)
- Read UI (GET)
- Update UI (PUT)
- Update UI Partial Information (PATCH)
- Delete UI
(DELETE)
List UI (GET)
API endpoint for listing UI.
Request
Concept | Data |
---|---|
HTTP method | GET |
Path | /api/v2/admin/ui/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
search | string | A search term. |
ordering | string | Which field to use when ordering the results. |
limit | integer | Number of results to return per page. |
offset | integer | The initial index from which to return the results. |
Name | Type | Comments |
countrequired | integer (ID) | - |
next | string (uri) Nullable | - |
previous | string (uri) Nullable | - |
resultsrequired | Array of objects (Instrument) | - |
Responses
Response sample: 200
200
{
"count": 0,
"next": "http://example.com",
"previous": "http://example.com",
"results": [
{
"id": "string",
"route": "string",
"enabled": true,
"roles": "string"
}
]
}
Create UI (POST)
API endpoint for creating a new UI.
Request
Concept | Data |
---|---|
HTTP method | POST |
Path | /api/v2/admin/ui/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
routerequired | string (Route) [1 .. 250] characters | Affected Route. |
enabled | boolean (Enabled) | Status. |
roles | string (Roles) <=250 characters. Nullable | Required roles. |
Name | Type | Comments |
ui_id | string (Id) | - |
routerequired | string (Route) [1 .. 250] characters | Affected Route. |
enabled | boolean (Enabled) | Status. |
roles | string (Roles) <=250 characters. Nullable | Required roles. |
Request sample
{
"route": "string",
"enabled": true,
"roles": "string"
}
Responses
Response sample: 201
201
{
"id": "string",
"route": "string",
"enabled": true,
"roles": "string"
}
Read UI (GET)
Retrieves information about UI Options.
Request
Concept | Data |
---|---|
HTTP method | GET |
Path | /api/v2/admin/ui/{ui_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
ui_idrequired | string | Request path parameter. |
Name | Type | Comments |
ui_id | string (Id) | - |
routerequired | string (Route) [1 .. 250] characters | Affected Route. |
enabled | boolean (Enabled) | Status. |
roles | string (Roles) <=250 characters. Nullable | Required roles. |
Responses
Response sample: 200
200
{
"id": "string",
"route": "string",
"enabled": true,
"roles": "string"
}
Update UI (PUT)
API endpoint that updates UI Options’ information.
Request
Concept | Data |
---|---|
HTTP method | PUT |
Path | /api/v2/admin/ui/{ui_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
ui_idrequired | string | Request path parameter. |
routerequired | string (Route) [1 .. 250] characters | Affected Route. |
enabled | boolean (Enabled) | Status. |
roles | string (Roles) <=250 characters. Nullable | Required roles. |
Name | Type | Comments |
ui_id | string (Id) | - |
routerequired | string (Route) [1 .. 250] characters | Affected Route. |
enabled | boolean (Enabled) | Status. |
roles | string (Roles) <=250 characters. Nullable | Required roles. |
Request sample
{
"route": "string",
"enabled": true,
"roles": "string"
}
Responses
Response sample: 200
200
{
"id": "string",
"route": "string",
"enabled": true,
"roles": "string"
}
Update UI Partial Information (PATCH)
API endpoint that updates UI Options’ information.
Request
Concept | Data |
---|---|
HTTP method | PATCH |
Path | /api/v2/admin/ui/{ui_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
ui_idrequired | string | Request path parameter. |
routerequired | string (Route) [1 .. 250] characters | Affected Route. |
enabled | boolean (Enabled) | Status. |
roles | string (Roles) <=250 characters. Nullable | Required roles. |
Name | Type | Comments |
ui_id | string (Id) | - |
routerequired | string (Route) [1 .. 250] characters | Affected Route. |
enabled | boolean (Enabled) | Status. |
roles | string (Roles) <=250 characters. Nullable | Required roles. |
Request sample
{
"route": "string",
"enabled": true,
"roles": "string"
}
Responses
Response sample: 200
200
{
"id": "string",
"route": "string",
"enabled": true,
"roles": "string"
}
Delete UI (DELETE)
API endpoint for deleting UI Options from the system.
Request
Concept | Data |
---|---|
HTTP Method | DELETE |
Path | /api/v2/admin/ui/{ui_id}/ |
Authorization | JWT |
Content Type | application/json |
Parameters:
Name | Type | Comments |
ui_idrequired | string | Request path parameter. . |
Responses
Response sample: 204
204
{
}