PUT Group/{id}
Update an existing Group.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Internal Id of the Group to Update |
integer |
Required |
Body Parameters
A AssetGroupRestResult object
AssetGroupRestItemName | 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
AssetGroupRestResultName | Description | Type | Additional information |
---|---|---|---|
RestItems |
Collection of RestItem objects. |
Collection of AssetGroupRestItem |
None. |
Response Formats
application/json, text/json
Sample:
{ "RestItems": [ { "Id": 1, "Name": "sample string 2", "GroupType": 3, "Devices": [ 1, 2 ], "Assets": [ 1, 2 ], "CompanyName": "sample string 4", "ClientHandle": "sample string 5" }, { "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:
<AssetGroupRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models"> <RestItems> <AssetGroupRestItem> <Assets xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </Assets> <ClientHandle>sample string 5</ClientHandle> <CompanyName>sample string 4</CompanyName> <Devices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </Devices> <GroupType>3</GroupType> <Id>1</Id> <Name>sample string 2</Name> </AssetGroupRestItem> <AssetGroupRestItem> <Assets xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </Assets> <ClientHandle>sample string 5</ClientHandle> <CompanyName>sample string 4</CompanyName> <Devices xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </Devices> <GroupType>3</GroupType> <Id>1</Id> <Name>sample string 2</Name> </AssetGroupRestItem> </RestItems> </AssetGroupRestResult>