POST api/User/SubUsers

Acquisition of lower users

Request Information

Body Parameters

SubUsersModel
NameDescriptionTypeAdditional information
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:
{
  "UserId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

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

Response Information

Resource Description

SubUsersResult
NameDescriptionTypeAdditional information
Items

subordinate user list

Collection of User

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Name": "sample string 1",
      "UserId": 2,
      "UserType": 3,
      "SubUsersCount": 4,
      "AccessToken": "sample string 5"
    },
    {
      "Name": "sample string 1",
      "UserId": 2,
      "UserType": 3,
      "SubUsersCount": 4,
      "AccessToken": "sample string 5"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<SubUsersResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items>
    <User>
      <AccessToken>sample string 5</AccessToken>
      <Name>sample string 1</Name>
      <SubUsersCount>4</SubUsersCount>
      <UserId>2</UserId>
      <UserType>3</UserType>
    </User>
    <User>
      <AccessToken>sample string 5</AccessToken>
      <Name>sample string 1</Name>
      <SubUsersCount>4</SubUsersCount>
      <UserId>2</UserId>
      <UserType>3</UserType>
    </User>
  </Items>
</SubUsersResult>