public virtual async Task UpdateFaceListAsync(string faceListId, string name, string userData) { var response = await RepositoryClient.SendJsonPatchAsync(ApiKeys.Face, $"{ApiKeys.FaceEndpoint}facelists", JsonConvert.SerializeObject(new UserDataRequest { Name = name, UserData = userData })); return; }
public virtual async Task UpdatePersonGroupAsync(string personGroupId, string name, string userData = null) { var response = await RepositoryClient.SendJsonPatchAsync(ApiKeys.Face, $"{ApiKeys.FaceEndpoint}persongroups{personGroupId}", JsonConvert.SerializeObject(new UserDataRequest { Name = name, UserData = userData })); return; }
public virtual async Task UpdateKnowledgeBaseAsync(Guid knowledgeBaseId, PatchKnowledgeBaseRequest request) { await RepositoryClient.SendJsonPatchAsync(ApiKeys.QnA, $"{ApiKeys.QnAEndpoint}{knowledgeBaseId}", JsonConvert.SerializeObject(request)); }