Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Add competence requirement for a user

Resource URL

URL: competenceUser/addRequirement


Parameters

string username
required

Username

string password
required

Password

int userId
optional

Unique identifier of the user

string userExternalId
optional

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:

  • There will be no enrollments created for courses in either/or packages
  • There will be no enrollments created for classroom courses


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 DATAuserId=123456&competenceId=123&username=username&password=secret&enrolToCourses=true
{
"requirementReferenceId": "73e0a2b9-979f-4745-a840-93c5935b89e1"
}