POST api/Group
Post group
Request Information
URI Parameters
None.
Body Parameters
New Group
GroupName | Description | Type | Additional information |
---|---|---|---|
ID |
ID of the Group |
string |
None. |
assets |
Array of assets within the Group |
Collection of Asset |
None. |
name |
Name of the Group |
string |
None. |
type |
Type of the Group |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": "sample string 1", "assets": [ { "id": "sample string 1", "name": "sample string 2", "type": "sample string 3", "routeID": "sample string 4", "group": "sample string 5", "zones": [ "sample string 1", "sample string 2" ], "location": { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:03:01.4668696+00:00", "altitude": 1.1 }, "alert": true }, { "id": "sample string 1", "name": "sample string 2", "type": "sample string 3", "routeID": "sample string 4", "group": "sample string 5", "zones": [ "sample string 1", "sample string 2" ], "location": { "currentLat": 1.1, "currentLon": 1.1, "lastLat": 1.1, "lastLon": 1.1, "finalLat": 1.1, "finalLon": 1.1, "time": "2025-01-18T05:03:01.4668696+00:00", "altitude": 1.1 }, "alert": true } ], "name": "sample string 2", "type": "sample string 3" }
application/xml, text/xml
Sample:
<Group xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AAVRADServer.Models"> <ID>sample string 1</ID> <assets> <Asset> <ID>sample string 1</ID> <alert>true</alert> <group>sample string 5</group> <location> <altitude>1.1</altitude> <currentLat>1.1</currentLat> <currentLon>1.1</currentLon> <finalLat>1.1</finalLat> <finalLon>1.1</finalLon> <lastLat>1.1</lastLat> <lastLon>1.1</lastLon> <time>2025-01-18T05:03:01.4668696+00:00</time> </location> <name>sample string 2</name> <routeID>sample string 4</routeID> <type>sample string 3</type> <zones xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </zones> </Asset> <Asset> <ID>sample string 1</ID> <alert>true</alert> <group>sample string 5</group> <location> <altitude>1.1</altitude> <currentLat>1.1</currentLat> <currentLon>1.1</currentLon> <finalLat>1.1</finalLat> <finalLon>1.1</finalLon> <lastLat>1.1</lastLat> <lastLon>1.1</lastLon> <time>2025-01-18T05:03:01.4668696+00:00</time> </location> <name>sample string 2</name> <routeID>sample string 4</routeID> <type>sample string 3</type> <zones xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </zones> </Asset> </assets> <name>sample string 2</name> <type>sample string 3</type> </Group>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |