POST api/EnterpriseUser/GetDetailedProjectsByPop

JSON paramters: EnterpriseUserId, Year, ProjectTypeId, PopulationId. Returns the list of project types that the specified user can access, same as api/EnterpriseUser/GetDetailedProjects but returns only distinct project types. Return format = JSON. This method originally created for use by the PDM application.

Request Information

URI Parameters

None.

Body Parameters

UserProjectsByPopGetRequest
NameDescriptionTypeAdditional information
EnterpriseUserId

integer

None.

Year

integer

None.

ProjectTypeId

byte

None.

PopulationId

byte

None.

Request Formats

application/json, text/json

Sample:
{
  "EnterpriseUserId": 1,
  "Year": 2,
  "ProjectTypeId": 64,
  "PopulationId": 64
}

application/xml, text/xml

Sample:
<UserProjectsByPopGetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enterprise.Authorization.Models.RequestParams">
  <EnterpriseUserId>1</EnterpriseUserId>
  <PopulationId>64</PopulationId>
  <ProjectTypeId>64</ProjectTypeId>
  <Year>2</Year>
</UserProjectsByPopGetRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of UserProjectDetailResult
NameDescriptionTypeAdditional information
ProjectId

integer

None.

ProjectName

string

None.

ClientId

integer

None.

ClientName

string

None.

Year

integer

None.

ProjectTypeId

byte

None.

ProjectType

string

None.

PopulationId

byte

None.

Population

string

None.

SampleId

integer

None.

ProductType

integer

None.

ProductLine

integer

None.

flg_flushot

boolean

None.

pop_smoke

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProjectId": 1,
    "ProjectName": "sample string 2",
    "ClientId": 3,
    "ClientName": "sample string 4",
    "Year": 1,
    "ProjectTypeId": 64,
    "ProjectType": "sample string 5",
    "PopulationId": 64,
    "Population": "sample string 6",
    "SampleId": 7,
    "ProductType": 1,
    "ProductLine": 1,
    "flg_flushot": true,
    "pop_smoke": true
  },
  {
    "ProjectId": 1,
    "ProjectName": "sample string 2",
    "ClientId": 3,
    "ClientName": "sample string 4",
    "Year": 1,
    "ProjectTypeId": 64,
    "ProjectType": "sample string 5",
    "PopulationId": 64,
    "Population": "sample string 6",
    "SampleId": 7,
    "ProductType": 1,
    "ProductLine": 1,
    "flg_flushot": true,
    "pop_smoke": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserProjectDetailResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enterprise.Authorization.Models.RequestResults">
  <UserProjectDetailResult>
    <ClientId>3</ClientId>
    <ClientName>sample string 4</ClientName>
    <Population>sample string 6</Population>
    <PopulationId>64</PopulationId>
    <ProductLine>1</ProductLine>
    <ProductType>1</ProductType>
    <ProjectId>1</ProjectId>
    <ProjectName>sample string 2</ProjectName>
    <ProjectType>sample string 5</ProjectType>
    <ProjectTypeId>64</ProjectTypeId>
    <SampleId>7</SampleId>
    <Year>1</Year>
    <flg_flushot>true</flg_flushot>
    <pop_smoke>true</pop_smoke>
  </UserProjectDetailResult>
  <UserProjectDetailResult>
    <ClientId>3</ClientId>
    <ClientName>sample string 4</ClientName>
    <Population>sample string 6</Population>
    <PopulationId>64</PopulationId>
    <ProductLine>1</ProductLine>
    <ProductType>1</ProductType>
    <ProjectId>1</ProjectId>
    <ProjectName>sample string 2</ProjectName>
    <ProjectType>sample string 5</ProjectType>
    <ProjectTypeId>64</ProjectTypeId>
    <SampleId>7</SampleId>
    <Year>1</Year>
    <flg_flushot>true</flg_flushot>
    <pop_smoke>true</pop_smoke>
  </UserProjectDetailResult>
</ArrayOfUserProjectDetailResult>