Items in Basket

Subtotal

Checkout View and edit basket

Customers Also Bought

Add competence attachments for a user

Resource URL

URL: competenceUser/addAttachment


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.
MultipartFile document
required

The document to be uploaded

string attachmentType
optional

Attachment type. Possible values:

  • COMPETENCE_CERTIFICATE
  • OTHER

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 DATAuserId1&competenceId=2&username=username&password=secret&attachmentType=COMPETENCE_CERTIFICATE&visibleForStudent=false&document....
{
"status": "OK"
}