Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

List competences

Resource URL

URL: competence/listCompetences


Parameters

string username
required

Username

string password
required

Password

string locale
optional

Choose the language for names
Default value: "en"
int catalogueId
required

The id of the catalog to list competences from.
See List catalogues to find this id.

string competenceType
optional
Limit search to this competence type.
int pageSize
optional
Results page size. Max value is 100. If higher value is set, than it will be trimmed to max value.
Default value: 20
int pageNr
optional
Number of results page. Pages count starts from 1.
Default value: 1


Return value

totalSize

Total number of results matching query

pageSize

The number of results on each page

pageNr

The page number of the current page

locale

Selected locale (language)

competenceType

Selected competence type to filter on, or null if no filter.

catalogueName

The name of the current catalogue.

catalogueId

The id of the current catalogue.

competenceList

Lists of the competences found

nameThe name of the comeptence
idThe id of the competence
externalId

The external id of the competence

typeThe type of the competence
activeTrue if the competence is active false if it is inactive
organiztionUnit

null if not connected to organization unit or:

nameThe name of the organization unit
idThe id of the organization unit
externalIdThe external id of the organization unit
categories

null if not connected to a category or:

nameThe name of the category
idThe id of the category


Example request

URL

https://www.trainingportal.no/mintra/rest/competence/listCompetences

POST DATAusername=username&password=secret&pageSize=3&catalogueId=14
{
 "totalSize": "1234",
 "pageSize": 3,
 "pageNr": 1,
 "locale": "en",
 "competenceType": null,
 "catalogueName": "Test portal",
 "catalogueId": 14,
 "competenceList": [
 { "name":"Function Manager",
 "id":36250,
 "externalId":"adf7543",
 "type":"ROLE",
 "active":true,
 "organizationUnit":null,
 "categories":
 [
 { "name":"Base",
 "id":1506}
 ]
 },
 { "name":"Method Engineer- Piping ",
 "id":36251,
 "externalId":"adf7465",
 "type":"ROLE",
 "active":true,
 "organizationUnit":
 {
 "name":"Test organization unit",
 "id":12321,
 "externalId":"hgf1234"
 },
 "categories":
 [
 {
 "name":"Piping",
 "id":1512
 }
 ]
 },
 {
 "name":"Functional Manager",
 "id":36252,
 "externalId":"adf46374",
 "type":"ROLE",
 "active":true,
 "organizationUnit":null,
 "categories":null
 }
 ]
}