GET api/UserAccount?accountId={accountId}&userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountId

integer

Required

userId

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of UserAccountsInfo
NameDescriptionTypeAdditional information
AccountId

integer

None.

AccountGroupId

integer

None.

AccountStatus

string

None.

Contract

string

None.

ReportsTo

Collection of UserReportsToInfo

None.

JobTitles

Collection of UserJobTitlesInfo

None.

Departments

Collection of UserDepartmentInfo

None.

Roles

Collection of UserWalshRolesInfo

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "AccountId": 1,
    "AccountGroupId": 2,
    "AccountStatus": "sample string 3",
    "Contract": "sample string 4",
    "ReportsTo": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "JobTitles": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "Departments": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "Roles": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ]
  },
  {
    "AccountId": 1,
    "AccountGroupId": 2,
    "AccountStatus": "sample string 3",
    "Contract": "sample string 4",
    "ReportsTo": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "JobTitles": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "Departments": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ],
    "Roles": [
      {
        "Id": 1,
        "Name": "sample string 2"
      },
      {
        "Id": 1,
        "Name": "sample string 2"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserAccountsInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Api.Models.UserAccount">
  <UserAccountsInfo>
    <AccountGroupId>2</AccountGroupId>
    <AccountId>1</AccountId>
    <AccountStatus>sample string 3</AccountStatus>
    <Contract>sample string 4</Contract>
    <Departments>
      <UserDepartmentInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserDepartmentInfo>
      <UserDepartmentInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserDepartmentInfo>
    </Departments>
    <JobTitles>
      <UserJobTitlesInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserJobTitlesInfo>
      <UserJobTitlesInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserJobTitlesInfo>
    </JobTitles>
    <ReportsTo>
      <UserReportsToInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserReportsToInfo>
      <UserReportsToInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserReportsToInfo>
    </ReportsTo>
    <Roles>
      <UserWalshRolesInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserWalshRolesInfo>
      <UserWalshRolesInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserWalshRolesInfo>
    </Roles>
  </UserAccountsInfo>
  <UserAccountsInfo>
    <AccountGroupId>2</AccountGroupId>
    <AccountId>1</AccountId>
    <AccountStatus>sample string 3</AccountStatus>
    <Contract>sample string 4</Contract>
    <Departments>
      <UserDepartmentInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserDepartmentInfo>
      <UserDepartmentInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserDepartmentInfo>
    </Departments>
    <JobTitles>
      <UserJobTitlesInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserJobTitlesInfo>
      <UserJobTitlesInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserJobTitlesInfo>
    </JobTitles>
    <ReportsTo>
      <UserReportsToInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserReportsToInfo>
      <UserReportsToInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserReportsToInfo>
    </ReportsTo>
    <Roles>
      <UserWalshRolesInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserWalshRolesInfo>
      <UserWalshRolesInfo>
        <Id>1</Id>
        <Name>sample string 2</Name>
      </UserWalshRolesInfo>
    </Roles>
  </UserAccountsInfo>
</ArrayOfUserAccountsInfo>