Я хочу обновить профиль пользователя (Federated_status) пользователя, я использую API-интерфейс DocuSign и сгенерировал временный токен из учетной записи администратора организации - но когда я вызываю API-интерфейс администратора Docusing ниже, он не обновляет его и выдает ошибку " неавторизованным ".
'''try
{
HttpContent PostContent = new StringContent(JsonConvert.SerializeObject(ObjUser), Encoding.UTF8, "application/json");
string reponsebody = string.Empty;
string Url = "https://api-d.docusign.net/managment/v2/organisation/" + OrgID + "users/profiles";
using (var client = new HttpClient())
{
client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application / json"));
client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", token));
HttpResponseMessage rep = client.PostAsync(new System.Uri(Url), PostContent).Result;
reponsebody = rep.Content.ReadAsStringAsync().Result;
}
var userProfileResponse = JsonConvert.DeserializeObject<UserProfile>(reponsebody);
return userProfileResponse;
}
'''
I am not sure how to call this admin api to update user profile - "federated status" .
Please help.!