Ask a Question
Back to All

I Need Help On PersonData Update Operations

I tried to use the minimum data for testing the update operations on "PersonData". I am using REST API. I have tried all possible ways that I can think of. But I got no result. In the example below, I tried to update the "InformalName".

This end point was used:

Method used:
client = new HttpClient();
client.PutAsync(uri, httpContent)

This was sent to the server:

"$type": "Asi.Soa.Membership.DataContracts.PersonData, Asi.Soa.Membership.Contracts",
"PersonName": {
"$type": "Asi.Soa.Membership.DataContracts.PersonNameData, Asi.Soa.Membership.Contracts",
"FirstName": "TestFirstName",
"InformalName": "William",
"LastName": "TestLastName",
"NamePrefix": "Mr.",
"FullName": "Mr. TestFirstName TestLastName"
"SortIsOverridden": false,
"PartyId": "9413326",
"Id": "9413326"

Unable to update the target party data! StatusCode: 400, ReasonPhrase: 'Validation error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
Pragma: no-cache
Cache-Control: no-cache
Server: Microsoft-IIS/10.0
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Powered-By: ASP.NET
X-Frame-Options: sameorigin
Content-Security-Policy: frame-ancestors 'self'
Strict-Transport-Security: max-age=31536000
Date: Wed, 17 Nov 2021 20:47:42 GMT
Content-Length: 583
Content-Type: text/plain; charset=utf-8
Expires: -1