POST api/EnterpriseUser/GetDetailedProjects_ProjectTypes

JSON paramters: EnterpriseUserId, Year. 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

UserProjectTypesGetRequest
NameDescriptionTypeAdditional information
EnterpriseUserId

integer

None.

Year

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EnterpriseUserId": 1,
  "Year": 2
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserProjectTypesGetRequest'.

Response Information

Resource Description

Collection of UserProjectTypeResult
NameDescriptionTypeAdditional information
ProjectTypeId

byte

None.

ProjectType

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProjectTypeId": 64,
    "ProjectType": "sample string 1"
  },
  {
    "ProjectTypeId": 64,
    "ProjectType": "sample string 1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUserProjectTypeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Enterprise.Authorization.Models.RequestResults">
  <UserProjectTypeResult>
    <ProjectType>sample string 1</ProjectType>
    <ProjectTypeId>64</ProjectTypeId>
  </UserProjectTypeResult>
  <UserProjectTypeResult>
    <ProjectType>sample string 1</ProjectType>
    <ProjectTypeId>64</ProjectTypeId>
  </UserProjectTypeResult>
</ArrayOfUserProjectTypeResult>