POST api/Timesheets/{id}/allowances
Adds the timesheet Allowance for a single timesheet
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
timesheet Id |
integer |
Required |
Body Parameters
timesheet Allowance
TimesheetAllowanceName | Description | Type | Additional information |
---|---|---|---|
ProductSummaryId | integer |
None. |
|
TimesheetId | integer |
None. |
|
ProductCode | string |
None. |
|
Quantity | decimal number |
None. |
|
WorkDate | date |
None. |
|
Comment | string |
None. |
|
CostCentre | string |
None. |
|
CostCode | string |
None. |
|
ProjectCode | string |
None. |
|
PurchaseOrder | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ProductSummaryId": 1, "TimesheetId": 2, "ProductCode": "sample string 3", "Quantity": 1.0, "WorkDate": "2024-06-29T07:21:00.2194569+10:00", "Comment": "sample string 4", "CostCentre": "sample string 5", "CostCode": "sample string 6", "ProjectCode": "sample string 7", "PurchaseOrder": "sample string 8" }
text/xml
Sample:
<TimesheetAllowance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"> <Comment>sample string 4</Comment> <CostCentre>sample string 5</CostCentre> <CostCode>sample string 6</CostCode> <ProductCode>sample string 3</ProductCode> <ProductSummaryId>1</ProductSummaryId> <ProjectCode>sample string 7</ProjectCode> <PurchaseOrder>sample string 8</PurchaseOrder> <Quantity>1</Quantity> <TimesheetId>2</TimesheetId> <WorkDate>2024-06-29T07:21:00.2194569+10:00</WorkDate> </TimesheetAllowance>
multipart/form-data
Sample:
<TimesheetAllowance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><Comment>sample string 4</Comment><CostCentre>sample string 5</CostCentre><CostCode>sample string 6</CostCode><ProductCode>sample string 3</ProductCode><ProductSummaryId>1</ProductSummaryId><ProjectCode>sample string 7</ProjectCode><PurchaseOrder>sample string 8</PurchaseOrder><Quantity>1</Quantity><TimesheetId>2</TimesheetId><WorkDate>2024-06-29T07:21:00.2194569+10:00</WorkDate></TimesheetAllowance>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
COMPLETEIntTimesheetIntervalId
TimesheetAllowanceName | Description | Type | Additional information |
---|---|---|---|
ProductSummaryId | integer |
None. |
|
TimesheetId | integer |
None. |
|
ProductCode | string |
None. |
|
Quantity | decimal number |
None. |
|
WorkDate | date |
None. |
|
Comment | string |
None. |
|
CostCentre | string |
None. |
|
CostCode | string |
None. |
|
ProjectCode | string |
None. |
|
PurchaseOrder | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ProductSummaryId": 1, "TimesheetId": 2, "ProductCode": "sample string 3", "Quantity": 1.0, "WorkDate": "2024-06-29T07:21:00.2204558+10:00", "Comment": "sample string 4", "CostCentre": "sample string 5", "CostCode": "sample string 6", "ProjectCode": "sample string 7", "PurchaseOrder": "sample string 8" }
text/xml
Sample:
<TimesheetAllowance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"> <Comment>sample string 4</Comment> <CostCentre>sample string 5</CostCentre> <CostCode>sample string 6</CostCode> <ProductCode>sample string 3</ProductCode> <ProductSummaryId>1</ProductSummaryId> <ProjectCode>sample string 7</ProjectCode> <PurchaseOrder>sample string 8</PurchaseOrder> <Quantity>1</Quantity> <TimesheetId>2</TimesheetId> <WorkDate>2024-06-29T07:21:00.2204558+10:00</WorkDate> </TimesheetAllowance>
multipart/form-data
Sample:
<TimesheetAllowance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><Comment>sample string 4</Comment><CostCentre>sample string 5</CostCentre><CostCode>sample string 6</CostCode><ProductCode>sample string 3</ProductCode><ProductSummaryId>1</ProductSummaryId><ProjectCode>sample string 7</ProjectCode><PurchaseOrder>sample string 8</PurchaseOrder><Quantity>1</Quantity><TimesheetId>2</TimesheetId><WorkDate>2024-06-29T07:21:00.2204558+10:00</WorkDate></TimesheetAllowance>