Add competence attachments for a user
Resource URL
URL: competenceUser/addAttachment
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. |
| MultipartFile document required | The document to be uploaded |
| string attachmentType optional | Attachment type. Possible values:
Default value: OTHER |
| booolean visibleForStudent optional | Should the attachment be visible for the end user? Default: true |
Return value
status | Only possible value is OK. In case of error, errorMessage is returned |
Example request
URL | https://www.trainingportal.no/mintra/rest/competenceUser/addAttachment |
| POST DATA | userId1&competenceId=2&username=username&password=secret&attachmentType=COMPETENCE_CERTIFICATE&visibleForStudent=false&document.... |
{
"status": "OK"
}