HttpResponseMessage responseGet = await client.GetAsync("rest/api/content/671023592?expand=body.view,version");
PageType components = await responseGet.Content.ReadAsAsync<PageType>();
++components.Version.Number;
components.Body.Storage = new Storage(components.Body.View.Value, components.Body.View.Representation);
HttpResponseMessage responseUpdate = await client.PutAsJsonAsync<PageType>("rest/api/content/671023592", components);
i've found the answer. Using code
var errorResp = await responseUpdate.Content.ReadAsAsync<Object>();
i see error message.
"Must supply an incremented version when updating Content. No version supplied."
It is confusing me because i specify the (incremented) number of version in the request...
I fixed error with version.
Now i have error
{StatusCode: 500, ReasonPhrase: 'Internal Server Error'
without any additional info...
Maybe the reason is in the body value (HTML table with links), that i try to update...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.