PUT api/Timesheets/TimesheetsApproval

Approve/Reject by approver for a multiple timesheets

Request Information

URI Parameters

None.

Body Parameters

Collection of TimesheetApproval
NameDescriptionTypeAdditional 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"
      }
    ]
  },
  {
    "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:
<ArrayOfTimesheetApproval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO">
  <TimesheetApproval>
    <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>
  <TimesheetApproval>
    <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>
</ArrayOfTimesheetApproval>

multipart/form-data

Sample:
<ArrayOfTimesheetApproval xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DTO"><TimesheetApproval><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><TimesheetApproval><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></ArrayOfTimesheetApproval>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

COMPLETE

boolean

Response Formats

application/json, text/json

Sample:
true

text/xml, multipart/form-data

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>