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": "2c5010fe-f2c6-4680-bf02-2dca66a0de20",
"NetworkId": "2c276cd2-1d89-4987-8f98-83c380111f59",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "e9fde7a4-061d-4ba0-8bea-5bb1cec3073f",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "e9fde7a4-061d-4ba0-8bea-5bb1cec3073f",
"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>e9fde7a4-061d-4ba0-8bea-5bb1cec3073f</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>540911de-f061-4e17-b7ca-605eb317bcb5</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>e9fde7a4-061d-4ba0-8bea-5bb1cec3073f</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>540911de-f061-4e17-b7ca-605eb317bcb5</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>2c5010fe-f2c6-4680-bf02-2dca66a0de20</Id>
<Name>sample string 3</Name>
<NetworkId>2c276cd2-1d89-4987-8f98-83c380111f59</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": "4bb3c3e1-f4b9-4a71-8435-402ea361e91b",
"NetworkId": "1113497d-f5a8-46d3-8538-eacb2d4f9194",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "8b4412d5-2625-4ad2-944b-8fbe11f7d852",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "8b4412d5-2625-4ad2-944b-8fbe11f7d852",
"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>8b4412d5-2625-4ad2-944b-8fbe11f7d852</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>baa243ca-e0d0-450d-8dd7-afc8f721fd86</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>8b4412d5-2625-4ad2-944b-8fbe11f7d852</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>baa243ca-e0d0-450d-8dd7-afc8f721fd86</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>4bb3c3e1-f4b9-4a71-8435-402ea361e91b</Id>
<Name>sample string 3</Name>
<NetworkId>1113497d-f5a8-46d3-8538-eacb2d4f9194</NetworkId>
</BrandDto>