POST Brands
Creates a new brand.
Request Information
URI Parameters
None.
Body Parameters
The data of the brand.
BrandDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| BrandFuelMasters | Collection of BrandFuelMasterDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "7883a43f-6943-4bb9-858b-9316677ad023",
"NetworkId": "f1984e72-d9ff-4d40-88de-c6269e546804",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "9e977da1-e671-4901-9f8c-15c7726151ba",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "9e977da1-e671-4901-9f8c-15c7726151ba",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<BrandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<BrandFuelMasters>
<BrandFuelMasterDto>
<FuelMasterId>9e977da1-e671-4901-9f8c-15c7726151ba</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>40b0827a-0536-42be-ba20-0c3f13a9a808</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>9e977da1-e671-4901-9f8c-15c7726151ba</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>40b0827a-0536-42be-ba20-0c3f13a9a808</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>7883a43f-6943-4bb9-858b-9316677ad023</Id>
<Name>sample string 3</Name>
<NetworkId>f1984e72-d9ff-4d40-88de-c6269e546804</NetworkId>
</BrandDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
State of the action, and if created returns the brand as BrandDto and the link to the brand.
BrandDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| BrandFuelMasters | Collection of BrandFuelMasterDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "f3d3308e-810c-4629-8583-446e279cf504",
"NetworkId": "28f75a1c-642a-4493-9be1-ca5145b53b83",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "201f98c5-0cb8-4aef-b6a2-5ef25f029bc9",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "201f98c5-0cb8-4aef-b6a2-5ef25f029bc9",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<BrandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<BrandFuelMasters>
<BrandFuelMasterDto>
<FuelMasterId>201f98c5-0cb8-4aef-b6a2-5ef25f029bc9</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>c2e38acb-45c7-4f79-af53-2c642ed2cc59</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>201f98c5-0cb8-4aef-b6a2-5ef25f029bc9</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>c2e38acb-45c7-4f79-af53-2c642ed2cc59</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>f3d3308e-810c-4629-8583-446e279cf504</Id>
<Name>sample string 3</Name>
<NetworkId>28f75a1c-642a-4493-9be1-ca5145b53b83</NetworkId>
</BrandDto>