PUT api/TimesheetExternal/{authCode}/TimesheetApproval
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
authCode | string |
Required |
Body Parameters
TimesheetApprovalName | Description | Type | Additional information |
---|---|---|---|
BookingNo | string |
None. |
|
TimesheetNo | string |
None. |
|
IsApproved | boolean |
None. |
|
TimesheetId | integer |
None. |
|
Comments | string |
None. |
|
InhouseComment | string |
None. |
|
OverBalanceQuantity | decimal number |
None. |
|
TimesheetDocuments | Collection of TimesheetAttachmentwithImage |
None. |
Request Formats
application/json, text/json
Sample:
{ "BookingNo": "sample string 1", "TimesheetNo": "sample string 2", "IsApproved": true, "TimesheetId": 4, "Comments": "sample string 5", "InhouseComment": "sample string 6", "OverBalanceQuantity": 7.0, "TimesheetDocuments": [ { "AttachmentId": 1, "TimesheetId": 2, "ProductSummaryId": 1, "Filename": "sample string 3", "Type": "sample string 4", "Image": "sample string 5" }, { "AttachmentId": 1, "TimesheetId": 2, "ProductSummaryId": 1, "Filename": "sample string 3", "Type": "sample string 4", "Image": "sample string 5" } ] }
text/xml
Sample:
<TimesheetApproval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"> <BookingNo>sample string 1</BookingNo> <Comments>sample string 5</Comments> <InhouseComment>sample string 6</InhouseComment> <IsApproved>true</IsApproved> <OverBalanceQuantity>7</OverBalanceQuantity> <TimesheetDocuments> <TimesheetAttachmentwithImage> <AttachmentId>1</AttachmentId> <Filename>sample string 3</Filename> <Image>sample string 5</Image> <ProductSummaryId>1</ProductSummaryId> <TimesheetId>2</TimesheetId> <Type>sample string 4</Type> </TimesheetAttachmentwithImage> <TimesheetAttachmentwithImage> <AttachmentId>1</AttachmentId> <Filename>sample string 3</Filename> <Image>sample string 5</Image> <ProductSummaryId>1</ProductSummaryId> <TimesheetId>2</TimesheetId> <Type>sample string 4</Type> </TimesheetAttachmentwithImage> </TimesheetDocuments> <TimesheetId>4</TimesheetId> <TimesheetNo>sample string 2</TimesheetNo> </TimesheetApproval>
multipart/form-data
Sample:
<TimesheetApproval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><BookingNo>sample string 1</BookingNo><Comments>sample string 5</Comments><InhouseComment>sample string 6</InhouseComment><IsApproved>true</IsApproved><OverBalanceQuantity>7</OverBalanceQuantity><TimesheetDocuments><TimesheetAttachmentwithImage><AttachmentId>1</AttachmentId><Filename>sample string 3</Filename><Image>sample string 5</Image><ProductSummaryId>1</ProductSummaryId><TimesheetId>2</TimesheetId><Type>sample string 4</Type></TimesheetAttachmentwithImage><TimesheetAttachmentwithImage><AttachmentId>1</AttachmentId><Filename>sample string 3</Filename><Image>sample string 5</Image><ProductSummaryId>1</ProductSummaryId><TimesheetId>2</TimesheetId><Type>sample string 4</Type></TimesheetAttachmentwithImage></TimesheetDocuments><TimesheetId>4</TimesheetId><TimesheetNo>sample string 2</TimesheetNo></TimesheetApproval>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
text/xml, multipart/form-data
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>