Method UpdateEmployeeBenefit

Type: FusionOSServices.Controllers.BenTekController

Summary

This service updates Employees benefit information into Finance Enterprise.

Example

PUT https://localhost/FusionOSServices:44398/v1/ONESolution/BenTek/UpdateBenefit/DWQA/0014/MEDIDWDW

Sample Code

using System.Net;
using Newtonsoft.Json.Linq;

public void MethodName(parms){

    string uri = "https://localhost:44398/v1/ONESolution/BenTek/UpdateBenefit/DWQA/0014/MEDIDWDW";
    string data = "[" +
                  "  {" +  
                  " \"BeneEnd\" : \"12/31/2030\", " +
                  " \"ApprvCd01\" : \"SEND\", " +
                  "  } " +
                  "  ]";

    using (WebClient wc = new WebClient())
    {
        wc.Headers.Add("Content-Type", "application/json");
        // Replace "ID" with supplied AppID
        wc.Headers.Set("X-APPID", "ID");
        // Replace "KEY" with supplied AppKey
        wc.Headers.Set("X-APPKEY", "KEY");

        string result = wc.UploadString(uri, "PUT", data);

        var response = JObject.Parse(result);
        var count = (string)response["RequestResponse"]["Count"];
        
        // verify count is expected number
        }
    }
}

Sample Responses


                        
             {
              "RequestResponse": {
                "Count": "1",
                "DATA": null
              }
            }