Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to publish content using this code but it not works,
Any one have idea how to publish content using umbraco rest api.
var httpClient = new HttpClient(); httpClient.BaseAddress = new Uri("http://localhost:30740/umbraco/rest/v1/content/1061/publish"); httpClient.DefaultRequestHeaders.Accept.Clear(); httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); httpClient.DefaultRequestHeaders.Add("Authorization", "Bearer " + authentication.AccessToken); HttpResponseMessage response = httpClient.PutAsync("Publish", new StringContent(@"{""id"": ""1061""}", Encoding.UTF8, "application/json")).Result; var jsonObject = JsonConvert.DeserializeObject(response.Content.ReadAsStringAsync().Result.ToString()); var jsonString = response.Content.ReadAsStringAsync();
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to publish content using umbraco rest api
I am trying to publish content using this code but it not works,
Any one have idea how to publish content using umbraco rest api.
is working on a reply...