POST api/Product/PostCategory

Request Information

URI Parameters

None.

Body Parameters

Category
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Parant

integer

None.

CategoryLevel

integer

None.

Type

CategoryType

None.

Active

boolean

None.

Deleted

boolean

None.

Created

date

None.

Updated

date

None.

ColorCode

string

None.

TextColorCode

string

None.

ItemColorCode

string

None.

ApplyItemColor

boolean

None.

SortOrder

integer

None.

IconId

integer

None.

ReportOrder

integer

None.

AccountingId

integer

None.

SortItemByName

boolean

None.

ComissionPercent

decimal number

None.

ShowButton

boolean

None.

SubCategories

Collection of Category

None.

Children

Collection of Category

None.

Photo

Collection of byte

None.

ImageURL

string

None.

IsPrimary

boolean

None.

IsParent

boolean

None.

IsSelected

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Parant": 3,
  "CategoryLevel": 4,
  "Type": 0,
  "Active": true,
  "Deleted": true,
  "Created": "2024-05-16T13:02:10.5741456+02:00",
  "Updated": "2024-05-16T13:02:10.5741456+02:00",
  "ColorCode": "sample string 8",
  "TextColorCode": "sample string 9",
  "ItemColorCode": "sample string 10",
  "ApplyItemColor": true,
  "SortOrder": 12,
  "IconId": 13,
  "ReportOrder": 14,
  "AccountingId": 15,
  "SortItemByName": true,
  "ComissionPercent": 17.0,
  "ShowButton": true,
  "SubCategories": [
    {
      "$ref": "1"
    },
    {
      "$ref": "1"
    }
  ],
  "Children": [
    {
      "$ref": "1"
    },
    {
      "$ref": "1"
    }
  ],
  "Photo": "QEA=",
  "ImageURL": "sample string 19",
  "IsPrimary": true,
  "IsParent": true,
  "IsSelected": true
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.