3 Replies Latest reply: Nov 13, 2017 3:41 AM by Øystein Kolsrud RSS

    Need a sample code to do a PUT request with QRS API for updating User Accesses

    Saurabh Parihar

      Can someone provide a sample code for using a PUT method in C#.Net?
      How to do the structuring of a nested element in GET request to read the response?
      For Eg:

      "tags": [

              {

                  "id": ".......................ID Value.................",

                  "name": "TagName",

                  "privileges": null

              }

      For reading the above response in JSON, how to write a class for the inner attributes of Tag attribute?

      Currently this is how I am able to read the other properties:

                  public string id { get; set; }

                  public string userId { get; set; }

                  public string userDirectory { get; set; }

                  public string name { get; set; }

                  public string privileges { get; set; }

                  public string schemaPath { get; set; }