POST api/AuthShare/UserRequest

Application for sharing request

Request Information

Body Parameters

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

application/xml, text/xml

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

Response Information

Resource Description

State value:
0. indicates success
1100. Indicates that the device does not exist
1500. The sharing application has been sent
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>