Method PostPENameMaster

Type: FusionOSServices.Controllers.PENameMasterController

Summary

REST service that provides an interface to insert into the PENameMaster table

Example

POST https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PENameMaster

Sample Code

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

public void MethodName(parms){
    string uri = "https://fusion.superion.com/FusionOSServices/v2/ONESolution/PersonEntity/PENameMaster";
    string data = 
    @"[{
          ""peId"": ""00000"",
          ""name"": ""Royal, Paul Cognos"",
          ""nameU"": ""ROYAL, PAUL COGNOS"",
          ""nameS"": ""Sr."",
          ""suffix"": """",
          ""nickname"": ""avr"",
          ""saluteCd"": """",
          ""affilCd"": ""1042"",
          ""selCd1"": ""1098T"",
          ""selCd2"": """",
          ""idStatus"": ""AC"",
          ""url"": """",
          ""uniqueKey"": ""1ddeb258-6089-11db-a45e-00306e2c5246"",
          ""nameLast"": ""Royal"",
          ""nameFirst"": ""Paul"",
          ""nameMiddle"": ""Cognos"",
          ""securityCd"": """",
          ""entityExpireDt"": """",
          ""createWhen"": ""11/7/2008 10:48:21 AM"",
          ""createWho"": """",
          ""updateWhen"": ""10/5/2020 6:33:00 PM"",
          ""updateWho"": ""RESTAPI"",
          ""ssn"": ""012345678"",
          ""globalGuid"": """",
          ""dba"": """",
          ""dbaU"": """",
          ""dbaS"": ""0000"",
          ""dbaPayeeFlag"": """"
    }]";

    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, "POST", data);

        JObject response;
        if (!string.IsNullOrWhiteSpace(result))
             response = JObject.Parse(result);
    }
}

Remarks

The JSON body can be copied from a GET and altered as needed.