POST api/Timesheet/SetProjectUnAllocation

Request Information

URI Parameters

None.

Body Parameters

ProjectUnAllocation
NameDescriptionTypeAdditional information
ResourceDetails

Collection of ResourceData

None.

UnassignProjectDetails

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"
    }
  ],
  "UnassignProjectDetails": [
    {
      "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:
<ProjectUnAllocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TimesheetBO">
  <Month>sample string 2</Month>
  <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>
  <UnassignProjectDetails>
    <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>
  </UnassignProjectDetails>
  <Year>sample string 1</Year>
</ProjectUnAllocation>

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.