Method PostPEAddrDetail

Type: FusionOSServices.Controllers.PEAddrDetailController

Summary

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

Example

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

Sample Code

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

public void MethodName(parms){
    string uri = "https://fusion.superion.com/FusionOSServices/v2/ONESolution/PersonEntity/PEAddrDetail";
    string data = 
    @"[{
      ""peId"": ""00000001"",
      ""addr1"": ""667 State St"",
      ""addr2"": """",
      ""addr3"": """",
      ""addr4"": """",
      ""city"": ""CHICO"",
      ""stateCd"": ""CA"",
      ""zip"": ""95973"",
      ""countryCd"": """",
      ""url"": """",
      ""addrCd"": ""BL"",
      ""uniqueKey"": """",
      ""address1Pc"": """",
      ""address2Pc"": """",
      ""address3Pc"": """",
      ""address4Pc"": """",
      ""cityPc"": """",
      ""cassStatusCd"": """",
      ""cassDt"": """",
      ""postalLot"": """",
      ""postalMvCd"": """",
      ""postalMvDt"": """",
      ""carrierRte"": """",
      ""carrierType"": """",
      ""deliveryPt"": """",
      ""addressStatCd"": """",
      ""contactId"": """",
      ""createWho"": """",
      ""createWhen"": """",
      ""updateWho"": """",
      ""updateWhen"": """",
      ""addrAttn"": """",
      ""locationLat"": ""0.000000"",
      ""locationLong"": ""0.000000""
    }]";

    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.