POST api/Values/InsertPettyCashUserRequest

Request Information

URI Parameters

None.

Body Parameters

InsertPettyCashUserRequests
NameDescriptionTypeAdditional information
OrgaID

string

None.

Description

string

None.

UserID

integer

None.

Date

date

None.

RequestAmount

decimal number

None.

CurrencyID

integer

None.

PettyCashID

integer

None.

FileType

string

None.

Currency

string

None.

Attachemet

string

None.

Token

string

None.

FileName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OrgaID": "sample string 1",
  "Description": "sample string 2",
  "UserID": 3,
  "Date": "2025-08-07T06:44:32.0222016+08:00",
  "RequestAmount": 5.0,
  "CurrencyID": 6,
  "PettyCashID": 7,
  "FileType": "sample string 8",
  "Currency": "sample string 9",
  "Attachemet": "sample string 10",
  "Token": "sample string 11",
  "FileName": "sample string 12"
}

text/html

Sample:
{"OrgaID":"sample string 1","Description":"sample string 2","UserID":3,"Date":"2025-08-07T06:44:32.0222016+08:00","RequestAmount":5.0,"CurrencyID":6,"PettyCashID":7,"FileType":"sample string 8","Currency":"sample string 9","Attachemet":"sample string 10","Token":"sample string 11","FileName":"sample string 12"}

application/xml, text/xml

Sample:
<ValuesController.InsertPettyCashUserRequests xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <Attachemet>sample string 10</Attachemet>
  <Currency>sample string 9</Currency>
  <CurrencyID>6</CurrencyID>
  <Date>2025-08-07T06:44:32.0222016+08:00</Date>
  <Description>sample string 2</Description>
  <FileName>sample string 12</FileName>
  <FileType>sample string 8</FileType>
  <OrgaID>sample string 1</OrgaID>
  <PettyCashID>7</PettyCashID>
  <RequestAmount>5</RequestAmount>
  <Token>sample string 11</Token>
  <UserID>3</UserID>
</ValuesController.InsertPettyCashUserRequests>

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

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>