POST api/DealerGroup/AddDealerGroup

Request Information

URI Parameters

None.

Body Parameters

DealerGroupModel
NameDescriptionTypeAdditional information
DealerGroup_Id

integer

None.

City_Id

integer

None.

DealerGroupName

string

None.

DealerGroupCode

string

None.

DealerGroupAddress

string

None.

IsActive

boolean

None.

CreationDate

date

None.

ModifiedDate

date

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DealerGroup_Id": 1,
  "City_Id": 1,
  "DealerGroupName": "sample string 2",
  "DealerGroupCode": "sample string 3",
  "DealerGroupAddress": "sample string 4",
  "IsActive": true,
  "CreationDate": "2024-12-23T02:50:08.0560151+05:30",
  "ModifiedDate": "2024-12-23T02:50:08.0560151+05:30",
  "CreatedBy": 7,
  "ModifiedBy": 1
}

application/xml, text/xml

Sample:
<DealerGroupModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProjectBLL.CustomModel">
  <City_Id>1</City_Id>
  <CreatedBy>7</CreatedBy>
  <CreationDate>2024-12-23T02:50:08.0560151+05:30</CreationDate>
  <DealerGroupAddress>sample string 4</DealerGroupAddress>
  <DealerGroupCode>sample string 3</DealerGroupCode>
  <DealerGroupName>sample string 2</DealerGroupName>
  <DealerGroup_Id>1</DealerGroup_Id>
  <IsActive>true</IsActive>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2024-12-23T02:50:08.0560151+05:30</ModifiedDate>
</DealerGroupModel>

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

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>