POST Group
Create a new Group.
Request Information
URI Parameters
None.
Body Parameters
A AssetGroupRestItem object
AssetGroupRestItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Primary Key. |
integer |
None. |
| Name |
Name of the Group. |
string |
None. |
| GroupType |
Indicates wether it's a top-level group. 3 = All assets 5 = Custom user group 14 = All archived assets for client 15 = All archived assets for user 16 = System |
integer |
None. |
| Devices | Collection of integer |
None. |
|
| Assets | Collection of integer |
None. |
|
| CompanyName | string |
None. |
|
| ClientHandle | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"GroupType": 3,
"Devices": [
1,
2
],
"Assets": [
1,
2
],
"CompanyName": "sample string 4",
"ClientHandle": "sample string 5"
}
application/xml, text/xml
Sample:
<AssetGroupRestItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models">
<Assets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Assets>
<ClientHandle>sample string 5</ClientHandle>
<CompanyName>sample string 4</CompanyName>
<Devices xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Devices>
<GroupType>3</GroupType>
<Id>1</Id>
<Name>sample string 2</Name>
</AssetGroupRestItem>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
AssetGroupRestItem| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Primary Key. |
integer |
None. |
| Name |
Name of the Group. |
string |
None. |
| GroupType |
Indicates wether it's a top-level group. 3 = All assets 5 = Custom user group 14 = All archived assets for client 15 = All archived assets for user 16 = System |
integer |
None. |
| Devices | Collection of integer |
None. |
|
| Assets | Collection of integer |
None. |
|
| CompanyName | string |
None. |
|
| ClientHandle | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"GroupType": 3,
"Devices": [
1,
2
],
"Assets": [
1,
2
],
"CompanyName": "sample string 4",
"ClientHandle": "sample string 5"
}
application/xml, text/xml
Sample:
<AssetGroupRestItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models">
<Assets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Assets>
<ClientHandle>sample string 5</ClientHandle>
<CompanyName>sample string 4</CompanyName>
<Devices xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</Devices>
<GroupType>3</GroupType>
<Id>1</Id>
<Name>sample string 2</Name>
</AssetGroupRestItem>