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

Updates a skill on a client.

C#
[WebMethod(Description = "Updates a skill for a client")]
public TAuthenticate UpdateClientSkill(string token, TClieSkill clieSkill);
Parameters 
Description 
string token 
String containing an authentication token. 
TClieSkill clieSkill 
TClieSkill object containing the client skill details to update. 

TAuthenticate indicating the result of the update.

Pass a TClieSkill object containing the details of the client skill to update: 

  • ClieSkillId is mandatory and must be the ID of the client skill to update.
  • AcquiredDate is mandatory and must be the date that the skill was acquired.
  • ExpiryDate is optional. You can specify the date the skill expires. If specified, it cannot be before the AcquiredDate.
  • IsActive is mandatory, true or false.
  • Description is optional, and can be notes to record against the client skill.
 

All other TClieSkill properties are not used for the update. 

If you don't have the existing details, a recommended approach is to retrieve the client skill using GetSkillsForClient, update the fields on an object returned by that function, then pass it into this function. 

A token is passed for authentication. If the authentication fails, or other errors occur, no record is updated. The result of the authentication is represented by a TAuthenticate object. 

This function has security level "Protected", and can only be accessed by users that have explicitly been granted permission to the API.

Copyright (c) VETtrak 2022. All rights reserved.