Пример #1
0
        public virtual async Task UpdatePersonAsync(string personGroupId, Guid personId, string name, string userData = null)
        {
            var response = await RepositoryClient.SendJsonUpdateAsync(ApiKeys.Face, $"{ApiKeys.FaceEndpoint}persongroups/{personGroupId}/persons/{personId}", JsonConvert.SerializeObject(new UserDataRequest {
                Name = name, UserData = userData
            }));

            return;
        }
 public virtual async Task UpdateModelAsync(string modelId, UpdateModelRequest request)
 {
     await RepositoryClient.SendJsonUpdateAsync(ApiKeys.Recommendations, $"{ApiKeys.RecommendationsEndpoint}{modelsUrl}{modelId}", JsonConvert.SerializeObject(request));
 }