REST service that provides an interface to delete from the PEVendorDetail table
Type | Description |
---|---|
System.String | the employee ID |
using System.Net;
using Newtonsoft.Json.Linq;
public void MethodName(parms){
string ID = "00000001";
string uri = $"https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PEAddrDetail/{ID}";
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, "DELETE", "");
JObject response;
if (!string.IsNullOrWhiteSpace(result))
response = JObject.Parse(result);
}
}
The logical directory after /PEVendorDetail is the PE ID. If a corresponding record exists, that record will be deleted. Errors are returned as JSON objects with messages in the #text attribute, e.g.: { "#text": "Error message here" }