ASP.NET VETtrak API web services
ContentsIndexHome
PreviousUpNext
VT_API.ResetUnitResult Method

Resets a unit result for a given enrolment. 

An Enrolment ID (enrolmentId) is passed as a parameter. enrolmentId must specify a valid Enrolment, otherwise, the result will not be reset. A Unit Code (unitCode) is passed as a parameter. unitCode must specify a valid Unit Code which is a linked to the Enrolment (enrolmentId), otherwise, the Result will not be reset. A token is passed for authentication. If the authentication fails, or other errors occur, the Result will not be reset. The result of the authentication is represented by a TAuthenticate object. 

Requires a valid registration key entry for the Short Courses feature. This function has security level "Protected", and can only be accessed by users that have explicitly been granted permission to the API.

C#
[WebMethod(Description = "Resets an enrolment unit result")]
public TAuthenticate ResetUnitResult(string sToken, int enrolmentId, string unitCode);
Parameters 
Description 
int enrolmentId 
Integer ID of the enrolment to update. 
string unitCode 
String Unit Code. Maximum length 12 characters. 
token 
String containing a token. 

TAuthWebeList an authenticated list of Web Enrolments created or modified since the supplied date.

Copyright (c) VETtrak 2022. All rights reserved.