Method DeletePEAssocDetail

Type: FusionOSServices.Controllers.PEAssocDetailController

Summary

REST service that provides an interface to delete from the PEAssocDetail table

Example

DELETE https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PEAssocDetail/?uniqueKey=sdfJlk

Sample Code

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

public void MethodName(parms){
    string uniqueKey = "sdfJlk";
    string uri = $"https://fusion.centralsquare.com/FusionOSServices/v2/ONESolution/PersonEntity/PEAssocDetail?uniqueKey={uniqueKey}";

    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);
    }
}

Remarks

Since PEAssocDetail is unusual in that its uniqueKey field is the only one which must be distinct and unique among all records in the table, the record to update is specified by the uniqueKey of that record, which is supplied in the URL's query string. 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" }