POST api/Timesheet/SetProjectAllocation

Request Information

URI Parameters

None.

Body Parameters

ProjectAllocation
NameDescriptionTypeAdditional information
ResourceDetails

Collection of ResourceData

None.

ProjectDetails

Collection of ProjectData

None.

Year

string

None.

Month

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ResourceDetails": [
    {
      "ID": 1,
      "EmpID": "sample string 2",
      "ManagerID": "sample string 3",
      "TotalAllocation": 4,
      "LastUpdateDate": "sample string 5",
      "LastUpdatedBy": "sample string 6"
    },
    {
      "ID": 1,
      "EmpID": "sample string 2",
      "ManagerID": "sample string 3",
      "TotalAllocation": 4,
      "LastUpdateDate": "sample string 5",
      "LastUpdatedBy": "sample string 6"
    }
  ],
  "ProjectDetails": [
    {
      "ID": 1,
      "EmpID": "sample string 2",
      "ProjectID": 3,
      "PercentageAllocation": 4,
      "LastUpdateDate": "sample string 5",
      "LastUpdatedby": "sample string 6"
    },
    {
      "ID": 1,
      "EmpID": "sample string 2",
      "ProjectID": 3,
      "PercentageAllocation": 4,
      "LastUpdateDate": "sample string 5",
      "LastUpdatedby": "sample string 6"
    }
  ],
  "Year": "sample string 1",
  "Month": "sample string 2"
}

application/xml, text/xml

Sample:
<ProjectAllocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TimesheetBO">
  <Month>sample string 2</Month>
  <ProjectDetails>
    <ProjectData>
      <EmpID>sample string 2</EmpID>
      <ID>1</ID>
      <LastUpdateDate>sample string 5</LastUpdateDate>
      <LastUpdatedby>sample string 6</LastUpdatedby>
      <PercentageAllocation>4</PercentageAllocation>
      <ProjectID>3</ProjectID>
    </ProjectData>
    <ProjectData>
      <EmpID>sample string 2</EmpID>
      <ID>1</ID>
      <LastUpdateDate>sample string 5</LastUpdateDate>
      <LastUpdatedby>sample string 6</LastUpdatedby>
      <PercentageAllocation>4</PercentageAllocation>
      <ProjectID>3</ProjectID>
    </ProjectData>
  </ProjectDetails>
  <ResourceDetails>
    <ResourceData>
      <EmpID>sample string 2</EmpID>
      <ID>1</ID>
      <LastUpdateDate>sample string 5</LastUpdateDate>
      <LastUpdatedBy>sample string 6</LastUpdatedBy>
      <ManagerID>sample string 3</ManagerID>
      <TotalAllocation>4</TotalAllocation>
    </ResourceData>
    <ResourceData>
      <EmpID>sample string 2</EmpID>
      <ID>1</ID>
      <LastUpdateDate>sample string 5</LastUpdateDate>
      <LastUpdatedBy>sample string 6</LastUpdatedBy>
      <ManagerID>sample string 3</ManagerID>
      <TotalAllocation>4</TotalAllocation>
    </ResourceData>
  </ResourceDetails>
  <Year>sample string 1</Year>
</ProjectAllocation>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.