Add competence requirement for a user
Resource URL
URL: competenceUser/addRequirement
Parameters
string username | Username |
string password | Password |
int userId | Unique identifier of the user |
string userExternalId | Unique external identifier of the user. Either userId or userExternalId must be filled. |
int competenceId optional | Unique identifier of the competence |
int competenceExternalId optional | Unique external identifier of the competence. Either competenceId or competenceExternalIdmust be filled. |
Date startDate optional | Start date for the requirement. If empty, no start date will be set. |
Date endDate optional | End date for the requirement. If empty, no end date will be set. |
Boolean enrolToCourses optional | If true, the user will be enrolled to all possible course requirements. Note:
|
Return value
requirementReferenceId | Unique identifier of newly created or updated requirement. requirementReferenceId is used in other functionalities. |
Example request
URL | https://www.trainingportal.no/mintra/rest/competenceUser/addRequirement |
POST DATA | userId=123456&competenceId=123&username=username&password=secret&enrolToCourses=true |
{
"requirementReferenceId": "73e0a2b9-979f-4745-a840-93c5935b89e1"
}