Admin

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

Table of Contents

  1. User Management
  2. Institution Management
  3. Instrument Management
  4. UI Management




1. User Management

Set of API endpoints that allow users to be viewed or edited.

List Users: GET

API endpoint for listing Users.

Request

ConceptData
HTTP MethodGET
Path/api/v2/admin/user/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.

NameTypeComments
searchstringA search term.
usernamestring-
first_namestring-
last_namestring-
emailstring-
institutionstring-
rolesstring-
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 (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

ConceptData
HTTP MethodPOST
Path/api/v2/admin/user/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
password2string (Password2)
non-empty
Nullable
-
institution_idinteger (Institution id)
Nullable
-
inst_adminboolean (Inst admin)
Nullable
Default: false
-
login_allowedboolean (Login allowed)
Nullable
Default: true
-
uidstring (Uid)
non-empty
Nullable
-
is_superuserboolean (Superuser status)Designates that this user has all permissions without explicitly assigning them.
is_staffboolean (Staff status)Designates whether the user can log into this admin site.
is_activeboolean (Active)Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joinedstring <date-time> (Date joined)-
groupsArray of integersThe groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissionsArray of integersSpecific permissions for this user.
Response parameters.
NameTypeComments
idinteger (ID)-
username
required
string (Username)
non-empty
-
last_login <date-time>(Last login)string-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
passwordstring (Password)
non-empty
Nullable
-
password2string (Password2)
non-empty
Nullable
-
institutionstring (Institution)-
rolesstring (Roles)-
institution_idinteger (Institution id)
Nullable
-
inst_adminboolean (Inst admin)
Nullable
Default: false
-
login_allowedboolean (Login allowed)
Nullable
Default: true
-
uidstring (Uid)
non-empty
Nullable
-
is_superuserboolean (Superuser status)Designates that this user has all permissions without explicitly assigning them.
is_staffboolean (Staff status)Designates whether the user can log into this admin site.
is_activeboolean (Active)Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joinedstring <date-time> (Date joined)-
groupsArray of integersThe groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissionsArray of integersSpecific 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

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

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter
Response parameters.
NameTypeComments
idinteger (ID)
non-empty
-
username
required
string (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
-
passwordstring (Password)
non-empty
Nullable
-
password2string (Password2)
non-empty
Nullable
-
institutionstring (Institution)-
rolesstring (Roles)-
institution_idinteger (Institution ID)
Nullable
-
inst_adminboolean (Inst admin)
Nullable
Default: false
login_allowedboolean(Login allowed)
Nullable
Default: true
uidstring (Uid)
non-empty
Nullable
-
is_superuserboolean (Superuser status)Designates that this user has all permissions without explicitly assigning them.
is_staffboolean (Staff status)Designates whether the user can log into this admin site.
is_activeboolean (Active)Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joinedstring <date-time> (Date joined)-
groupsArray of integersThe groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissionsArray of integersSpecific 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

ConceptData
HTTP MethodPUT
Path/api/v2/admin/user/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
string-
username
required
string (Username)
non-empty
-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
passwordstring (Password)
non-empty
Nullable
-
password2string (Password2)
non-empty
Nullable
-
institution_idinteger (Institution ID)
Nullable
-
inst_adminboolean (Inst admin)
Nullable
Default: false
login_allowedboolean(Login allowed)
Nullable
Default: true
uidstring (Uid)
non-empty
Nullable
-
is_superuserboolean (Superuser status)Designates that this user has all permissions without explicitly assigning them.
is_staffboolean (Staff status)Designates whether the user can log into this admin site.
is_activeboolean (Active)Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joinedstring <date-time> (Date joined)-
groupsArray of integersThe groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissionsArray of integersSpecific permissions for this user.
Response parameters.
NameTypeComments
idinteger (ID)-
username
required
string (Username)
non-empty
-
last_loginstring <date-time&gr; (Last login)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
passwordstring (Password)
non-empty
Nullable
-
password2string (Password2)
non-empty
Nullable
-
institutionstring (Institution)-
rolesstring (Roles)-
institution_idinteger (Institution ID)
Nullable
-
inst_adminboolean (Inst admin)
Nullable
Default: false
login_allowedboolean(Login allowed)
Nullable
Default: true
uidstring (Uid)
non-empty
Nullable
-
is_superuserboolean (Superuser status)Designates that this user has all permissions without explicitly assigning them.
is_staffboolean (Staff status)Designates whether the user can log into this admin site.
is_activeboolean (Active)Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joinedstring <date-time> (Date joined)-
groupsArray of integersThe groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissionsArray of integersSpecific 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

ConceptData
HTTP MethodPATCH
Path/api/v2/admin/user/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
string-
username
required
string (Username)
non-empty
-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
passwordstring (Password)
non-empty
Nullable
-
password2string (Password2)
non-empty
Nullable
-
institution_idinteger (Institution ID)
Nullable
-
inst_adminboolean (Inst admin)
Nullable
Default: false
login_allowedboolean(Login allowed)
Nullable
Default: true
uidstring (Uid)
non-empty
Nullable
-
is_superuserboolean (Superuser status)Designates that this user has all permissions without explicitly assigning them.
is_staffboolean (Staff status)Designates whether the user can log into this admin site.
is_activeboolean (Active)Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joinedstring <date-time> (Date joined)-
groupsArray of integersThe groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissionsArray of integersSpecific permissions for this user.
Response parameters.
NameTypeComments
idinteger (ID)-
username
required
string (Username)
non-empty
-
last_loginstring <date-time&gr; (Last login)-
first_namestring (First name)
non-empty
-
last_namestring (Last name)
non-empty
-
emailstring <email> (Email)
non-empty
-
passwordstring (Password)
non-empty
Nullable
-
password2string (Password2)
non-empty
Nullable
-
institutionstring (Institution)-
rolesstring (Roles)-
institution_idinteger (Institution ID)
Nullable
-
inst_adminboolean (Inst admin)
Nullable
Default: false
login_allowedboolean(Login allowed)
Nullable
Default: true
uidstring (Uid)
non-empty
Nullable
-
is_superuserboolean (Superuser status)Designates that this user has all permissions without explicitly assigning them.
is_staffboolean (Staff status)Designates whether the user can log into this admin site.
is_activeboolean (Active)Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
date_joinedstring <date-time> (Date joined)-
groupsArray of integersThe groups this user belongs to. A user will get all permissions granted to each of their groups.
user_permissionsArray of integersSpecific 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

ConceptData
HTTP MethodDELETE
Path/api/v2/admin/user/{id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
id
required
stringRequest path parameter

Responses

Response sample: 204

204
{
}



2. Institution Management

Set of API endpoints that allow an Institution to be viewed or edited.

List Institutions: GET

API endpoint for listing Institutions.

Request

ConceptData
HTTP MethodGET
Path/api/v2/admin/institution/
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 (ID)-
nextstring (uri)
Nullable
-
previousstring (uri)
Nullable
-
results
required
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

ConceptData
HTTP MethodPOST
Path/api/v2/admin/institution/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
acronym
required
string (Acronym)
[1 .. 255] characters
Institution acronym
name
required
string (Name)
non-empty
Name of the institution
external_icboolean (External ic)Informed Consent is managed externally to TeSLA
mail_domainstring (Mail domain)
<= 255 characters.
Nullable
Accepted mail domains for this institution.
disable_vle_learner_creationboolean (Disable vle learner creation)If enabled, VLEs cannot create learners.
disable_vle_instructor_creationboolean (Disable vle instructor creation)If enabled, VLEs cannot create instructors.
disable_vle_user_creationboolean (Disable vle user creation)If enabled, VLEs cannot create institution users.
allow_learner_reportboolean (Allow learner report)Learners can access their reports.
allow_learner_auditboolean (Allow learner audit)Learners can access the audit data of their reports.
allow_valid_auditboolean (Allow valid audit)Audit data is available even when results are valid.
Response parameters.
NameTypeComments
idinteger (Id)Institution Id.
acronym
required
string (Acronym)
[1 .. 255] characters
Institution acronym
name
required
string (Name)
non-empty
Name of the institution
external_icboolean (External ic)Informed Consent is managed externally to TeSLA
mail_domainstring (Mail domain)
<= 255 characters.
Nullable
Accepted mail domains for this institution.
disable_vle_learner_creationboolean (Disable vle learner creation)If enabled, VLEs cannot create learners.
disable_vle_instructor_creationboolean (Disable vle instructor creation)If enabled, VLEs cannot create instructors.
disable_vle_user_creationboolean (Disable vle user creation)If enabled, VLEs cannot create institution users.
allow_learner_reportboolean (Allow learner report)Learners can access their reports.
allow_learner_auditboolean (Allow learner audit)Learners can access the audit data of their reports.
allow_valid_auditboolean (Allow valid audit)Audit data is available even when results are valid.
created_atstring <date-time>(Created at)-
updated_atstring <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

ConceptData
HTTP methodGET
Path/api/v2/admin/institution/{institution_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
institution_id
required
stringRequest path parameter
Response parameters.
NameTypeComments
idinteger (Id)Institution Id.
acronym
required
string (Acronym)
[1 .. 255] characters
Institution acronym
name
required
string (Name)
non-empty
Name of the institution
external_icboolean (External ic)Informed Consent is managed externally to TeSLA
mail_domainstring (Mail domain)
<= 255 characters.
Nullable
Accepted mail domains for this institution.
disable_vle_learner_creationboolean (Disable vle learner creation)If enabled, VLEs cannot create learners.
disable_vle_instructor_creationboolean (Disable vle instructor creation)If enabled, VLEs cannot create instructors.
disable_vle_user_creationboolean (Disable vle user creation)If enabled, VLEs cannot create institution users.
allow_learner_reportboolean (Allow learner report)Learners can access their reports.
allow_learner_auditboolean (Allow learner audit)Learners can access the audit data of their reports.
allow_valid_auditboolean (Allow valid audit)Audit data is available even when results are valid.
created_atstring <date-time>(Created at)-
updated_atstring <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

ConceptData
HTTP methodPUT
Path/api/v2/admin/institution/{institution_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
institution_id
required
stringRequest path parameter
acronym
required
string (Acronym)
[1 .. 255] characters
Institution acronym
name
required
string (Name)
non-empty
Name of the institution
external_icboolean (External ic)Informed Consent is managed externally to TeSLA
mail_domainstring (Mail domain)
<= 255 characters.
Nullable
Accepted mail domains for this institution.
disable_vle_learner_creationboolean (Disable vle learner creation)If enabled, VLEs cannot create learners.
disable_vle_instructor_creationboolean (Disable vle instructor creation)If enabled, VLEs cannot create instructors.
disable_vle_user_creationboolean (Disable vle user creation)If enabled, VLEs cannot create institution users.
allow_learner_reportboolean (Allow learner report)Learners can access their reports.
allow_learner_auditboolean (Allow learner audit)Learners can access the audit data of their reports.
allow_valid_auditboolean (Allow valid audit)Audit data is available even when results are valid.
Response parameters.
NameTypeComments
idinteger (Id)Institution Id.
acronym
required
string (Acronym)
[1 .. 255] characters
Institution acronym
name
required
string (Name)
non-empty
Name of the institution
external_icboolean (External ic)Informed Consent is managed externally to TeSLA
mail_domainstring (Mail domain)
<= 255 characters.
Nullable
Accepted mail domains for this institution.
disable_vle_learner_creationboolean (Disable vle learner creation)If enabled, VLEs cannot create learners.
disable_vle_instructor_creationboolean (Disable vle instructor creation)If enabled, VLEs cannot create instructors.
disable_vle_user_creationboolean (Disable vle user creation)If enabled, VLEs cannot create institution users.
allow_learner_reportboolean (Allow learner report)Learners can access their reports.
allow_learner_auditboolean (Allow learner audit)Learners can access the audit data of their reports.
allow_valid_auditboolean (Allow valid audit)Audit data is available even when results are valid.
created_atstring <date-time>(Created at)-
updated_atstring <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

ConceptData
HTTP methodPATCH
Path/api/v2/admin/institution/{institution_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
institution_id
required
stringRequest path parameter
acronym
required
string (Acronym)
[1 .. 255] characters
Institution acronym
name
required
string (Name)
non-empty
Name of the institution
external_icboolean (External ic)Informed Consent is managed externally to TeSLA
mail_domainstring (Mail domain)
<= 255 characters.
Nullable
Accepted mail domains for this institution.
disable_vle_learner_creationboolean (Disable vle learner creation)If enabled, VLEs cannot create learners.
disable_vle_instructor_creationboolean (Disable vle instructor creation)If enabled, VLEs cannot create instructors.
disable_vle_user_creationboolean (Disable vle user creation)If enabled, VLEs cannot create institution users.
allow_learner_reportboolean (Allow learner report)Learners can access their reports.
allow_learner_auditboolean (Allow learner audit)Learners can access the audit data of their reports.
allow_valid_auditboolean (Allow valid audit)Audit data is available even when results are valid.
Response parameters.
NameTypeComments
idinteger (Id)Institution Id.
acronym
required
string (Acronym)
[1 .. 255] characters
Institution acronym
name
required
string (Name)
non-empty
Name of the institution
external_icboolean (External ic)Informed Consent is managed externally to TeSLA
mail_domainstring (Mail domain)
<= 255 characters.
Nullable
Accepted mail domains for this institution.
disable_vle_learner_creationboolean (Disable vle learner creation)If enabled, VLEs cannot create learners.
disable_vle_instructor_creationboolean (Disable vle instructor creation)If enabled, VLEs cannot create instructors.
disable_vle_user_creationboolean (Disable vle user creation)If enabled, VLEs cannot create institution users.
allow_learner_reportboolean (Allow learner report)Learners can access their reports.
allow_learner_auditboolean (Allow learner audit)Learners can access the audit data of their reports.
allow_valid_auditboolean (Allow valid audit)Audit data is available even when results are valid.
created_atstring <date-time>(Created at)-
updated_atstring <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

ConceptData
HTTP MethodDELETE
Path/api/v2/admin/institution/{institution_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
institution_id
required
stringRequest path parameter

Responses

Response sample: 204

204
{
}



3. Instrument Management

Set of API endpoints that allow an Instrument to be viewed or edited.

List Instruments [GET]

API endpoint for listing all Instruments.

Request

ConceptData
HTTP MethodGET
Path/api/v2/admin/instrument/
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 (ID)-
nextstring (uri)
Nullable
-
previousstring (uri)
Nullable
-
results
required
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

ConceptData
HTTP MethodPOST
Path/api/v2/admin/instrument/
AuthorizationJWT
Content Typeapplication/json

Parameters

Request parameters.
NameTypeComments
options_schemaobject (Options schema)
Nullable
-
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.
Response parameters.
NameTypeComments
idinteger (ID)-
options_schemaobject (Options schema)
Nullable
-
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.
created_atstring <date-time> (Created at)-
updated_atstring <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

ConceptData
HTTP methodGET
Path/api/v2/admin/instrument/{instrument_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
instrument_id
required
stringRequest path parameter. A unique integer value identifying this instrument.
Response parameters.
NameTypeComments
idinteger (Id)Instrument Id.
options_schemaobject (Options schema)
Nullable
-
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.
created_atstring <date-time> (Created at)-
updated_atstring <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

ConceptData
HTTP methodPUT
Path/api/v2/admin/instrument/{instrument_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
instrument_id
required
stringRequest path parameter. A unique integer value identifying this instrument.
options_schemaobject (Options schema)
Nullable
-
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.
Response parameters.
NameTypeComments
idinteger (Id)Instrument Id.
options_schemaobject (Options schema)
Nullable
-
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.
created_atstring <date-time> (Created at)-
updated_atstring <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

ConceptData
HTTP methodPATCH
Path/api/v2/admin/instrument/{instrument_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
instrument_id
required
stringRequest path parameter. A unique integer value identifying this instrument.
options_schemaobject (Options schema)
Nullable
-
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.
Response parameters.
NameTypeComments
idinteger (Id)Instrument Id.
options_schemaobject (Options schema)
Nullable
-
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.
created_atstring <date-time> (Created at)-
updated_atstring <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

ConceptData
HTTP MethodDELETE
Path/api/v2/admin/instrument/{instrument_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
instrument_id
required
integerRequest 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)

API endpoint for listing UI.

Request

ConceptData
HTTP methodGET
Path/api/v2/admin/ui/
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 (ID)-
nextstring (uri)
Nullable
-
previousstring (uri)
Nullable
-
results
required
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

ConceptData
HTTP methodPOST
Path/api/v2/admin/ui/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
route
required
string (Route)
[1 .. 250] characters
Affected Route.
enabledboolean (Enabled)Status.
rolesstring (Roles)
<=250 characters.
Nullable
Required roles.
Response parameters.
NameTypeComments
ui_idstring (Id)-
route
required
string (Route)
[1 .. 250] characters
Affected Route.
enabledboolean (Enabled)Status.
rolesstring (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

ConceptData
HTTP methodGET
Path/api/v2/admin/ui/{ui_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
ui_id
required
stringRequest path parameter.
Response parameters.
NameTypeComments
ui_idstring (Id)-
route
required
string (Route)
[1 .. 250] characters
Affected Route.
enabledboolean (Enabled)Status.
rolesstring (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

ConceptData
HTTP methodPUT
Path/api/v2/admin/ui/{ui_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
ui_id
required
stringRequest path parameter.
route
required
string (Route)
[1 .. 250] characters
Affected Route.
enabledboolean (Enabled)Status.
rolesstring (Roles)
<=250 characters.
Nullable
Required roles.
Response parameters.
NameTypeComments
ui_idstring (Id)-
route
required
string (Route)
[1 .. 250] characters
Affected Route.
enabledboolean (Enabled)Status.
rolesstring (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

ConceptData
HTTP methodPATCH
Path/api/v2/admin/ui/{ui_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
ui_id
required
stringRequest path parameter.
route
required
string (Route)
[1 .. 250] characters
Affected Route.
enabledboolean (Enabled)Status.
rolesstring (Roles)
<=250 characters.
Nullable
Required roles.
Response parameters.
NameTypeComments
ui_idstring (Id)-
route
required
string (Route)
[1 .. 250] characters
Affected Route.
enabledboolean (Enabled)Status.
rolesstring (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

ConceptData
HTTP MethodDELETE
Path/api/v2/admin/ui/{ui_id}/
AuthorizationJWT
Content Typeapplication/json

Parameters:

Request parameters.
NameTypeComments
ui_id
required
stringRequest path parameter. .

Responses

Response sample: 204

204
{
}