POST api/DSM/Client/{clientCode}/TimesheetSetting

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientCode

string

Required

Body Parameters

ClientTimesheetSetting
NameDescriptionTypeAdditional information
ClientTimesheetSettingId

integer

None.

ClientId

integer

None.

IsTimeSheetEnabled

boolean

None.

IsAutoRound

boolean

None.

IsAutoRoundToStartTimeIfEarlier

boolean

None.

AutoRoundToStartTimeType

string

None.

AutoRoundToStartTimeMins

integer

None.

MaxVarianceEndTimeMins

integer

None.

IsAutoRoundToEndTimeIfLater

boolean

None.

AutoRoundToEndTimeType

string

None.

AutoRoundToEndTimeMins

integer

None.

StartShiftsEarlyMins

integer

None.

EndShiftEarlyMins

integer

None.

IsAutoApproveTimesheet

boolean

None.

AutoApproveVarianceMins

integer

None.

IsAutoRoundToBreakTimeIfShorter

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientTimesheetSettingId": 1,
  "ClientId": 2,
  "IsTimeSheetEnabled": true,
  "IsAutoRound": true,
  "IsAutoRoundToStartTimeIfEarlier": true,
  "AutoRoundToStartTimeType": "sample string 6",
  "AutoRoundToStartTimeMins": 7,
  "MaxVarianceEndTimeMins": 8,
  "IsAutoRoundToEndTimeIfLater": true,
  "AutoRoundToEndTimeType": "sample string 10",
  "AutoRoundToEndTimeMins": 11,
  "StartShiftsEarlyMins": 12,
  "EndShiftEarlyMins": 13,
  "IsAutoApproveTimesheet": true,
  "AutoApproveVarianceMins": 15,
  "IsAutoRoundToBreakTimeIfShorter": true
}

text/xml

Sample:
<ClientTimesheetSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DSM">
  <AutoApproveVarianceMins>15</AutoApproveVarianceMins>
  <AutoRoundToEndTimeMins>11</AutoRoundToEndTimeMins>
  <AutoRoundToEndTimeType>sample string 10</AutoRoundToEndTimeType>
  <AutoRoundToStartTimeMins>7</AutoRoundToStartTimeMins>
  <AutoRoundToStartTimeType>sample string 6</AutoRoundToStartTimeType>
  <ClientId>2</ClientId>
  <ClientTimesheetSettingId>1</ClientTimesheetSettingId>
  <EndShiftEarlyMins>13</EndShiftEarlyMins>
  <IsAutoApproveTimesheet>true</IsAutoApproveTimesheet>
  <IsAutoRound>true</IsAutoRound>
  <IsAutoRoundToBreakTimeIfShorter>true</IsAutoRoundToBreakTimeIfShorter>
  <IsAutoRoundToEndTimeIfLater>true</IsAutoRoundToEndTimeIfLater>
  <IsAutoRoundToStartTimeIfEarlier>true</IsAutoRoundToStartTimeIfEarlier>
  <IsTimeSheetEnabled>true</IsTimeSheetEnabled>
  <MaxVarianceEndTimeMins>8</MaxVarianceEndTimeMins>
  <StartShiftsEarlyMins>12</StartShiftsEarlyMins>
</ClientTimesheetSetting>

multipart/form-data

Sample:
<ClientTimesheetSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RandstadWebAPI.Models.DSM"><AutoApproveVarianceMins>15</AutoApproveVarianceMins><AutoRoundToEndTimeMins>11</AutoRoundToEndTimeMins><AutoRoundToEndTimeType>sample string 10</AutoRoundToEndTimeType><AutoRoundToStartTimeMins>7</AutoRoundToStartTimeMins><AutoRoundToStartTimeType>sample string 6</AutoRoundToStartTimeType><ClientId>2</ClientId><ClientTimesheetSettingId>1</ClientTimesheetSettingId><EndShiftEarlyMins>13</EndShiftEarlyMins><IsAutoApproveTimesheet>true</IsAutoApproveTimesheet><IsAutoRound>true</IsAutoRound><IsAutoRoundToBreakTimeIfShorter>true</IsAutoRoundToBreakTimeIfShorter><IsAutoRoundToEndTimeIfLater>true</IsAutoRoundToEndTimeIfLater><IsAutoRoundToStartTimeIfEarlier>true</IsAutoRoundToStartTimeIfEarlier><IsTimeSheetEnabled>true</IsTimeSheetEnabled><MaxVarianceEndTimeMins>8</MaxVarianceEndTimeMins><StartShiftsEarlyMins>12</StartShiftsEarlyMins></ClientTimesheetSetting>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml, multipart/form-data

Sample:

Sample not available.