示例#1
0
        public virtual void UpdateFaceList(string faceListId, string name, string userData)
        {
            var response = RepositoryClient.SendJsonPatch(ApiKeys.Face, $"{ApiKeys.FaceEndpoint}facelists", JsonConvert.SerializeObject(new UserDataRequest {
                Name = name, UserData = userData
            }));

            return;
        }
示例#2
0
        public virtual void UpdatePersonGroup(string personGroupId, string name, string userData = null)
        {
            var response = RepositoryClient.SendJsonPatch(ApiKeys.Face, $"{ApiKeys.FaceEndpoint}persongroups{personGroupId}", JsonConvert.SerializeObject(new UserDataRequest {
                Name = name, UserData = userData
            }));

            return;
        }
 public virtual void UpdateKnowledgeBase(Guid knowledgeBaseId, PatchKnowledgeBaseRequest request)
 {
     RepositoryClient.SendJsonPatch(ApiKeys.QnA, $"{ApiKeys.QnAEndpoint}{knowledgeBaseId}", JsonConvert.SerializeObject(request));
 }