Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

List categories tree

Resource URL

URL: competence/categoriesTree


Parameters

string username
required

Username

string password
required

Password

string locale
optional

Choose the language for names
Default value: "en"
int portalId
required
The id of the portal to get categories from.
int catalogueId
required
The id of the catalog to list competences from.
See List catalogues to find this id.


Return value

localeSelected locale (language)
catalogueIdThe id of the selected catalogue.
categoryTree

Lists of the categories found

nameThe name of the comeptence
idThe id of the competence
parentId

The id of the parent category or null if this is a root node.


Example request

URL

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

POST DATAusername=username&password=secret&locale=en&portalId=1&catalogueId=123
{

 "locale": "en",

 "catalogueId": 123,

 "categoryTree": [

 {

 "id": 1234,

 "name": "Role",

 "parentId": null

 },

 {

 "id": 1235,

 "name": "1 Operations",

 "parentId": 1234

 },

 {

 "id": 1236,

 "name": "2 Main Area",

 "parentId": 1234

 },

 {

 "id": 1233,

 "name": "3 Sub Area",

 "parentId": null

 },

 {

 "id": 1232,

 "name": "4 Discipline",

 "parentId": 1233

 }

 ]

}