Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Add competence requirement

Resource URL

URL: competenceAdministration/addCompetenceRequirement


Parameters

string username
required

Username

string password
required

Password

string parentId
optional
ID of the parent competence of the relation
One of parentId or parentExternalId must be given!

string parentExternalId
optional

External ID of the parent competence of the relation
One of parentId or parentExternalId must be given!
string childId
optional
ID of the child competence of the relation
One of childId or childExternalId must be given!
string childExternalId
optional
External ID of the parent competence of the relation
One of childId or childExternalId must be given!

integer requiredLevel
optional

Required level for the child. In order to use this, the child must be a competence of type LEVEL.
Default value: Level for the child.
integer validityPeriod
optional
Validity period in months for the child. In order to use this, the child must have a default validity period.
Default value: validity period for the child.
boolean mandatory
optional
Should the requirement be mandatory or not.
Default value: Mandatory.
string priority
optional

Priority of the requirement. Can be one of HIGH, MEDIUM or LOW.
Default value: MEDIUM


Return value

This method returns information about the created relation.

parentCompetenceId

ID of the parent competence

parentCompetenceExternalIdExternal ID of the parent competence
parentCompetenceNameName of the parent competence
childCompetenceIdID of the child competence
childCompetenceExternalIdExternal ID of the child competence
childCompetenceNameName of the child competence


Example request

URL

https://www.trainingportal.no/mintra/rest/competenceAdministration/addCompetenceRequirement

POST DATA

parentExternalId=BOP001&childExternalId=BOP003&username=username&password=secret

{

"parentCompetenceId":12345,

"parentCompetenceExternalId":"BOP001",

"parentCompetenceName":"TestRole",

"childCompetenceId":12346,

"childCompetenceExternalId":"BOP003",

"childCompetenceName":"TestCompetence"

}