POST api/RegionsAPIs/NewAddRegions

Request Information

URI Parameters

None.

Body Parameters

RegionsDTO
NameDescriptionTypeAdditional information
Id

integer

None.

RegionsId

integer

None.

RegionNameEn

string

None.

RegionNameAr

string

None.

CountryId

integer

None.

CountryNameEn

string

None.

CountryNameAr

string

None.

IsActive

boolean

None.

SortIndex

integer

None.

IsDeleted

boolean

None.

CreatedBy

integer

None.

CreatedDate

date

None.

ModifiedBy

integer

None.

ModifiedDate

date

None.

DeletedBy

integer

None.

DeletedDate

date

None.

Status

boolean

None.

StatusCode

integer

None.

Message

string

None.

Result

string

None.

FlagId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RegionsId": 2,
  "RegionNameEn": "sample string 3",
  "RegionNameAr": "sample string 4",
  "CountryId": 5,
  "CountryNameEn": "sample string 6",
  "CountryNameAr": "sample string 7",
  "IsActive": true,
  "SortIndex": 9,
  "IsDeleted": true,
  "CreatedBy": 11,
  "CreatedDate": "2020-05-26T13:40:26.1133147-07:00",
  "ModifiedBy": 13,
  "ModifiedDate": "2020-05-26T13:40:26.1133147-07:00",
  "DeletedBy": 15,
  "DeletedDate": "2020-05-26T13:40:26.1133147-07:00",
  "Status": true,
  "StatusCode": 18,
  "Message": "sample string 19",
  "Result": "sample string 20",
  "FlagId": 21
}

application/xml, text/xml

Sample:
<RegionsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/drCafeCoffeeAPI.DTOs">
  <CountryId>5</CountryId>
  <CountryNameAr>sample string 7</CountryNameAr>
  <CountryNameEn>sample string 6</CountryNameEn>
  <CreatedBy>11</CreatedBy>
  <CreatedDate>2020-05-26T13:40:26.1133147-07:00</CreatedDate>
  <DeletedBy>15</DeletedBy>
  <DeletedDate>2020-05-26T13:40:26.1133147-07:00</DeletedDate>
  <FlagId>21</FlagId>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <Message>sample string 19</Message>
  <ModifiedBy>13</ModifiedBy>
  <ModifiedDate>2020-05-26T13:40:26.1133147-07:00</ModifiedDate>
  <RegionNameAr>sample string 4</RegionNameAr>
  <RegionNameEn>sample string 3</RegionNameEn>
  <RegionsId>2</RegionsId>
  <Result>sample string 20</Result>
  <SortIndex>9</SortIndex>
  <Status>true</Status>
  <StatusCode>18</StatusCode>
</RegionsDTO>

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.