POST api/Group/AddGroup

Add a group [vehicle]

Request Information

Body Parameters

AddGroupModel
NameDescriptionTypeAdditional information
Item

grouping information

GroupInfo

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Item": {
    "GroupID": 1,
    "GroupName": "sample string 2",
    "UserID": 3,
    "Username": "sample string 4",
    "Description": "sample string 5",
    "Created": "sample string 6",
    "GroupType": 7,
    "AccountID": 8,
    "Deleted": true
  },
  "Token": "sample string 1",
  "Language": "sample string 2",
  "AppId": "sample string 3"
}

application/xml, text/xml

Sample:
<AddGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 3</AppId>
  <Language>sample string 2</Language>
  <Token>sample string 1</Token>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:AccountID>8</d2p1:AccountID>
    <d2p1:Created>sample string 6</d2p1:Created>
    <d2p1:Deleted>true</d2p1:Deleted>
    <d2p1:Description>sample string 5</d2p1:Description>
    <d2p1:GroupID>1</d2p1:GroupID>
    <d2p1:GroupName>sample string 2</d2p1:GroupName>
    <d2p1:GroupType>7</d2p1:GroupType>
    <d2p1:UserID>3</d2p1:UserID>
    <d2p1:Username>sample string 4</d2p1:Username>
  </Item>
</AddGroupModel>

Response Information

Resource Description

State satus:
0. Indicates success
4000. Says failure

AddGroupResult
NameDescriptionTypeAdditional information
Message

massage

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "State": 2
}

application/xml, text/xml

Sample:
<AddGroupResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Message>sample string 1</Message>
</AddGroupResult>