Edit a competence requirement
Resource URL
URL: competenceAdministration/editCompetenceRequirement
Parameters
string username | Username |
string password | Password |
string parentId optional | ID of the parent competence of the relation One of parentId or parentExternalId must be given! |
string parentExternalId | 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 | 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. |
Return value
This method returns information about the created relation.
parentCompetenceId | ID of the parent competence |
parentCompetenceExternalId | External ID of the parent competence |
parentCompetenceName | Name of the parent competence |
childCompetenceId | ID of the child competence |
childCompetenceExternalId | External ID of the child competence |
childCompetenceName | Name of the child competence |
Example request
URL | https://www.trainingportal.no/mintra/rest/competenceAdministration/editCompetenceRequirement |
POST DATA | parentExternalId=BOP001&childExternalId=BOP003&username=username&password=secret |
{
"parentCompetenceId":12345,
"parentCompetenceExternalId":"BOP001",
"parentCompetenceName":"TestRole",
"childCompetenceId":12346,
"childCompetenceExternalId":"BOP003",
"childCompetenceName":"TestCompetence"
}