Jump to content

InfinityRazz

Clients
  • Posts

    78
  • Joined

  • Last visited

Community Answers

  1. InfinityRazz's post in Rest api example /api/cms/records/ POST was marked as the answer   
    i mean.. in c# using RestSharp it's something along the lines of => 

     
    var Client = new RestClient("WebsiteUrl"); var Request = new RestRequest("/api/cms/records/{dID}/{rID}" + "/?key=Api Key With perms", DataFormat.Json); Request.AddUrlSegment("dID", 6); Request.AddUrlSegment("rID", 1); Request.AddParameter("fields[24]", "This changes record title"); var Response = Client.Post(Request); if (Response.StatusCode == HttpStatusCode.OK) { // Convert Response.Content and/or Response.Data to class object } else Console.WriteLine(Response.StatusCode);  
×
×
  • Create New...