POST api/Values/InsertUserAllowanceEntry

Request Information

URI Parameters

None.

Body Parameters

InsertAllowanceEntry
NameDescriptionTypeAdditional information
AllowanceTypeID

integer

None.

AllowanceDate

date

None.

AllowanceAmount

decimal number

None.

UserID

integer

None.

Token

string

None.

Description

string

None.

AppliedUsername

string

None.

AllowanceTypeName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AllowanceTypeID": 1,
  "AllowanceDate": "2025-08-07T06:44:33.6628977+08:00",
  "AllowanceAmount": 3.0,
  "UserID": 4,
  "Token": "sample string 5",
  "Description": "sample string 6",
  "AppliedUsername": "sample string 7",
  "AllowanceTypeName": "sample string 8"
}

text/html

Sample:
{"AllowanceTypeID":1,"AllowanceDate":"2025-08-07T06:44:33.6628977+08:00","AllowanceAmount":3.0,"UserID":4,"Token":"sample string 5","Description":"sample string 6","AppliedUsername":"sample string 7","AllowanceTypeName":"sample string 8"}

application/xml, text/xml

Sample:
<ValuesController.InsertAllowanceEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AllowanceAmount>3</AllowanceAmount>
  <AllowanceDate>2025-08-07T06:44:33.6628977+08:00</AllowanceDate>
  <AllowanceTypeID>1</AllowanceTypeID>
  <AllowanceTypeName>sample string 8</AllowanceTypeName>
  <AppliedUsername>sample string 7</AppliedUsername>
  <Description>sample string 6</Description>
  <Token>sample string 5</Token>
  <UserID>4</UserID>
</ValuesController.InsertAllowanceEntry>

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 'InsertAllowanceEntry'.

Response Information

Resource Description

Dictionary of Object [key] and Object [value]

Response Formats

application/json, text/json, text/html

Sample:
{"System.Object":{},"System.Object":{}}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
</ArrayOfKeyValueOfanyTypeanyType>