POST api/ExpenseCategory/AddExpenseCategory

Request Information

URI Parameters

None.

Body Parameters

ExpenseCategoryDto
NameDescriptionTypeAdditional information
ExpenseCategoryId

integer

None.

Title

string

None.

IsActive

boolean

None.

CreatedOn

date

None.

UserId

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Exception of type 'System.OutOfMemoryException' was thrown.

text/json

Sample:
{
  "ExpenseCategoryId": 1,
  "Title": "sample string 2",
  "IsActive": true,
  "CreatedOn": "2026-06-17T14:10:26.2795121+00:00",
  "UserId": null
}

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

Response Information

Resource Description

BaseModel
NameDescriptionTypeAdditional information
success

boolean

None.

items

Object

None.

message

string

None.

total

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "items": {},
  "message": "sample string 3",
  "total": 4
}