Edit competence
Resource URL
URL: competenceAdministration/edit
Parameters
string username | Username |
string password | Password |
string competenceId optional | ID of the competence to be edited. One of competenceId or competenceExternalId must be given! |
string competenceExternalId | External ID of the competence to be edited. One of competenceId or competenceExternalId must be given! |
string name optional | Name of competence as JSON string. Eg: {"en":"NameInEnglish","no":"NameInNorwegian"} |
string description | Description of competence as JSON string. Eg: {"en":"DescriptionEnglish","no":"DescriptionInNorwegian"} |
string competenceType | The type of the competence to be created. Use: ROLE, TRAINING_PACKAGE, LEVEL, STANDARD |
string externalId | The externalId of the competence. This will update the external ID of the competence. |
int refresherIntervals optional | Number of months before competence needs refresher. |
boolean active optional | Updates the active/inactive state of the competence. |
string organizationUnitExternalId optional | ExternalId of the organization unit related to competence. Note: Only for roles on portal with this feature enabled! |
integer numberOfLevels optional | Number of levels available. |
boolean onlyOneChildRequired optional | Should only one of the children be required? |
string assessmentMode | Turns on or off assessment and selects how we decide who is assessor. |
Boolean assessmentSendEmail | Default value: false |
Return value
The method returns information about the created organization unit
competenceId | ID of the competence |
competenceExternalId | External ID of the competence |
competenceName | Name of the competence |
Example request
URL | https://www.trainingportal.no/mintra/rest/competenceAdministration/edit |
POST DATA | competenceExternalId=ext123&name={"en":"NewNameInEnglish","no":"NewNameInNorwegian"}&externalId=new_ext123&username=username&password=secret |
{
"competenceId":12345,
"competenceExternalId":"new_ext123",
"competenceName":"NewNameInEnglish"
}