List categories tree
Resource URL
URL: competence/categoriesTree
Parameters
string username | Username |
string password | Password |
string locale | 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
| locale | Selected locale (language) | ||||||
| catalogueId | The id of the selected catalogue. | ||||||
| categoryTree | Lists of the categories found
|
Example request
URL | https://www.trainingportal.no/mintra/rest/competence/categoriesTree |
| POST DATA | username=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
}
]
}