POST api/Group/SaveUserGroup

Add group or role [watch]

Request Information

Body Parameters

required parameter

SaveUserGroupModel
NameDescriptionTypeAdditional information
ParentId

The superior group id

integer

None.

GroupName

Role group name

string

None.

Icon

Role group icon

string

None.

UserId

user id

integer

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:
{
  "ParentId": 1,
  "GroupName": "sample string 2",
  "Icon": "sample string 3",
  "UserId": 4,
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<SaveUserGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <GroupName>sample string 2</GroupName>
  <Icon>sample string 3</Icon>
  <ParentId>1</ParentId>
  <UserId>4</UserId>
</SaveUserGroupModel>

Response Information

Resource Description

Statestatus code:
0. Indicates success
4000. Says failure

SaveUserGroupResult
NameDescriptionTypeAdditional information
Id

integer

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "State": 2
}

application/xml, text/xml

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