POST api/RoleType

Add a new RoleType

Request Information

URI Parameters

None.

Body Parameters

RoleDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Description

string

None.

InsertBy

integer

None.

InsertDate

date

None.

IsActive

boolean

None.

UpdateBy

integer

None.

UpdateDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Description": "sample string 2",
  "InsertBy": 1,
  "InsertDate": "2025-04-29T09:37:40.8123587-06:00",
  "IsActive": true,
  "UpdateBy": 1,
  "UpdateDate": "2025-04-29T09:37:40.8123587-06:00"
}

text/html

Sample:
{"Id":1,"Description":"sample string 2","InsertBy":1,"InsertDate":"2025-04-29T09:37:40.8123587-06:00","IsActive":true,"UpdateBy":1,"UpdateDate":"2025-04-29T09:37:40.8123587-06:00"}

application/xml, text/xml

Sample:
<RoleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL">
  <Description>sample string 2</Description>
  <Id>1</Id>
  <InsertBy>1</InsertBy>
  <InsertDate>2025-04-29T09:37:40.8123587-06:00</InsertDate>
  <IsActive>true</IsActive>
  <UpdateBy>1</UpdateBy>
  <UpdateDate>2025-04-29T09:37:40.8123587-06:00</UpdateDate>
</RoleDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StatusDTO
NameDescriptionTypeAdditional information
id

integer

None.

msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "msg": "sample string 1"
}

text/html

Sample:
{"id":1,"msg":"sample string 1"}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrainingFundREST._DAL">
  <id>1</id>
  <msg>sample string 1</msg>
</StatusDTO>