POST api/PermissionAndOvertime/InsertPermission

Request Information

URI Parameters

None.

Body Parameters

PermissionEntity
NameDescriptionTypeAdditional information
userId

integer

None.

applyDate

date

None.

permissionType

string

None.

reason

string

None.

status

integer

None.

startTime

date

None.

endTime

date

None.

timediff

decimal number

None.

fileName

string

None.

file

string

None.

OrgaID

string

None.

Token

string

None.

StateID

integer

None.

WorklocationID

integer

None.

SourceType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": 1,
  "applyDate": "2025-08-07T06:56:50.3153069+08:00",
  "permissionType": "sample string 3",
  "reason": "sample string 4",
  "status": 5,
  "startTime": "2025-08-07T06:56:50.3153069+08:00",
  "endTime": "2025-08-07T06:56:50.3153069+08:00",
  "timediff": 8.0,
  "fileName": "sample string 9",
  "file": "sample string 10",
  "OrgaID": "sample string 11",
  "Token": "sample string 12",
  "StateID": 13,
  "WorklocationID": 14,
  "SourceType": "sample string 15"
}

text/html

Sample:
{"userId":1,"applyDate":"2025-08-07T06:56:50.3153069+08:00","permissionType":"sample string 3","reason":"sample string 4","status":5,"startTime":"2025-08-07T06:56:50.3153069+08:00","endTime":"2025-08-07T06:56:50.3153069+08:00","timediff":8.0,"fileName":"sample string 9","file":"sample string 10","OrgaID":"sample string 11","Token":"sample string 12","StateID":13,"WorklocationID":14,"SourceType":"sample string 15"}

application/xml, text/xml

Sample:
<PermissionAndOvertimeController.PermissionEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <OrgaID>sample string 11</OrgaID>
  <SourceType>sample string 15</SourceType>
  <StateID>13</StateID>
  <Token>sample string 12</Token>
  <WorklocationID>14</WorklocationID>
  <applyDate>2025-08-07T06:56:50.3153069+08:00</applyDate>
  <endTime>2025-08-07T06:56:50.3153069+08:00</endTime>
  <file>sample string 10</file>
  <fileName>sample string 9</fileName>
  <permissionType>sample string 3</permissionType>
  <reason>sample string 4</reason>
  <startTime>2025-08-07T06:56:50.3153069+08:00</startTime>
  <status>5</status>
  <timediff>8</timediff>
  <userId>1</userId>
</PermissionAndOvertimeController.PermissionEntity>

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

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>