PUT api/Groups/Put
Create or update group name and/or parent id.
Request Information
URI Parameters
None.
Body Parameters
GroupModel
GroupModelName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of the group |
integer32 |
None. |
Name |
Name of the group |
string |
None. |
Units |
A list of units in this group. Will be an empty array if no units are directly in this group, and the request for this model requested UnitSerialNumbers. Will be null if the request for this model did not request UnitSerialNumbers. |
Collection of string |
Null values possible. |
ParentId |
the Id of this groups parent |
integer32 |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2", "Units": [ "sample string 1", "sample string 2" ], "ParentId": 3 }
application/xml, text/xml
Sample:
<GroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <Id>1</Id> <Name>sample string 2</Name> <ParentId>3</ParentId> <Units xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Units> </GroupModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Create or update group name and/or parent id.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.