POST api/JobCategoryAPI/NewAddJobCategory

Request Information

URI Parameters

None.

Body Parameters

JobCategoryDTO
NameDescriptionTypeAdditional information
Id

integer

None.

NameEn

string

None.

NameAr

string

None.

SortIndex

integer

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

Message

string

None.

Status

boolean

None.

StatusCode

integer

None.

Result

string

None.

CategoryList

string

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

DeletedBy

integer

None.

FlagId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "NameEn": "sample string 2",
  "NameAr": "sample string 3",
  "SortIndex": 4,
  "IsActive": true,
  "IsDeleted": true,
  "Message": "sample string 7",
  "Status": true,
  "StatusCode": 9,
  "Result": "sample string 10",
  "CategoryList": "sample string 11",
  "CreatedBy": 12,
  "ModifiedBy": 13,
  "DeletedBy": 14,
  "FlagId": 15
}

application/xml, text/xml

Sample:
<JobCategoryDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/drCafeCoffeeAPI.DTOs">
  <CategoryList>sample string 11</CategoryList>
  <CreatedBy>12</CreatedBy>
  <DeletedBy>14</DeletedBy>
  <FlagId>15</FlagId>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <Message>sample string 7</Message>
  <ModifiedBy>13</ModifiedBy>
  <NameAr>sample string 3</NameAr>
  <NameEn>sample string 2</NameEn>
  <Result>sample string 10</Result>
  <SortIndex>4</SortIndex>
  <Status>true</Status>
  <StatusCode>9</StatusCode>
</JobCategoryDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.