Delete Position
Deletes a position from WebEOC Nexus using the positionName endpoint.
| Description | Deletes a position |
|---|---|
| URL |
|
| Method | DELETE |
| Parameter |
postionName |
Review the parameter definition and examples of how to use the positionName endpoint in a JQuery and C# call.
Parameter
| Variable Name | Type | Description | Required |
|---|---|---|---|
| positionName | String | The name of the position to delete | True (URL) |
Examples
JQuery Call
Copy Code
$.ajax({
url: baseUrl + '/positions/Logistics Chief',
contentType: 'application/json',
type: 'DELETE'
});
C# Call
Copy Code
public void DeletePosition(Cookie cookie)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(baseUrl + "/positions/Logistics Chief");
request.Method = "DELETE";
CookieContainer cookieJar = new CookieContainer();
cookieJar.Add(cookie);
request.CookieContainer = cookieJar;
request.GetResponse();
}
Errors
401, 400 (blank or unknown position), 500.