POST api/timeFunction

Insert a new record into the Functions table.

Request Information

URI Parameters

None.

Body Parameters

timeFunctionDb
NameDescriptionTypeAdditional information
FunctionID

integer

None.

FunctionName

string

Required

Max length: 50

FunctionCode

integer

Required

FunctionTypeID

integer

None.

ClientRule

integer

None.

PaidAllowance

integer

None.

MaxPerDay

integer

None.

MinInterval

integer

None.

IsBreak

boolean

None.

IsAbsence

boolean

None.

IsActive

boolean

None.

IsBillable

boolean

None.

IsClientAssignable

boolean

None.

IsEmployeeAssignable

boolean

None.

ValidateMatch

boolean

None.

BillingCode

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "FunctionID": 1,
  "FunctionName": "sample string 2",
  "FunctionCode": 3,
  "FunctionTypeID": 4,
  "ClientRule": 5,
  "PaidAllowance": 1,
  "MaxPerDay": 1,
  "MinInterval": 1,
  "IsBreak": true,
  "IsAbsence": true,
  "IsActive": true,
  "IsBillable": true,
  "IsClientAssignable": true,
  "IsEmployeeAssignable": true,
  "ValidateMatch": true,
  "BillingCode": "sample string 13",
  "CreatedBy": 14,
  "CreatedDate": "2025-12-06T23:37:06.7482903+00:00",
  "UpdatedBy": 16,
  "UpdatedDate": "2025-12-06T23:37:06.7482903+00:00"
}

application/xml, text/xml

Sample:
<timeFunctionDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <BillingCode>sample string 13</BillingCode>
  <ClientRule>5</ClientRule>
  <CreatedBy>14</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:06.7482903Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <FunctionCode>3</FunctionCode>
  <FunctionID>1</FunctionID>
  <FunctionName>sample string 2</FunctionName>
  <FunctionTypeID>4</FunctionTypeID>
  <IsAbsence>true</IsAbsence>
  <IsActive>true</IsActive>
  <IsBillable>true</IsBillable>
  <IsBreak>true</IsBreak>
  <IsClientAssignable>true</IsClientAssignable>
  <IsEmployeeAssignable>true</IsEmployeeAssignable>
  <MaxPerDay>1</MaxPerDay>
  <MinInterval>1</MinInterval>
  <PaidAllowance>1</PaidAllowance>
  <UpdatedBy>16</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:06.7482903Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
  <ValidateMatch>true</ValidateMatch>
</timeFunctionDb>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'timeFunctionDb'.

Response Information

Resource Description

timeFunctionDb
NameDescriptionTypeAdditional information
FunctionID

integer

None.

FunctionName

string

Required

Max length: 50

FunctionCode

integer

Required

FunctionTypeID

integer

None.

ClientRule

integer

None.

PaidAllowance

integer

None.

MaxPerDay

integer

None.

MinInterval

integer

None.

IsBreak

boolean

None.

IsAbsence

boolean

None.

IsActive

boolean

None.

IsBillable

boolean

None.

IsClientAssignable

boolean

None.

IsEmployeeAssignable

boolean

None.

ValidateMatch

boolean

None.

BillingCode

string

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "FunctionID": 1,
  "FunctionName": "sample string 2",
  "FunctionCode": 3,
  "FunctionTypeID": 4,
  "ClientRule": 5,
  "PaidAllowance": 1,
  "MaxPerDay": 1,
  "MinInterval": 1,
  "IsBreak": true,
  "IsAbsence": true,
  "IsActive": true,
  "IsBillable": true,
  "IsClientAssignable": true,
  "IsEmployeeAssignable": true,
  "ValidateMatch": true,
  "BillingCode": "sample string 13",
  "CreatedBy": 14,
  "CreatedDate": "2025-12-06T23:37:06.7482903+00:00",
  "UpdatedBy": 16,
  "UpdatedDate": "2025-12-06T23:37:06.7482903+00:00"
}

application/xml, text/xml

Sample:
<timeFunctionDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <BillingCode>sample string 13</BillingCode>
  <ClientRule>5</ClientRule>
  <CreatedBy>14</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:06.7482903Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <FunctionCode>3</FunctionCode>
  <FunctionID>1</FunctionID>
  <FunctionName>sample string 2</FunctionName>
  <FunctionTypeID>4</FunctionTypeID>
  <IsAbsence>true</IsAbsence>
  <IsActive>true</IsActive>
  <IsBillable>true</IsBillable>
  <IsBreak>true</IsBreak>
  <IsClientAssignable>true</IsClientAssignable>
  <IsEmployeeAssignable>true</IsEmployeeAssignable>
  <MaxPerDay>1</MaxPerDay>
  <MinInterval>1</MinInterval>
  <PaidAllowance>1</PaidAllowance>
  <UpdatedBy>16</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:37:06.7482903Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
  <ValidateMatch>true</ValidateMatch>
</timeFunctionDb>