コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public virtual async Task UpdateKnowledgeBaseAsync(Guid knowledgeBaseId, PatchKnowledgeBaseRequest request)
 {
     await RepositoryClient.SendJsonPatchAsync(ApiKeys.QnA, $"{ApiKeys.QnAEndpoint}{knowledgeBaseId}", JsonConvert.SerializeObject(request));
 }