POST api/QuestionMasterCategory/AddQuestionMasterCategory

Request Information

URI Parameters

None.

Body Parameters

QuestionMasterCategoryModel
NameDescriptionTypeAdditional information
Category_Id

integer

None.

CategoryName

string

None.

IsActive

boolean

None.

CreationDate

date

None.

ModifiedDate

date

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Category_Id": 1,
  "CategoryName": "sample string 2",
  "IsActive": true,
  "CreationDate": "2024-12-23T02:51:19.2350375+05:30",
  "ModifiedDate": "2024-12-23T02:51:19.2350375+05:30",
  "CreatedBy": 5,
  "ModifiedBy": 1
}

application/xml, text/xml

Sample:
<QuestionMasterCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProjectBLL.CustomModel">
  <CategoryName>sample string 2</CategoryName>
  <Category_Id>1</Category_Id>
  <CreatedBy>5</CreatedBy>
  <CreationDate>2024-12-23T02:51:19.2350375+05:30</CreationDate>
  <IsActive>true</IsActive>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2024-12-23T02:51:19.2350375+05:30</ModifiedDate>
</QuestionMasterCategoryModel>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>