POST api/rptReportCategory

Insert a new record into the ReportCategory table.

Request Information

URI Parameters

None.

Body Parameters

rptReportCategoryDb
NameDescriptionTypeAdditional information
CategoryID

integer

None.

Name

string

Required

Max length: 50

Description

string

Required

Max length: 100

DisplayOrder

integer

None.

CategoryTypeID

integer

None.

IsActive

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "CategoryID": 1,
  "Name": "sample string 2",
  "Description": "sample string 3",
  "DisplayOrder": 4,
  "CategoryTypeID": 5,
  "IsActive": true,
  "CreatedBy": 7,
  "CreatedDate": "2025-12-06T23:40:51.3375402+00:00",
  "UpdatedBy": 9,
  "UpdatedDate": "2025-12-06T23:40:51.3375402+00:00"
}

application/xml, text/xml

Sample:
<rptReportCategoryDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <CategoryID>1</CategoryID>
  <CategoryTypeID>5</CategoryTypeID>
  <CreatedBy>7</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:40:51.3375402Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <Description>sample string 3</Description>
  <DisplayOrder>4</DisplayOrder>
  <IsActive>true</IsActive>
  <Name>sample string 2</Name>
  <UpdatedBy>9</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:40:51.3375402Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</rptReportCategoryDb>

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

Response Information

Resource Description

rptReportCategoryDb
NameDescriptionTypeAdditional information
CategoryID

integer

None.

Name

string

Required

Max length: 50

Description

string

Required

Max length: 100

DisplayOrder

integer

None.

CategoryTypeID

integer

None.

IsActive

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "CategoryID": 1,
  "Name": "sample string 2",
  "Description": "sample string 3",
  "DisplayOrder": 4,
  "CategoryTypeID": 5,
  "IsActive": true,
  "CreatedBy": 7,
  "CreatedDate": "2025-12-06T23:40:51.3505344+00:00",
  "UpdatedBy": 9,
  "UpdatedDate": "2025-12-06T23:40:51.3505344+00:00"
}

application/xml, text/xml

Sample:
<rptReportCategoryDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <CategoryID>1</CategoryID>
  <CategoryTypeID>5</CategoryTypeID>
  <CreatedBy>7</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:40:51.3505344Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <Description>sample string 3</Description>
  <DisplayOrder>4</DisplayOrder>
  <IsActive>true</IsActive>
  <Name>sample string 2</Name>
  <UpdatedBy>9</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:40:51.3505344Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</rptReportCategoryDb>