POST api/docs/Role/Post

Request Information

URI Parameters

None.

Body Parameters

RoleDTO
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

Memo

string

None.

PlatformAdmin

boolean

None.

HospitalID

integer

None.

UpdateTime

date

None.

UpdateUserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 1",
  "Memo": "sample string 2",
  "PlatformAdmin": true,
  "HospitalID": 1,
  "UpdateTime": "2026-05-02T18:07:42.7163455+08:00",
  "UpdateUserID": 1
}

application/xml, text/xml

Sample:
<RoleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HSYK.GWPIS.DTO">
  <HospitalID>1</HospitalID>
  <ID>1</ID>
  <Memo>sample string 2</Memo>
  <Name>sample string 1</Name>
  <PlatformAdmin>true</PlatformAdmin>
  <UpdateTime>2026-05-02T18:07:42.7163455+08:00</UpdateTime>
  <UpdateUserID>1</UpdateUserID>
</RoleDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.