Method PostPEPhoneDetail

Type: FusionOSServices.Controllers.PEPhoneDetailController

Summary

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

Example

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

Sample Code

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

public void MethodName(parms){
    string uri = "https://fusion.superion.com/FusionOSServices/v2/ONESolution/PersonEntity/PEPhoneDetail";
    string data = 
    @"[{
          ""peId"": ""00000001"",
          ""phoneTypeCd"": ""01"",
          ""phoneNumber"": ""8541258945"",
          ""phoneExtension"": """",
          ""createWho"": ""NAYANAT~1"",
          ""createWhen"": ""6/16/2010 9:48:24 PM"",
          ""updateWho"": ""RESTAPI"",
          ""updateWhen"": ""9/28/2020 9:38:51 PM"",
          ""uniqueKey"": ""03BF3DE0-1BD7-4C52-9430-CA262EB9939E"",
          ""addrCd"": ""BL"",
          ""phoneCountryCd"": """"
    }]";

    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.