Get Archived Group Names

Returns a list of all archived groups in WebEOC Nexus,

groups/archived endpoint description
Description Returns a list of all archived groups in WebEOC Nexus
URL /groups/archived
Method GET
Parameters

None

Return Type String array
Sample JSON Response ["Archived Group 1", "Archived Group 2"]

Review the examples of how to use this endpoint.

Examples

JQuery Call

Copy Code

$.ajax({ async: false, contentType: 'application/json', type: 'GET', url: baseUrl + '/groups/archived' });

C# Call

Copy Code

public string[] GetArchivedGroupNames (Cookie cookie) 

    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(baseUrl + "/groups/archived"); 
    CookieContainer cookieJar = new CookieContainer(); cookieJar.Add(cookie); 
    request.CookieContainer = cookieJar; 
    WebResponse getResponse = request.GetResponse(); 
    string[] result = new string[]{ string.Empty }; 
    using (Stream responseStream = getResponse.GetResponseStream()) 
    { 
        StreamReader reader = new StreamReader(responseStream, Encoding.UTF8); 
        result = new JavaScriptSerializer().Deserialize<string[]>(reader.ReadToEnd()); 
    } 
    return result;
}