POST api/AuthShare/UserRequestAndGrouping

User sharing is added to the associated group

Request Information

Body Parameters

UserRequestAndGroupingModel
NameDescriptionTypeAdditional information
NickName

User nickname

string

None.

Phone

User phone number

string

None.

DeviceId

device id

integer

None.

GroupId

grouping id

integer

None.

UserId

claimant userid

integer

None.

UserName

Claimant name

string

None.

Info

claimant filled overhead information

string

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:
{
  "NickName": "sample string 1",
  "Phone": "sample string 2",
  "DeviceId": 3,
  "GroupId": 4,
  "UserId": 5,
  "UserName": "sample string 6",
  "Info": "sample string 7",
  "Token": "sample string 8",
  "Language": "sample string 9",
  "AppId": "sample string 10"
}

application/xml, text/xml

Sample:
<UserRequestAndGroupingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 10</AppId>
  <Language>sample string 9</Language>
  <Token>sample string 8</Token>
  <DeviceId>3</DeviceId>
  <GroupId>4</GroupId>
  <Info>sample string 7</Info>
  <UserId>5</UserId>
  <UserName>sample string 6</UserName>
  <NickName>sample string 1</NickName>
  <Phone>sample string 2</Phone>
</UserRequestAndGroupingModel>

Response Information

Resource Description

State:
0. indicates success
1000. Indicates that the user does not exist
4000. Says failure

UserRequestResult
NameDescriptionTypeAdditional information
Message

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:
<UserRequestResult 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>
</UserRequestResult>